--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-cc.templates +++ eucalyptus-1.6~bzr588/debian/eucalyptus-cc.templates @@ -0,0 +1,6 @@ +Template: eucalyptus/cluster-name +Type: string +_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~bzr588.orig/debian/eucalyptus-common.links +++ eucalyptus-1.6~bzr588/debian/eucalyptus-common.links @@ -0,0 +1,3 @@ +usr/lib/axis2/lib /etc/eucalyptus/axis2/lib +usr/lib/axis2/modules /etc/eucalyptus/axis2/modules +usr/lib/axis2/services /etc/eucalyptus/axis2/services --- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-udeb.install +++ eucalyptus-1.6~bzr588/debian/eucalyptus-udeb.install @@ -0,0 +1,2 @@ +debian/local/euca_find_cluster usr/bin +/usr/lib/finish-install.d --- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-cloud.dirs +++ eucalyptus-1.6~bzr588/debian/eucalyptus-cloud.dirs @@ -0,0 +1,2 @@ +/var/lib/eucalyptus/db +/var/lib/eucalyptus/keys --- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-cloud.install +++ eucalyptus-1.6~bzr588/debian/eucalyptus-cloud.install @@ -0,0 +1,8 @@ +/etc/init.d/eucalyptus-cloud +/etc/init.d/eucalyptus-walrus +/etc/eucalyptus/cloud.d +/usr/lib/eucalyptus/liblvm2control.so +/usr/sbin/eucalyptus-cloud +/usr/share/eucalyptus/euca*1.6*.jar +/var/lib/eucalyptus/modules +/var/lib/eucalyptus/webapps --- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-udeb.postinst +++ eucalyptus-1.6~bzr588/debian/eucalyptus-udeb.postinst @@ -0,0 +1,66 @@ +#! /bin/sh +set -e + +. /usr/share/debconf/confmodule +. /lib/preseed/preseed.sh + +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 +} + +clusters="$(euca_find_cluster)" +if [ "$clusters" ]; then + num_clusters="$(echo "$clusters" | wc -l)" + db_set eucalyptus/install-mode node + db_metaget eucalyptus/install-mode-default-node description +else + num_clusters=0 + db_set eucalyptus/install-mode cluster + db_metaget eucalyptus/install-mode-default-cluster description +fi +db_subst eucalyptus/install-mode DEFAULT_TEXT "$RET" +db_input critical eucalyptus/install-mode || true +db_go + +db_get eucalyptus/install-mode +if [ "$RET" = node ]; then + set_question tasksel tasksel/first multiselect eucalyptus-node + + if [ "$num_clusters" -gt 1 ]; then + NL=' +' + IFS_SAVE="$IFS" + choices= + IFS="$NL" + for line in $clusters; do + choices="${choices:+$choices, }$line" + done + IFS="$IFS_SAVE" + 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 + preseed_location "http://$cluster/node-preseed" + fi +else + set_question tasksel tasksel/first multiselect eucalyptus-simple-cluster +fi + +exit 0 --- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-nc.postinst +++ eucalyptus-1.6~bzr588/debian/eucalyptus-nc.postinst @@ -0,0 +1,45 @@ +#!/bin/sh + +if [ "$1" = "configure" ] +then + if dpkg --compare-versions "$2" lt 1.5~bzr198-0ubuntu4 + then + euca_conf -hypervisor kvm /etc/eucalyptus/eucalyptus.conf + fi + + if dpkg --compare-versions "$2" lt 1.6~bzr588-0ubuntu5 + then + euca_conf --instances /var/lib/eucalyptus/instances /etc/eucalyptus/eucalyptus.conf + 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 "$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~bzr588.orig/debian/eucalyptus-nc.dirs +++ eucalyptus-1.6~bzr588/debian/eucalyptus-nc.dirs @@ -0,0 +1 @@ +var/lib/eucalyptus/instances --- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-cc.install +++ eucalyptus-1.6~bzr588/debian/eucalyptus-cc.install @@ -0,0 +1,3 @@ +/etc/init.d/eucalyptus-cc +/usr/lib/axis2/services/EucalyptusCC +/var/lib/eucalyptus/keys/nc-client-policy.xml --- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-common.postrm +++ eucalyptus-1.6~bzr588/debian/eucalyptus-common.postrm @@ -0,0 +1,7 @@ +#!/bin/sh + +case "$1" in +purge) + dpkg-statoverride --remove /usr/lib/eucalyptus/euca_rootwrap || true + ;; +esac --- eucalyptus-1.6~bzr588.orig/debian/axis2.xml +++ eucalyptus-1.6~bzr588/debian/axis2.xml @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + 6060 + false + + + + + + + + + + + + + HTTP/1.1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-cloud.links +++ eucalyptus-1.6~bzr588/debian/eucalyptus-cloud.links @@ -0,0 +1,77 @@ +/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/gnumail.jar /usr/share/eucalyptus/gnumail.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/jetty6.jar /usr/share/eucalyptus/jetty6.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/c3p0.jar /usr/share/eucalyptus/c3p0.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/jetty6-sslengine.jar /usr/share/eucalyptus/jetty6-sslengine.jar +/usr/share/java/jetty6-util.jar /usr/share/eucalyptus/jetty6-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/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/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~bzr588.orig/debian/eucalyptus-cc.postinst +++ eucalyptus-1.6~bzr588/debian/eucalyptus-cc.postinst @@ -0,0 +1,41 @@ +#!/bin/sh + +. /usr/share/debconf/confmodule + +if [ "$1" = "configure" ] +then + if [ -z "$2" ] + then + if [ ! -e /etc/eucalyptus/installer-cc.conf ]; then + db_get eucalyptus/cluster-name + if [ "$RET" ]; then + echo "CC_NAME=$RET" > /etc/eucalyptus/installer-cc.conf + fi + fi + 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 "$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 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 +fi + + +#DEBHELPER# --- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-udeb.finish-install +++ eucalyptus-1.6~bzr588/debian/eucalyptus-udeb.finish-install @@ -0,0 +1,122 @@ +#! /bin/sh +set -e + +. /usr/share/debconf/confmodule + +db_get eucalyptus/install-mode +[ "$RET" = cluster ] || exit 0 + +# 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. + +OUT=/target/etc/eucalyptus/node-preseed.conf +mkdir -p "${OUT%/*}" +>"$OUT" +chroot /target chown eucalyptus:eucalyptus "${OUT#/target}" || true +chmod 600 "$OUT" + +question () { + owner="$1" + question="$2" + qtype="$3" + + if db_get "$2"; then + echo "$owner $question $qtype $RET" >>"$OUT" + fi +} + +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 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 + +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")" + echo "d-i preseed/late_command string chroot /target mkdir -m700 -p $EUCA_HOME/.ssh && echo '$PUBKEY' > /target$EUCA_HOME/.ssh/authorized_keys" >>"$OUT" +fi + +exit 0 --- eucalyptus-1.6~bzr588.orig/debian/control +++ eucalyptus-1.6~bzr588/debian/control @@ -0,0 +1,174 @@ +Source: eucalyptus +Section: admin +Priority: extra +Maintainer: Soren Hansen +Build-Depends: cdbs, debhelper (>= 7), libaxis2c-dev, librampart-dev, default-jdk, ant, libvirt-dev, quilt, libcurl4-gnutls-dev, libssl-dev, ant-optional, zlib1g-dev, pkg-config, libavahi-core-dev, libdebian-installer-dev, + libbackport-util-concurrent-java, + libwsdl4j-java, + libhsqldb-java, + libaxiom-java, + libbcprov-java, + libcommons-fileupload-java, + libcommons-httpclient-java, + libcommons-lang-java, + libcommons-pool-java (>= 1.4), + libdnsjava-java, + libdrools-core-java, + libeucalyptus-commons-ext-java (>=0.4.1), + libgnumail-java, + libgeronimo-j2ee-connector-1.5-spec-java, + libgeronimo-jpa-3.0-spec-java, + libgoogle-collections-java, + groovy, + libgwt-user-java, + libjaxp1.3-java, + libjetty6-java, + libjibx-java (>= 1.1.6a), + libjson-java, + junit, + liblog4j1.2-java, + libnetty-java, + libservlet2.5-java, + libwss4j-java, + libxalan2-java, + libxerces2-java, + libxml-security-java (>= 1.4.2-1ubuntu1), + libgwt-dev-java, + libecj-java, + libantlr-java, + ant +Standards-Version: 3.8.0 +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 +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-cloud +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, vblade, lvm2, dmsetup, + default-jre-headless | java5-runtime-headless, + libbackport-util-concurrent-java, + libaxiom-java, + libbcprov-java, + libcommons-fileupload-java, + libcommons-httpclient-java, + libcommons-lang-java, + libcommons-pool-java (>= 1.4), + libdnsjava-java, + libdrools-core-java, + libeucalyptus-commons-ext-java, + libgnumail-java, + libgeronimo-jpa-3.0-spec-java, + libgoogle-collections-java, + groovy, + libgwt-user-java, + libjaxp1.3-java, + libjetty6-java, + libjibx-java (>= 1.1.6a), + libjson-java, + junit, + liblog4j1.2-java, + libnetty-java, + libservlet2.5-java, + libwss4j-java, + libxalan2-java, + libxerces2-java, + libxml-security-java (>= 1.4.2-1ubuntu1), + antlr3, + libantlr-java, + libasm2-java, + libbcel-java, + libbsf-java, + libc3p0-java, + libcglib2.1-java, + libcommons-beanutils-java, + libcommons-cli-java, + libcommons-codec-java, + libcommons-collections3-java, + libcommons-discovery-java, + libcommons-io-java, + libcommons-jxpath-java, + libcommons-logging-java, + libdom4j-java, + libezmorph-java, + libgnujaf-java, + libgeronimo-ejb-3.0-spec-java, + libgeronimo-j2ee-connector-1.5-spec-java, + libgeronimo-jms-1.1-spec-java, + libgeronimo-jta-1.0.1b-spec-java, + libgeronimo-jacc-1.1-spec-java, + libgeronimo-interceptor-3.0-spec-java, + libhsqldb-java, + janino, + libjavassist-java, + libjaxen-java, + libjug-java, + libexcalibur-logkit-java, + libmvel-java, + libregexp-java, + libslf4j-java, + libwsdl4j-java, + libxom-java, + libxpp3-java +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-cc +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, eucalyptus-common, apache2, libapache2-mod-axis2c, eucalyptus-gl, avahi-utils +Recommends: vlan, powerwake +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, libapache2-mod-axis2c, eucalyptus-gl, adduser +Suggests: aoetools +Recommends: libvirt-bin, kvm, vlan, bridge-utils, dhcp3-server, powernap +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: eucalyptus-udeb +XC-Package-Type: udeb +Section: debian-installer +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, configured-network +# after netcfg +XB-Installer-Menu-Item: 1850 +Description: Elastic Utility Computing Architecture - installer integration --- eucalyptus-1.6~bzr588.orig/debian/copyright +++ eucalyptus-1.6~bzr588/debian/copyright @@ -0,0 +1,78 @@ +This package was debianized by Soren Hansen on +Wed, 11 Feb 2009 02:11:00 +0200 + + +util/pwcb.c is from the Apache Rampart/C project and is covered by +the following copyright and license: + + Copyright 2003-2004 The Apache Software Foundation. + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +Everything else is covered by the following copyright and 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. + +On a Debian system, the license can be found at +usr/share/common-licenses/BSD. + +The Debian packaging is copyright 2009, Soren Hansen and +is licensed under the same license. + +debian/local/euca_find_cluster.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. --- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-common.dirs +++ eucalyptus-1.6~bzr588/debian/eucalyptus-common.dirs @@ -0,0 +1 @@ +/var/lib/eucalyptus/keys --- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-common.install +++ eucalyptus-1.6~bzr588/debian/eucalyptus-common.install @@ -0,0 +1,14 @@ +/var/log +/var/run +/etc/eucalyptus/eucalyptus-version +/etc/eucalyptus/vtunall.conf.template +/usr/share/eucalyptus/add_key.pl +/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 +/etc/eucalyptus/eucalyptus.conf +debian/axis2.xml /etc/eucalyptus/axis2 --- eucalyptus-1.6~bzr588.orig/debian/build-jars +++ eucalyptus-1.6~bzr588/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/jetty6-util.jar +/usr/share/java/hsqldb.jar +/usr/share/java/jetty6.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/jetty6.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~bzr588.orig/debian/changelog +++ eucalyptus-1.6~bzr588/debian/changelog @@ -0,0 +1,375 @@ +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~bzr588.orig/debian/eucalyptus-nc.install +++ eucalyptus-1.6~bzr588/debian/eucalyptus-nc.install @@ -0,0 +1,10 @@ +/etc/init.d/eucalyptus-nc +/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 --- eucalyptus-1.6~bzr588.orig/debian/rules +++ eucalyptus-1.6~bzr588/debian/rules @@ -0,0 +1,48 @@ +#!/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 \ :) + +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: + 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 + +clean:: + $(MAKE) -C debian/local 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/30eucalyptus-udeb + +binary-install/eucalyptus-cc binary-install/eucalyptus-nc binary-install/eucalyptus-cloud:: + dh_installinit -p$(cdbs_curpkg) --onlyscripts -- start 92 2 3 4 5 . stop 8 0 1 6 . + +binary-install/eucalyptus-cloud:: + dh_installinit -p$(cdbs_curpkg) --onlyscripts --name eucalyptus-walrus -- start 92 2 3 4 5 . stop 8 0 1 6 . + mkdir -p debian/$(cdbs_curpkg)/usr/share/eucalyptus + cp /usr/share/java/antlr.jar debian/$(cdbs_curpkg)/usr/share/eucalyptus + +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~bzr588.orig/debian/eucalyptus-common.postinst +++ eucalyptus-1.6~bzr588/debian/eucalyptus-common.postinst @@ -0,0 +1,47 @@ +#!/bin/sh + +if [ "$1" = "configure" ] +then + if ! getent passwd eucalyptus > /dev/null 2>&1 + then + adduser --system --shell /bin/bash --home /var/lib/eucalyptus --group eucalyptus + fi + + if [ -z "$2" ] + then + # Some initial configuration + /usr/sbin/euca_conf -d / /etc/eucalyptus/eucalyptus.conf + dpkg-statoverride --update --add root eucalyptus 04754 /usr/lib/eucalyptus/euca_rootwrap + fi + + if dpkg --compare-versions "$2" lt-nl 1.6~bzr515-0ubuntu4 + then + statoverride="$(dpkg-statoverride --list /usr/share/eucalyptus/euca_rootwrap || true)" + if [ -n "$statoverride" ] + then + if [ "$statoverride" = 'root eucalyptus 04750 /usr/share/eucalyptus/euca_rootwrap' ] + then + # The admin hasn't touched it, so we set it to the new standard value + dpkg-statoverride --update --add root eucalyptus 04754 /usr/lib/eucalyptus/euca_rootwrap + else + # The admin has altered it, so we migrate the statoverride to the new file + dpkg-statoverride --update --add $(echo $statoverride | sed -e 's!usr/share!usr/lib!') + fi + dpkg-statoverride --remove /usr/share/eucalyptus/euca_rootwrap + fi + fi + + if dpkg --compare-versions "$2" lt 1.5~bzr212-0ubuntu2 + then + chsh -s /bin/bash eucalyptus + fi + + if dpkg --compare-versions "$2" lt 1.5~bzr198-0ubuntu3 + then + euca_conf -user eucalyptus /etc/eucalyptus/eucalyptus.conf + fi + + chown -R eucalyptus:eucalyptus /var/lib/eucalyptus/ /var/log/eucalyptus +fi + +#DEBHELPER# --- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-gl.install +++ eucalyptus-1.6~bzr588/debian/eucalyptus-gl.install @@ -0,0 +1 @@ +/usr/lib/axis2/services/EucalyptusGL --- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-udeb.templates +++ eucalyptus-1.6~bzr588/debian/eucalyptus-udeb.templates @@ -0,0 +1,27 @@ +Template: debian-installer/eucalyptus-udeb/title +Type: text +# Main menu entry +_Description: Select cloud installation mode + +Template: eucalyptus/install-mode +Type: select +Choices-C: cluster, node +__Choices: Cluster, Node +#flag:translate!:2 +_Description: Cloud installation mode: + ${DEFAULT_TEXT} + +Template: eucalyptus/install-mode-default-cluster +Type: text +_Description: No Eucalyptus cluster controller was found on your network, so this installation will default to installing a new cluster. Select "Node" instead if this is a mistake and you already have a cluster controller in place. + +Template: eucalyptus/install-mode-default-node +Type: text +_Description: There is already a Eucalyptus cluster controller on your network, so this installation will default to installing a new computing node. Select "Cluster" instead if this is a mistake and you already have a node controller in place. + +Template: eucalyptus/cluster-address +Type: select +Choices: ${CHOICES} +_Description: Select cluster controller: + More than one cluster controller is available on your network. Select which + cluster you want this node to join. --- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-cc.config +++ eucalyptus-1.6~bzr588/debian/eucalyptus-cc.config @@ -0,0 +1,11 @@ +#! /bin/sh +set -e + +. /usr/share/debconf/confmodule + +if [ "$1" = configure ] && [ -z "$2" ]; then + db_input high eucalyptus/cluster-name || true + db_go || true +fi + +exit 0 --- eucalyptus-1.6~bzr588.orig/debian/compat +++ eucalyptus-1.6~bzr588/debian/compat @@ -0,0 +1 @@ +7 --- eucalyptus-1.6~bzr588.orig/debian/patches/05-axis-alternative-repository.patch +++ eucalyptus-1.6~bzr588/debian/patches/05-axis-alternative-repository.patch @@ -0,0 +1,14 @@ +=== modified file 'tools/httpd.conf' +Index: ubuntu/tools/httpd.conf +=================================================================== +--- ubuntu.orig/tools/httpd.conf 2009-08-31 19:15:35.141022274 -0500 ++++ ubuntu/tools/httpd.conf 2009-08-31 19:17:06.777042219 -0500 +@@ -48,7 +48,7 @@ + + + LoadModule axis2_module /usr/lib/apache2/modules/libmod_axis2.so +-Axis2RepoPath AXIS2C_HOME ++Axis2RepoPath /etc/eucalyptus/axis2 + Axis2LogFile EUCALYPTUS/var/log/eucalyptus/axis2c.log + Axis2MaxLogFileSize 128 + Axis2LogLevel error --- eucalyptus-1.6~bzr588.orig/debian/patches/series +++ eucalyptus-1.6~bzr588/debian/patches/series @@ -0,0 +1,7 @@ +01-wsdl-stubs.patch +02-rely-on-libvirt-defaults.patch +03-DESTDIR.patch +axis2c_home_init.diff +04-axis2c-1.6.0-rampart-1.3.0.patch +05-axis-alternative-repository.patch +06-symlinked-jars.patch --- eucalyptus-1.6~bzr588.orig/debian/patches/03-DESTDIR.patch +++ eucalyptus-1.6~bzr588/debian/patches/03-DESTDIR.patch @@ -0,0 +1,297 @@ +Index: ubuntu/Makefile +=================================================================== +--- ubuntu.orig/Makefile 2009-08-31 19:12:35.625022337 -0500 ++++ ubuntu/Makefile 2009-08-31 19:15:30.468020621 -0500 +@@ -41,17 +41,17 @@ + (cd $$subdir && $(MAKE) $@) || exit $$? ; done + + install: deploy +- @$(INSTALL) -d $(prefix) +- @$(INSTALL) -d $(etcdir)/eucalyptus/cloud.d +- @$(INSTALL) -m 0644 VERSION $(etcdir)/eucalyptus/eucalyptus-version +- @$(INSTALL) -d $(etcdir)/init.d +- @$(INSTALL) -d $(vardir)/run/eucalyptus/net +- @$(INSTALL) -d $(vardir)/lib/eucalyptus/keys +- @$(INSTALL) -d $(vardir)/lib/eucalyptus/CC +- @$(INSTALL) -d $(vardir)/log/eucalyptus +- @$(INSTALL) -d $(datarootdir)/eucalyptus +- @$(INSTALL) -d $(usrdir)/sbin +- @$(INSTALL) -d $(usrdir)/lib/eucalyptus ++ @$(INSTALL) -d $(DESTDIR)$(prefix) ++ @$(INSTALL) -d $(DESTDIR)$(etcdir)/eucalyptus/cloud.d ++ @$(INSTALL) -m 0644 VERSION $(DESTDIR)$(etcdir)/eucalyptus/eucalyptus-version ++ @$(INSTALL) -d $(DESTDIR)$(etcdir)/init.d ++ @$(INSTALL) -d $(DESTDIR)$(vardir)/run/eucalyptus/net ++ @$(INSTALL) -d $(DESTDIR)$(vardir)/lib/eucalyptus/keys ++ @$(INSTALL) -d $(DESTDIR)$(vardir)/lib/eucalyptus/CC ++ @$(INSTALL) -d $(DESTDIR)$(vardir)/log/eucalyptus ++ @$(INSTALL) -d $(DESTDIR)$(datarootdir)/eucalyptus ++ @$(INSTALL) -d $(DESTDIR)$(usrdir)/sbin ++ @$(INSTALL) -d $(DESTDIR)$(usrdir)/lib/eucalyptus + @for subdir in $(SUBDIRS); do \ + (cd $$subdir && $(MAKE) $@) || exit $$? ; done + +Index: ubuntu/clc/modules/bootstrap/Makefile +=================================================================== +--- ubuntu.orig/clc/modules/bootstrap/Makefile 2009-08-31 15:49:53.585022527 -0500 ++++ ubuntu/clc/modules/bootstrap/Makefile 2009-08-31 19:15:30.468020621 -0500 +@@ -45,8 +45,8 @@ + gengetopt --input=arguments.ggo --file-name=eucalyptus-opts --func-name=arguments --arg-struct-name=eucalyptus_opts + + install: +- $(INSTALL) -d $(sbindir) +- $(INSTALL) -m 0755 eucalyptus-cloud $(sbindir)/eucalyptus-cloud ++ $(INSTALL) -d $(DESTDIR)$(sbindir) ++ $(INSTALL) -m 0755 eucalyptus-cloud $(DESTDIR)$(sbindir)/eucalyptus-cloud + + clean: + rm -f $(OBJS) eucalyptus-cloud +Index: ubuntu/clc/modules/storage-controller/native/Makefile +=================================================================== +--- ubuntu.orig/clc/modules/storage-controller/native/Makefile 2009-08-31 15:49:54.613022244 -0500 ++++ ubuntu/clc/modules/storage-controller/native/Makefile 2009-08-31 19:15:30.468020621 -0500 +@@ -17,5 +17,5 @@ + rm -f $(LVM2_SO) *.o *~* *#* + + install: +- mkdir -p $(EUCALYPTUS)/usr/lib/eucalyptus/ +- cp $(LIBDIR)/$(LVM2_SO) $(EUCALYPTUS)/usr/lib/eucalyptus/ ++ mkdir -p $(DESTDIR)$(EUCALYPTUS)/usr/lib/eucalyptus/ ++ cp $(LIBDIR)/$(LVM2_SO) $(DESTDIR)$(EUCALYPTUS)/usr/lib/eucalyptus/ +Index: ubuntu/cluster/Makefile +=================================================================== +--- ubuntu.orig/cluster/Makefile 2009-08-31 15:49:54.253024663 -0500 ++++ ubuntu/cluster/Makefile 2009-08-31 19:15:30.472022736 -0500 +@@ -59,20 +59,20 @@ + $(CC) -o $(CLIENTKILLALL) $(CFLAGS) $(INCLUDES) $(CC_LIBS) generated/adb_*.o generated/axis2_stub_*.o ../util/misc.o ../util/euca_auth.o $(CLIENT).c cc-client-marshal-adb.c -DMODE=0 + + deploy: +- $(INSTALL) -d $(AXIS2C_SERVICES)/$(SERVICE_NAME)/ +- $(INSTALL) $(SERVICE_SO) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/ +- $(INSTALL) $(CCWSDL) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/ ++ $(INSTALL) -d $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/ ++ $(INSTALL) $(SERVICE_SO) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/ ++ $(INSTALL) $(CCWSDL) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/ + #no ws-sec +- cat generated/services.xml | ../tools/add_wsdllocation.pl $(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(CCWSDLNAME) > $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml ++ cat generated/services.xml | ../tools/add_wsdllocation.pl $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(CCWSDLNAME) > $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml + + #ws-sec +- cat generated/services.xml | ../tools/add_wsdllocation.pl $(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(CCWSDLNAME) | ../tools/add_service_policy.pl ../tools/service-policy-template.xml | sed "s:CLIENT-CERT:cloud-cert.pem:g" | sed "s:CLIENT-KEY:cloud-pk.pem:g" | sed "s:SERVER-CERT:cluster-cert.pem:g" | sed "s:SERVER-KEY:cluster-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml ++ cat generated/services.xml | ../tools/add_wsdllocation.pl $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(CCWSDLNAME) | ../tools/add_service_policy.pl ../tools/service-policy-template.xml | sed "s:CLIENT-CERT:cloud-cert.pem:g" | sed "s:CLIENT-KEY:cloud-pk.pem:g" | sed "s:SERVER-CERT:cluster-cert.pem:g" | sed "s:SERVER-KEY:cluster-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml + cat ../tools/client-policy-template.xml | sed "s:EUCALYPTUS_HOME:$(EUCALYPTUS):g" | sed "s:AXIS2C_HOME:$(AXIS2C_HOME):g" | sed "s:CLIENT-CERT:cloud-cert.pem:g" | sed "s:SERVER-CERT:cluster-cert.pem:g" | sed "s:SERVER-KEY:cluster-pk.pem:g" | sed "s:CLIENT-KEY:cloud-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > cc-client-policy.xml + ## cp ../tools/*.pem $(EUCALYPTUS)/var/lib/eucalyptus/keys/ + # cp cc-client-policy.xml $(EUCALYPTUS)/var/lib/eucalyptus/keys/ + # chmod -R 0600 $(EUCALYPTUS)/var/lib/eucalyptus/keys/* + # ws +- $(INSTALL) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml ++ $(INSTALL) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml + # no ws + # cp $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml + +@@ -85,5 +85,5 @@ + rm -f generated/stubs + + install: deploy +- @$(INSTALL) -m 0555 $(CLIENTKILLALL) $(sbindir) +- @$(INSTALL) cc-client-policy.xml $(vardir)/lib/eucalyptus/keys/ ++ @$(INSTALL) -m 0555 $(CLIENTKILLALL) $(DESTDIR)$(sbindir) ++ @$(INSTALL) cc-client-policy.xml $(DESTDIR)$(vardir)/lib/eucalyptus/keys/ +Index: ubuntu/gatherlog/Makefile +=================================================================== +--- ubuntu.orig/gatherlog/Makefile 2009-08-31 15:49:53.916024434 -0500 ++++ ubuntu/gatherlog/Makefile 2009-08-31 19:15:30.472022736 -0500 +@@ -46,11 +46,11 @@ + $(CC) -o $(CLIENT) $(CFLAGS) $(INCLUDES) $(LIBS) generated/adb_*.o generated/axis2_stub_*.o ../util/misc.o ../util/euca_auth.o $(CLIENT).c gl-client-marshal-adb.c -DMODE=1 + + deploy: +- $(INSTALL) -d $(AXIS2C_SERVICES)/$(SERVICE_NAME)/ +- $(INSTALL) $(SERVICE_SO) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/ +- $(INSTALL) $(GLWSDL) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/ ++ $(INSTALL) -d $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/ ++ $(INSTALL) $(SERVICE_SO) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/ ++ $(INSTALL) $(GLWSDL) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/ + #no ws-sec +- cat generated/services.xml | ../tools/add_wsdllocation.pl $(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(GLWSDLNAME) > $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml ++ cat generated/services.xml | ../tools/add_wsdllocation.pl $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(GLWSDLNAME) > $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml + + #ws-sec + # cat generated/services.xml | ../tools/add_wsdllocation.pl $(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(GLWSDLNAME) | ../tools/add_service_policy.pl ../tools/service-policy-template.xml | sed "s:CLIENT-CERT:cloud-cert.pem:g" | sed "s:CLIENT-KEY:cloud-pk.pem:g" | sed "s:SERVER-CERT:cluster-cert.pem:g" | sed "s:SERVER-KEY:cluster-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml +@@ -61,7 +61,7 @@ + # ws + # cp $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml + # no ws +- $(INSTALL) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml ++ $(INSTALL) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml + + clean: + rm -f $(SERVICE_SO) *.o $(CLIENT) *~* *#* +Index: ubuntu/node/Makefile +=================================================================== +--- ubuntu.orig/node/Makefile 2009-08-31 15:49:54.105023183 -0500 ++++ ubuntu/node/Makefile 2009-08-31 19:15:30.472022736 -0500 +@@ -79,19 +79,19 @@ + $(CC) $(CFLAGS) $(INCLUDES) $(NC_LIBS) -o test_nc test_nc.c ../util/misc.o + + deploy: +- $(INSTALL) -d $(AXIS2C_SERVICES)/$(SERVICE_NAME)/ +- $(INSTALL) $(SERVICE_SO) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/ ++ $(INSTALL) -d $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/ ++ $(INSTALL) $(SERVICE_SO) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/ + + # no ws-sec +- cat generated/services.xml | ../tools/add_wsdllocation.pl $(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(NCWSDLNAME) > $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml ++ cat generated/services.xml | ../tools/add_wsdllocation.pl $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(NCWSDLNAME) > $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml + # ws-sec +- cat generated/services.xml | ../tools/add_wsdllocation.pl $(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(NCWSDLNAME) | ../tools/add_service_policy.pl ../tools/service-policy-template.xml | sed "s:CLIENT-CERT:cluster-cert.pem:g" | sed "s:CLIENT-KEY:cluster-pk.pem:g" | sed "s:SERVER-CERT:node-cert.pem:g" | sed "s:SERVER-KEY:node-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml ++ cat generated/services.xml | ../tools/add_wsdllocation.pl $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(NCWSDLNAME) | ../tools/add_service_policy.pl ../tools/service-policy-template.xml | sed "s:CLIENT-CERT:cluster-cert.pem:g" | sed "s:CLIENT-KEY:cluster-pk.pem:g" | sed "s:SERVER-CERT:node-cert.pem:g" | sed "s:SERVER-KEY:node-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml + cat ../tools/client-policy-template.xml | sed "s:EUCALYPTUS_HOME:$(EUCALYPTUS):g" | sed "s:AXIS2C_HOME:$(AXIS2C_HOME):g" | sed "s:CLIENT-CERT:cluster-cert.pem:g" | sed "s:CLIENT-KEY:cluster-pk.pem:g" | sed "s:SERVER-CERT:node-cert.pem:g" | sed "s:SERVER-KEY:node-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > nc-client-policy.xml + # cp nc-client-policy.xml $(EUCALYPTUS)/var/lib/eucalyptus/keys/ + ## cp ../tools/*.pem $(EUCALYPTUS)/var/lib/eucalyptus/keys/ + # chmod -R 0600 $(EUCALYPTUS)/var/lib/eucalyptus/keys/* + # ws +- $(INSTALL) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml ++ $(INSTALL) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml + # no ws + # cp $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml + +@@ -105,5 +105,5 @@ + rm -rf $(SERVICE_SO) *.o $(CLIENT) $(CLIENT)_local *~* *#* + + install: deploy +- $(INSTALL) nc-client-policy.xml $(vardir)/lib/eucalyptus/keys/ +- $(INSTALL) -m 0755 test_nc $(sbindir)/euca_test_nc ++ $(INSTALL) nc-client-policy.xml $(DESTDIR)$(vardir)/lib/eucalyptus/keys/ ++ $(INSTALL) -m 0755 test_nc $(DESTDIR)$(sbindir)/euca_test_nc +Index: ubuntu/tools/Makefile +=================================================================== +--- ubuntu.orig/tools/Makefile 2009-08-31 15:49:55.021043236 -0500 ++++ ubuntu/tools/Makefile 2009-08-31 19:15:30.472022736 -0500 +@@ -34,30 +34,30 @@ + @rm -rf eucalyptus eucalyptus-cloud eucalyptus-walrus eucalyptus-sc + + install: build +- @if test -e /etc/init.d/eucalyptus ; then \ +- mv /etc/init.d/eucalyptus /etc/init.d/eucalyptus.old ; \ +- echo "Moving away old init.d script"; fi +- @if test -e $(etcdir)/init.d/eucalyptus ; then \ +- mv $(etcdir)/init.d/eucalyptus $(etcdir)/init.d/eucalyptus.old ; fi +- @$(INSTALL) -m 755 eucalyptus-cloud $(etcdir)/init.d +- @$(INSTALL) -m 755 eucalyptus-walrus $(etcdir)/init.d +- @$(INSTALL) -m 755 eucalyptus-sc $(etcdir)/init.d +- @$(INSTALL) -m 755 eucalyptus-nc $(etcdir)/init.d +- @$(INSTALL) -m 755 eucalyptus-cc $(etcdir)/init.d +- @$(INSTALL) -m 644 httpd.conf $(etcdir)/eucalyptus +- @if test -e $(etcdir)/eucalyptus/eucalyptus.conf ; then \ +- cp $(etcdir)/eucalyptus/eucalyptus.conf $(etcdir)/eucalyptus/eucalyptus.conf.old ; fi +- @$(INSTALL) -m 644 eucalyptus.conf $(etcdir)/eucalyptus +- @$(INSTALL) -m 644 vtunall.conf.template $(etcdir)/eucalyptus +- @$(INSTALL) -m 755 add_key.pl $(datarootdir)/eucalyptus +- @$(INSTALL) -m 755 gen_libvirt_xml $(datarootdir)/eucalyptus +- @$(INSTALL) -m 755 gen_kvm_libvirt_xml $(datarootdir)/eucalyptus +- @$(INSTALL) -m 755 detach.pl $(datarootdir)/eucalyptus +- @$(INSTALL) -m 755 partition2disk $(datarootdir)/eucalyptus +- @$(INSTALL) -m 755 get_xen_info $(datarootdir)/eucalyptus/get_xen_info +- @$(INSTALL) -m 755 get_sys_info $(datarootdir)/eucalyptus/get_sys_info +- @$(INSTALL) -m 755 euca_ipt $(datarootdir)/eucalyptus +- @$(INSTALL) -m 755 populate_arp.pl $(datarootdir)/eucalyptus +- @$(INSTALL) -m 755 euca_conf $(sbindir) +- @$(INSTALL) -m 755 euca_sync_key $(sbindir) ++# @if test -e /etc/init.d/eucalyptus ; then \ ++# mv /etc/init.d/eucalyptus /etc/init.d/eucalyptus.old ; \ ++# echo "Moving away old init.d script"; fi ++# @if test -e $(etcdir)/init.d/eucalyptus ; then \ ++# mv $(etcdir)/init.d/eucalyptus $(etcdir)/init.d/eucalyptus.old ; fi ++ @$(INSTALL) -m 755 eucalyptus-cloud $(DESTDIR)$(etcdir)/init.d ++ @$(INSTALL) -m 755 eucalyptus-walrus $(DESTDIR)$(etcdir)/init.d ++ @$(INSTALL) -m 755 eucalyptus-sc $(DESTDIR)$(etcdir)/init.d ++ @$(INSTALL) -m 755 eucalyptus-nc $(DESTDIR)$(etcdir)/init.d ++ @$(INSTALL) -m 755 eucalyptus-cc $(DESTDIR)$(etcdir)/init.d ++ @$(INSTALL) -m 644 httpd.conf $(DESTDIR)$(etcdir)/eucalyptus ++ @if test -e $(DESTDIR)$(etcdir)/eucalyptus/eucalyptus.conf ; then \ ++ cp $(etcdir)/eucalyptus/eucalyptus.conf $(DESTDIR)$(etcdir)/eucalyptus/eucalyptus.conf.old ; fi ++ @$(INSTALL) -m 644 eucalyptus.conf $(DESTDIR)$(etcdir)/eucalyptus ++ @$(INSTALL) -m 644 vtunall.conf.template $(DESTDIR)$(etcdir)/eucalyptus ++ @$(INSTALL) -m 755 add_key.pl $(DESTDIR)$(datarootdir)/eucalyptus ++ @$(INSTALL) -m 755 gen_libvirt_xml $(DESTDIR)$(datarootdir)/eucalyptus ++ @$(INSTALL) -m 755 gen_kvm_libvirt_xml $(DESTDIR)$(datarootdir)/eucalyptus ++ @$(INSTALL) -m 755 detach.pl $(DESTDIR)$(datarootdir)/eucalyptus ++ @$(INSTALL) -m 755 partition2disk $(DESTDIR)$(datarootdir)/eucalyptus ++ @$(INSTALL) -m 755 get_xen_info $(DESTDIR)$(datarootdir)/eucalyptus/get_xen_info ++ @$(INSTALL) -m 755 get_sys_info $(DESTDIR)$(datarootdir)/eucalyptus/get_sys_info ++ @$(INSTALL) -m 755 euca_ipt $(DESTDIR)$(datarootdir)/eucalyptus ++ @$(INSTALL) -m 755 populate_arp.pl $(DESTDIR)$(datarootdir)/eucalyptus ++ @$(INSTALL) -m 755 euca_conf $(DESTDIR)$(sbindir) ++ @$(INSTALL) -m 755 euca_sync_key $(DESTDIR)$(sbindir) + +Index: ubuntu/util/Makefile +=================================================================== +--- ubuntu.orig/util/Makefile 2009-08-31 15:49:54.848026195 -0500 ++++ ubuntu/util/Makefile 2009-08-31 19:15:30.472022736 -0500 +@@ -27,8 +27,8 @@ + rm -rf config.h + + install: +- @$(INSTALL) -m 0755 euca_rootwrap $(usrdir)/lib/eucalyptus/ +- @$(INSTALL) -m 0755 euca_mountwrap $(usrdir)/lib/eucalyptus/ ++ @$(INSTALL) -m 0755 euca_rootwrap $(DESTDIR)$(usrdir)/lib/eucalyptus/ ++ @$(INSTALL) -m 0755 euca_mountwrap $(DESTDIR)$(usrdir)/lib/eucalyptus/ + + deploy: + +Index: ubuntu/clc/build.xml +=================================================================== +--- ubuntu.orig/clc/build.xml 2009-08-31 19:12:35.689021462 -0500 ++++ ubuntu/clc/build.xml 2009-08-31 19:15:30.472022736 -0500 +@@ -163,27 +163,27 @@ + + + +- +- ++ ++ + + + + +- ++ + + + + +- +- +- +- +- ++ ++ ++ ++ ++ + +- +- +- ++ ++ ++ + + + +Index: ubuntu/clc/modules/www/build.xml +=================================================================== +--- ubuntu.orig/clc/modules/www/build.xml 2009-08-31 19:12:38.869021793 -0500 ++++ ubuntu/clc/modules/www/build.xml 2009-08-31 19:15:30.472022736 -0500 +@@ -135,7 +135,7 @@ + + + +- ++ + + + --- eucalyptus-1.6~bzr588.orig/debian/patches/06-symlinked-jars.patch +++ eucalyptus-1.6~bzr588/debian/patches/06-symlinked-jars.patch @@ -0,0 +1,26 @@ +=== modified file 'clc/modules/bootstrap/eucalyptus-bootstrap.c' +Index: ubuntu/clc/modules/bootstrap/eucalyptus-bootstrap.c +=================================================================== +--- ubuntu.orig/clc/modules/bootstrap/eucalyptus-bootstrap.c 2009-09-01 17:47:37.990533228 -0500 ++++ ubuntu/clc/modules/bootstrap/eucalyptus-bootstrap.c 2009-09-01 18:04:39.966534018 -0500 +@@ -478,7 +478,7 @@ + if (strcmp(dir_ent->d_name,".") != 0 && strcmp(dir_ent->d_name,"..") != 0 && strcmp(dir_ent->d_name,"openjdk-crypto.jar") != 0 && strstr(dir_ent->d_name,"disabled") == NULL) { + char jar[256]; + snprintf(jar,255,"%s/%s",lib_dir,dir_ent->d_name); +- if( CHECK_ISREG(jar) ) wb += snprintf(jar_list+wb,JAVA_PATH_LEN-wb,":%s",jar); ++ if( CHECK_ISREG(jar) || CHECK_ISLNK(jar) ) wb += snprintf(jar_list+wb,JAVA_PATH_LEN-wb,":%s",jar); + } + } + return jar_list; +Index: ubuntu/clc/modules/bootstrap/eucalyptus-bootstrap.h +=================================================================== +--- ubuntu.orig/clc/modules/bootstrap/eucalyptus-bootstrap.h 2009-09-01 17:47:37.990533228 -0500 ++++ ubuntu/clc/modules/bootstrap/eucalyptus-bootstrap.h 2009-09-01 18:03:23.622534422 -0500 +@@ -140,6 +140,7 @@ + static bootstrapper_t bootstrap; + #define CHECK_ISDIR(path) (( path == NULL || ( stat( path, &home ) != 0 ) ) ? 0 : S_ISDIR(home.st_mode) ) + #define CHECK_ISREG(path) (( path == NULL || ( stat( path, &home ) != 0 ) ) ? 0 : S_ISREG(home.st_mode) ) ++#define CHECK_ISLNK(path) (( path == NULL || ( stat( path, &home ) != 0 ) ) ? 0 : S_ISLNK(home.st_mode) ) + int main( int argc, char *argv[ ] ); + void main_reload( void ); + void main_shutdown( void ); --- eucalyptus-1.6~bzr588.orig/debian/patches/04-axis2c-1.6.0-rampart-1.3.0.patch +++ eucalyptus-1.6~bzr588/debian/patches/04-axis2c-1.6.0-rampart-1.3.0.patch @@ -0,0 +1,796 @@ +Index: ubuntu/configure +=================================================================== +--- ubuntu.orig/configure 2009-08-31 19:12:35.653021634 -0500 ++++ ubuntu/configure 2009-08-31 19:15:45.536023604 -0500 +@@ -607,6 +607,9 @@ + TOP + EUCA_VERSION + LIBOBJS ++AXIS2C_LIBS ++AXIS2C_CFLAGS ++PKG_CONFIG + JAVA + ANT + SET_MAKE +@@ -681,7 +684,10 @@ + LDFLAGS + LIBS + CPPFLAGS +-CPP' ++CPP ++PKG_CONFIG ++AXIS2C_CFLAGS ++AXIS2C_LIBS' + + + # Initialize some variables set by options. +@@ -1313,6 +1319,10 @@ + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CPP C preprocessor ++ PKG_CONFIG path to pkg-config utility ++ AXIS2C_CFLAGS ++ C compiler flags for AXIS2C, overriding pkg-config ++ AXIS2C_LIBS linker flags for AXIS2C, overriding pkg-config + + Use these variables to override the choices made by `configure' or to help + it to find libraries and programs with nonstandard names/locations. +@@ -4452,340 +4462,202 @@ + + # Checks for libraries. + # FIXME: Replace `main' with a function in the library +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -laxis2_axiom" >&5 +-$as_echo_n "checking for main in -laxis2_axiom... " >&6; } +-if test "${ac_cv_lib_axis2_axiom_main+set}" = set; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-laxis2_axiom $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +- +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_axis2_axiom_main=yes +-else +- ac_cv_lib_axis2_axiom_main=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axis2_axiom_main" >&5 +-$as_echo "$ac_cv_lib_axis2_axiom_main" >&6; } +-if test "x$ac_cv_lib_axis2_axiom_main" = x""yes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBAXIS2_AXIOM 1 +-_ACEOF + +- LIBS="-laxis2_axiom $LIBS" +- +-else +- as_fn_error "Cannot find axis2 libs!" "$LINENO" 5 +-fi + +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -laxis2_engine" >&5 +-$as_echo_n "checking for main in -laxis2_engine... " >&6; } +-if test "${ac_cv_lib_axis2_engine_main+set}" = set; then : ++if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. ++set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ++$as_echo_n "checking for $ac_word... " >&6; } ++if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : + $as_echo_n "(cached) " >&6 + else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-laxis2_engine $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- ++ case $PKG_CONFIG in ++ [\\/]* | ?:[\\/]*) ++ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ++ ;; ++ *) ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" ++ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++ done ++IFS=$as_save_IFS + +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_axis2_engine_main=yes +-else +- ac_cv_lib_axis2_engine_main=no ++ ;; ++esac + fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS ++PKG_CONFIG=$ac_cv_path_PKG_CONFIG ++if test -n "$PKG_CONFIG"; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 ++$as_echo "$PKG_CONFIG" >&6; } ++else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } + fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axis2_engine_main" >&5 +-$as_echo "$ac_cv_lib_axis2_engine_main" >&6; } +-if test "x$ac_cv_lib_axis2_engine_main" = x""yes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBAXIS2_ENGINE 1 +-_ACEOF + +- LIBS="-laxis2_engine $LIBS" + +-else +- as_fn_error "Cannot find axis2 libs!" "$LINENO" 5 + fi +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -laxis2_http_common" >&5 +-$as_echo_n "checking for main in -laxis2_http_common... " >&6; } +-if test "${ac_cv_lib_axis2_http_common_main+set}" = set; then : ++if test -z "$ac_cv_path_PKG_CONFIG"; then ++ ac_pt_PKG_CONFIG=$PKG_CONFIG ++ # Extract the first word of "pkg-config", so it can be a program name with args. ++set dummy pkg-config; ac_word=$2 ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ++$as_echo_n "checking for $ac_word... " >&6; } ++if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : + $as_echo_n "(cached) " >&6 + else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-laxis2_http_common $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- ++ case $ac_pt_PKG_CONFIG in ++ [\\/]* | ?:[\\/]*) ++ ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ++ ;; ++ *) ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ++ ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" ++ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++ done ++IFS=$as_save_IFS + +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_axis2_http_common_main=yes +-else +- ac_cv_lib_axis2_http_common_main=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS ++ ;; ++esac + fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axis2_http_common_main" >&5 +-$as_echo "$ac_cv_lib_axis2_http_common_main" >&6; } +-if test "x$ac_cv_lib_axis2_http_common_main" = x""yes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBAXIS2_HTTP_COMMON 1 +-_ACEOF +- +- LIBS="-laxis2_http_common $LIBS" +- ++ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG ++if test -n "$ac_pt_PKG_CONFIG"; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 ++$as_echo "$ac_pt_PKG_CONFIG" >&6; } + else +- as_fn_error "Cannot find axis2 libs!" "$LINENO" 5 ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } + fi + +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -laxis2_http_receiver" >&5 +-$as_echo_n "checking for main in -laxis2_http_receiver... " >&6; } +-if test "${ac_cv_lib_axis2_http_receiver_main+set}" = set; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-laxis2_http_receiver $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +- +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_axis2_http_receiver_main=yes ++ if test "x$ac_pt_PKG_CONFIG" = x; then ++ PKG_CONFIG="" ++ else ++ case $cross_compiling:$ac_tool_warned in ++yes:) ++{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 ++$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ++ac_tool_warned=yes ;; ++esac ++ PKG_CONFIG=$ac_pt_PKG_CONFIG ++ fi + else +- ac_cv_lib_axis2_http_receiver_main=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS ++ PKG_CONFIG="$ac_cv_path_PKG_CONFIG" + fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axis2_http_receiver_main" >&5 +-$as_echo "$ac_cv_lib_axis2_http_receiver_main" >&6; } +-if test "x$ac_cv_lib_axis2_http_receiver_main" = x""yes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBAXIS2_HTTP_RECEIVER 1 +-_ACEOF + +- LIBS="-laxis2_http_receiver $LIBS" +- +-else +- as_fn_error "Cannot find axis2 libs!" "$LINENO" 5 + fi ++if test -n "$PKG_CONFIG"; then ++ _pkg_min_version=0.9.0 ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 ++$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } ++ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ++$as_echo "yes" >&6; } ++ else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ PKG_CONFIG="" ++ fi + +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -laxis2_http_sender" >&5 +-$as_echo_n "checking for main in -laxis2_http_sender... " >&6; } +-if test "${ac_cv_lib_axis2_http_sender_main+set}" = set; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-laxis2_http_sender $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +- +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_axis2_http_sender_main=yes +-else +- ac_cv_lib_axis2_http_sender_main=no + fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axis2_http_sender_main" >&5 +-$as_echo "$ac_cv_lib_axis2_http_sender_main" >&6; } +-if test "x$ac_cv_lib_axis2_http_sender_main" = x""yes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBAXIS2_HTTP_SENDER 1 +-_ACEOF +- +- LIBS="-laxis2_http_sender $LIBS" + ++pkg_failed=no ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AXIS2C" >&5 ++$as_echo_n "checking for AXIS2C... " >&6; } ++ ++if test -n "$PKG_CONFIG"; then ++ if test -n "$AXIS2C_CFLAGS"; then ++ pkg_cv_AXIS2C_CFLAGS="$AXIS2C_CFLAGS" ++ else ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"axis2c\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "axis2c") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_AXIS2C_CFLAGS=`$PKG_CONFIG --cflags "axis2c" 2>/dev/null` + else +- as_fn_error "Cannot find axis2 libs!" "$LINENO" 5 ++ pkg_failed=yes + fi +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lguththila" >&5 +-$as_echo_n "checking for main in -lguththila... " >&6; } +-if test "${ac_cv_lib_guththila_main+set}" = set; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lguththila $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +- +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_guththila_main=yes ++ fi + else +- ac_cv_lib_guththila_main=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS ++ pkg_failed=untried + fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_guththila_main" >&5 +-$as_echo "$ac_cv_lib_guththila_main" >&6; } +-if test "x$ac_cv_lib_guththila_main" = x""yes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBGUTHTHILA 1 +-_ACEOF +- +- LIBS="-lguththila $LIBS" +- ++if test -n "$PKG_CONFIG"; then ++ if test -n "$AXIS2C_LIBS"; then ++ pkg_cv_AXIS2C_LIBS="$AXIS2C_LIBS" ++ else ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"axis2c\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "axis2c") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_AXIS2C_LIBS=`$PKG_CONFIG --libs "axis2c" 2>/dev/null` + else +- as_fn_error "Cannot find libguththila!" "$LINENO" 5 ++ pkg_failed=yes + fi +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for axiom_xml_reader_init in -laxis2_parser" >&5 +-$as_echo_n "checking for axiom_xml_reader_init in -laxis2_parser... " >&6; } +-if test "${ac_cv_lib_axis2_parser_axiom_xml_reader_init+set}" = set; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-laxis2_parser $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char axiom_xml_reader_init (); +-int +-main () +-{ +-return axiom_xml_reader_init (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_axis2_parser_axiom_xml_reader_init=yes ++ fi + else +- ac_cv_lib_axis2_parser_axiom_xml_reader_init=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS ++ pkg_failed=untried + fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axis2_parser_axiom_xml_reader_init" >&5 +-$as_echo "$ac_cv_lib_axis2_parser_axiom_xml_reader_init" >&6; } +-if test "x$ac_cv_lib_axis2_parser_axiom_xml_reader_init" = x""yes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBAXIS2_PARSER 1 +-_ACEOF + +- LIBS="-laxis2_parser $LIBS" + +-else +- as_fn_error "Cannot find axis2 libs!" "$LINENO" 5 +-fi +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -laxutil" >&5 +-$as_echo_n "checking for main in -laxutil... " >&6; } +-if test "${ac_cv_lib_axutil_main+set}" = set; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-laxutil $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ + ++if test $pkg_failed = yes; then + +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_axutil_main=yes ++if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then ++ _pkg_short_errors_supported=yes + else +- ac_cv_lib_axutil_main=no ++ _pkg_short_errors_supported=no + fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axutil_main" >&5 +-$as_echo "$ac_cv_lib_axutil_main" >&6; } +-if test "x$ac_cv_lib_axutil_main" = x""yes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBAXUTIL 1 +-_ACEOF ++ if test $_pkg_short_errors_supported = yes; then ++ AXIS2C_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "axis2c"` ++ else ++ AXIS2C_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "axis2c"` ++ fi ++ # Put the nasty error message in config.log where it belongs ++ echo "$AXIS2C_PKG_ERRORS" >&5 + +- LIBS="-laxutil $LIBS" +- +-else +- as_fn_error "Cannot find libaxutil" "$LINENO" 5 ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ as_fn_error "Cannot find axis2 libs!" "$LINENO" 5 ++elif test $pkg_failed = untried; then ++ as_fn_error "Cannot find axis2 libs!" "$LINENO" 5 ++else ++ AXIS2C_CFLAGS=$pkg_cv_AXIS2C_CFLAGS ++ AXIS2C_LIBS=$pkg_cv_AXIS2C_LIBS ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ++$as_echo "yes" >&6; } ++ : + fi +- ++AXIS2C_LIBS="-Wl,--rpath=$(pkg-config axis2c --variable=libdir) $AXIS2C_LIBS" ++#AC_CHECK_LIB([axis2_axiom],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) ++#AC_CHECK_LIB([axis2_engine],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) ++#AC_CHECK_LIB([axis2_http_common],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) ++#AC_CHECK_LIB([axis2_http_receiver],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) ++#AC_CHECK_LIB([axis2_http_sender],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) ++#AC_CHECK_LIB([guththila],[main],,AC_MSG_ERROR([Cannot find libguththila!])) ++#AC_CHECK_LIB([axis2_parser],[axiom_xml_reader_init],,AC_MSG_ERROR([Cannot find axis2 libs!])) ++#AC_CHECK_LIB([axutil],[main],,AC_MSG_ERROR([Cannot find libaxutil])) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 + $as_echo_n "checking for main in -lm... " >&6; } + if test "${ac_cv_lib_m_main+set}" = set; then : +@@ -4825,6 +4697,7 @@ + + fi + ++#AC_CHECK_LIB([mod_rampart],[main],,AC_MSG_ERROR([Cannot find libmod_rampart]),[$AXIS2C_LIBS]) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmod_rampart" >&5 + $as_echo_n "checking for main in -lmod_rampart... " >&6; } + if test "${ac_cv_lib_mod_rampart_main+set}" = set; then : +@@ -4866,129 +4739,6 @@ + as_fn_error "Cannot find libmod_rampart" "$LINENO" 5 + fi + +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lneethi" >&5 +-$as_echo_n "checking for main in -lneethi... " >&6; } +-if test "${ac_cv_lib_neethi_main+set}" = set; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lneethi $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +- +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_neethi_main=yes +-else +- ac_cv_lib_neethi_main=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_neethi_main" >&5 +-$as_echo "$ac_cv_lib_neethi_main" >&6; } +-if test "x$ac_cv_lib_neethi_main" = x""yes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBNEETHI 1 +-_ACEOF +- +- LIBS="-lneethi $LIBS" +- +-else +- as_fn_error "Cannot find libneethi!" "$LINENO" 5 +-fi +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lomxmlsec" >&5 +-$as_echo_n "checking for main in -lomxmlsec... " >&6; } +-if test "${ac_cv_lib_omxmlsec_main+set}" = set; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lomxmlsec $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +- +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_omxmlsec_main=yes +-else +- ac_cv_lib_omxmlsec_main=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_omxmlsec_main" >&5 +-$as_echo "$ac_cv_lib_omxmlsec_main" >&6; } +-if test "x$ac_cv_lib_omxmlsec_main" = x""yes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBOMXMLSEC 1 +-_ACEOF +- +- LIBS="-lomxmlsec $LIBS" +- +-else +- as_fn_error "Cannot find libomxmlsec!" "$LINENO" 5 +-fi +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -loxstokens" >&5 +-$as_echo_n "checking for main in -loxstokens... " >&6; } +-if test "${ac_cv_lib_oxstokens_main+set}" = set; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-loxstokens $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +- +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_oxstokens_main=yes +-else +- ac_cv_lib_oxstokens_main=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oxstokens_main" >&5 +-$as_echo "$ac_cv_lib_oxstokens_main" >&6; } +-if test "x$ac_cv_lib_oxstokens_main" = x""yes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBOXSTOKENS 1 +-_ACEOF +- +- LIBS="-loxstokens $LIBS" +- +-else +- as_fn_error "Cannot find liboxstokens!" "$LINENO" 5 +-fi +- + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5 + $as_echo_n "checking for main in -lpthread... " >&6; } + if test "${ac_cv_lib_pthread_main+set}" = set; then : +Index: ubuntu/Makedefs.in +=================================================================== +--- ubuntu.orig/Makedefs.in 2009-08-31 19:12:35.613022628 -0500 ++++ ubuntu/Makedefs.in 2009-08-31 19:16:06.256021111 -0500 +@@ -44,6 +44,7 @@ + ANT = @ANT@ -e + WSDL2C = @WSDL2C@ + JAVA_HOME = @JAVA_HOME@ ++AXIS2C_LIBS = @AXIS2C_LIBS@ + + # compile time configurations + euca_theme = @INTERFACE_THEME@ +Index: ubuntu/configure.ac +=================================================================== +--- ubuntu.orig/configure.ac 2009-08-31 19:12:35.661021603 -0500 ++++ ubuntu/configure.ac 2009-08-31 19:15:45.536023604 -0500 +@@ -167,19 +167,19 @@ + + # Checks for libraries. + # FIXME: Replace `main' with a function in the library +-AC_CHECK_LIB([axis2_axiom],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) +-AC_CHECK_LIB([axis2_engine],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) +-AC_CHECK_LIB([axis2_http_common],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) +-AC_CHECK_LIB([axis2_http_receiver],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) +-AC_CHECK_LIB([axis2_http_sender],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) +-AC_CHECK_LIB([guththila],[main],,AC_MSG_ERROR([Cannot find libguththila!])) +-AC_CHECK_LIB([axis2_parser],[axiom_xml_reader_init],,AC_MSG_ERROR([Cannot find axis2 libs!])) +-AC_CHECK_LIB([axutil],[main],,AC_MSG_ERROR([Cannot find libaxutil])) ++PKG_CHECK_MODULES([AXIS2C], [axis2c],,AC_MSG_ERROR([Cannot find axis2 libs!])) ++AXIS2C_LIBS="-Wl,--rpath=$(pkg-config axis2c --variable=libdir) $AXIS2C_LIBS" ++#AC_CHECK_LIB([axis2_axiom],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) ++#AC_CHECK_LIB([axis2_engine],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) ++#AC_CHECK_LIB([axis2_http_common],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) ++#AC_CHECK_LIB([axis2_http_receiver],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) ++#AC_CHECK_LIB([axis2_http_sender],[main],,AC_MSG_ERROR([Cannot find axis2 libs!])) ++#AC_CHECK_LIB([guththila],[main],,AC_MSG_ERROR([Cannot find libguththila!])) ++#AC_CHECK_LIB([axis2_parser],[axiom_xml_reader_init],,AC_MSG_ERROR([Cannot find axis2 libs!])) ++#AC_CHECK_LIB([axutil],[main],,AC_MSG_ERROR([Cannot find libaxutil])) + AC_CHECK_LIB([m],[main]) ++#AC_CHECK_LIB([mod_rampart],[main],,AC_MSG_ERROR([Cannot find libmod_rampart]),[$AXIS2C_LIBS]) + AC_CHECK_LIB([mod_rampart],[main],,AC_MSG_ERROR([Cannot find libmod_rampart])) +-AC_CHECK_LIB([neethi],[main],,AC_MSG_ERROR([Cannot find libneethi!])) +-AC_CHECK_LIB([omxmlsec],[main],,AC_MSG_ERROR([Cannot find libomxmlsec!])) +-AC_CHECK_LIB([oxstokens],[main],,AC_MSG_ERROR([Cannot find liboxstokens!])) + AC_CHECK_LIB([pthread],[main]) + AC_CHECK_LIB([rt],[main]) + AC_CHECK_LIB([virt],[main],true,AC_MSG_ERROR([Cannot find libvirt!])) +Index: ubuntu/cluster/Makefile +=================================================================== +--- ubuntu.orig/cluster/Makefile 2009-08-31 19:15:30.472022736 -0500 ++++ ubuntu/cluster/Makefile 2009-08-31 19:15:45.536023604 -0500 +@@ -17,7 +17,7 @@ + SCLIBS=../storage/storage.o + VNLIBS=../net/vnetwork.o ../util/misc.o + WSSECLIBS=../util/euca_auth.o +-CC_LIBS = ${LIBS} -lcurl ++CC_LIBS = ${LIBS} -lcurl ${AXIS2C_LIBS} + + all: server client + +Index: ubuntu/gatherlog/Makefile +=================================================================== +--- ubuntu.orig/gatherlog/Makefile 2009-08-31 19:15:30.472022736 -0500 ++++ ubuntu/gatherlog/Makefile 2009-08-31 19:15:45.540024252 -0500 +@@ -10,6 +10,7 @@ + SERVICE_NAME=EucalyptusGL + CLIENT=GLclient + #WSDL2C=$(AXIS2C_HOME)/bin/tools/wsdl2c/WSDL2C.sh ++GL_LIBS = $(LIBS) $(AXIS2C_LIBS) + + all: server client + +@@ -38,12 +39,12 @@ + server: $(SERVICE_SO) + + $(SERVICE_SO): generated/stubs gl-client-marshal-adb.o server-marshal.o handlers.o $(AXIS2C_HOME)/lib/libaxutil.so +- $(CC) -shared generated/*.o server-marshal.o handlers.o $(WSSECLIBS) -L$(AXIS2C_HOME)/lib $(LIBS) ../util/misc.o ../util/euca_auth.o ./gl-client-marshal-adb.o -o $(SERVICE_SO) ++ $(CC) -shared generated/*.o server-marshal.o handlers.o $(WSSECLIBS) -L$(AXIS2C_HOME)/lib $(GL_LIBS) ../util/misc.o ../util/euca_auth.o ./gl-client-marshal-adb.o -o $(SERVICE_SO) + + client: $(CLIENT) + + $(CLIENT): generated/stubs $(CLIENT).c gl-client-marshal-adb.c handlers.o $(AXIS2C_HOME)/lib/libaxutil.so +- $(CC) -o $(CLIENT) $(CFLAGS) $(INCLUDES) $(LIBS) generated/adb_*.o generated/axis2_stub_*.o ../util/misc.o ../util/euca_auth.o $(CLIENT).c gl-client-marshal-adb.c -DMODE=1 ++ $(CC) -o $(CLIENT) $(CFLAGS) $(INCLUDES) $(GL_LIBS) generated/adb_*.o generated/axis2_stub_*.o ../util/misc.o ../util/euca_auth.o $(CLIENT).c gl-client-marshal-adb.c -DMODE=1 + + deploy: + $(INSTALL) -d $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/ +Index: ubuntu/node/Makefile +=================================================================== +--- ubuntu.orig/node/Makefile 2009-08-31 19:15:30.472022736 -0500 ++++ ubuntu/node/Makefile 2009-08-31 19:15:45.540024252 -0500 +@@ -12,7 +12,7 @@ + SERVICE_NAME=EucalyptusNC + CLIENT=NCclient + #WSDL2C=$(AXIS2C_HOME)/bin/tools/wsdl2c/WSDL2C.sh +-NC_LIBS = $(LIBS) -lvirt -lcurl ++NC_LIBS = $(LIBS) -lvirt -lcurl $(AXIS2C_LIBS) + NC_HANDLERS=handlers_xen.o handlers_kvm.o handlers_default.o + + all: server client clientlib test_nc test +Index: ubuntu/util/euca_auth.h +=================================================================== +--- ubuntu.orig/util/euca_auth.h 2009-08-31 19:12:39.593023440 -0500 ++++ ubuntu/util/euca_auth.h 2009-08-31 19:15:45.540024252 -0500 +@@ -64,6 +64,7 @@ + #include "oxs_axiom.h" + #include "oxs_x509_cert.h" + #include "oxs_key_mgr.h" ++#include "axis2_op.h" + #include "rampart_handler_util.h" + #include "rampart_sec_processed_result.h" + #include "rampart_error.h" +Index: ubuntu/util/euca_auth.c +=================================================================== +--- ubuntu.orig/util/euca_auth.c 2009-08-31 19:12:39.589023840 -0500 ++++ ubuntu/util/euca_auth.c 2009-08-31 19:15:45.540024252 -0500 +@@ -102,6 +102,7 @@ + #include "oxs_axiom.h" + #include "oxs_x509_cert.h" + #include "oxs_key_mgr.h" ++#include "rampart_context.h" + #include "rampart_handler_util.h" + #include "rampart_sec_processed_result.h" + #include "rampart_error.h" --- eucalyptus-1.6~bzr588.orig/debian/patches/01-wsdl-stubs.patch +++ eucalyptus-1.6~bzr588/debian/patches/01-wsdl-stubs.patch @@ -0,0 +1,325293 @@ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_eucalyptusMessage.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_eucalyptusMessage.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_eucalyptusMessage.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_eucalyptusMessage.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_virtualMachineType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_virtualMachineType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_virtualMachineType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_virtualMachineType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_netConfigType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_netConfigType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_netConfigType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_netConfigType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_volumeType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_volumeType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_volumeType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_volumeType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ccInstanceType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ccInstanceType.c +@@ -0,0 +1,6134 @@ ++ ++ ++ /** ++ * 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; ++ ++ ++ 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_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->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_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 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; ++ axis2_char_t *text_value_15_temp; ++ ++ axis2_char_t text_value_16[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_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_15 = (axis2_char_t*)element; ++ ++ 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 (!_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 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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ccInstanceType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ccInstanceType.h +@@ -0,0 +1,1199 @@ ++ ++ ++ #ifndef ADB_CCINSTANCETYPE_H ++ #define ADB_CCINSTANCETYPE_H ++ ++ /** ++ * adb_ccInstanceType.h ++ * ++ * This file was auto-generated from WSDL ++ * by the Apache Axis2/Java version: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 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 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_runInstancesResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_runInstancesResponseType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_runInstancesResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_runInstancesResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_runInstancesType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_runInstancesType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_runInstancesType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_runInstancesType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_detachVolumeType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_detachVolumeType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_detachVolumeType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_detachVolumeType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_networkRule.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_networkRule.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_networkRule.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_networkRule.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_configureNetworkType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_configureNetworkType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_configureNetworkType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_configureNetworkType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_terminateInstancesType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_terminateInstancesType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_terminateInstancesType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_terminateInstancesType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_assignAddressResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_assignAddressResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_assignAddressResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_assignAddressResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_assignAddressType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_assignAddressType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_assignAddressType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_assignAddressType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_unassignAddressType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_unassignAddressType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_unassignAddressType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_unassignAddressType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeNetworksType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeNetworksType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeNetworksType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeNetworksType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_unassignAddressResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_unassignAddressResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_unassignAddressResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_unassignAddressResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_stopNetworkResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_stopNetworkResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_stopNetworkResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_stopNetworkResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_rebootInstancesResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_rebootInstancesResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_rebootInstancesResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_rebootInstancesResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_getConsoleOutputResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_getConsoleOutputResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_getConsoleOutputResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_getConsoleOutputResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_stopNetworkType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_stopNetworkType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_stopNetworkType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_stopNetworkType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_networkType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_networkType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_networkType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_networkType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeNetworksResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeNetworksResponseType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeNetworksResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeNetworksResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_startNetworkResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_startNetworkResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_startNetworkResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_startNetworkResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_getConsoleOutputType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_getConsoleOutputType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_getConsoleOutputType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_getConsoleOutputType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_attachVolumeResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_attachVolumeResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_attachVolumeResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_attachVolumeResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describePublicAddressesType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describePublicAddressesType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describePublicAddressesType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describePublicAddressesType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_attachVolumeType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_attachVolumeType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_attachVolumeType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_attachVolumeType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_configureNetworkResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_configureNetworkResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_configureNetworkResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_configureNetworkResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_rebootInstancesType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_rebootInstancesType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_rebootInstancesType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_rebootInstancesType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeResourcesType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeResourcesType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeResourcesType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeResourcesType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_terminateInstancesResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_terminateInstancesResponseType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_terminateInstancesResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_terminateInstancesResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_startNetworkType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_startNetworkType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_startNetworkType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_startNetworkType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describePublicAddressesResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describePublicAddressesResponseType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describePublicAddressesResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describePublicAddressesResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeInstancesResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeInstancesResponseType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeInstancesResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeInstancesResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_detachVolumeResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_detachVolumeResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_detachVolumeResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_detachVolumeResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ccResourceType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ccResourceType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ccResourceType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ccResourceType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeResourcesResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeResourcesResponseType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeResourcesResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeResourcesResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeInstancesType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeInstancesType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeInstancesType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeInstancesType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_RunInstancesResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_RunInstancesResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_RunInstancesResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_RunInstancesResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_RunInstances.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_RunInstances.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_RunInstances.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_RunInstances.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DetachVolume.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DetachVolume.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DetachVolume.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DetachVolume.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ConfigureNetwork.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ConfigureNetwork.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ConfigureNetwork.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ConfigureNetwork.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_TerminateInstances.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_TerminateInstances.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_TerminateInstances.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_TerminateInstances.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_AssignAddressResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_AssignAddressResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_AssignAddressResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_AssignAddressResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_AssignAddress.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_AssignAddress.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_AssignAddress.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_AssignAddress.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_UnassignAddress.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_UnassignAddress.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_UnassignAddress.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_UnassignAddress.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribeNetworks.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribeNetworks.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribeNetworks.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribeNetworks.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_UnassignAddressResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_UnassignAddressResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_UnassignAddressResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_UnassignAddressResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_StopNetworkResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_StopNetworkResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_StopNetworkResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_StopNetworkResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_RebootInstancesResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_RebootInstancesResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_RebootInstancesResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_RebootInstancesResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_GetConsoleOutputResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_GetConsoleOutputResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_GetConsoleOutputResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_GetConsoleOutputResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_StopNetwork.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_StopNetwork.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_StopNetwork.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_StopNetwork.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribeNetworksResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribeNetworksResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribeNetworksResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribeNetworksResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_StartNetworkResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_StartNetworkResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_StartNetworkResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_StartNetworkResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_GetConsoleOutput.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_GetConsoleOutput.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_GetConsoleOutput.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_GetConsoleOutput.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_AttachVolumeResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_AttachVolumeResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_AttachVolumeResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_AttachVolumeResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribePublicAddresses.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribePublicAddresses.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribePublicAddresses.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribePublicAddresses.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_AttachVolume.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_AttachVolume.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_AttachVolume.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_AttachVolume.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ConfigureNetworkResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ConfigureNetworkResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ConfigureNetworkResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ConfigureNetworkResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_RebootInstances.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_RebootInstances.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_RebootInstances.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_RebootInstances.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribeResources.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribeResources.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribeResources.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribeResources.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_TerminateInstancesResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_TerminateInstancesResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_TerminateInstancesResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_TerminateInstancesResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_StartNetwork.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_StartNetwork.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_StartNetwork.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_StartNetwork.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribePublicAddressesResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribePublicAddressesResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribePublicAddressesResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribePublicAddressesResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribeInstancesResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribeInstancesResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribeInstancesResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribeInstancesResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DetachVolumeResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DetachVolumeResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DetachVolumeResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DetachVolumeResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribeResourcesResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribeResourcesResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribeResourcesResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribeResourcesResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribeInstances.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribeInstances.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DescribeInstances.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DescribeInstances.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ccTerminatedInstanceType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ccTerminatedInstanceType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ccTerminatedInstanceType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ccTerminatedInstanceType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/axis2_stub_EucalyptusCC.h ++++ eucalyptus-1.6~bzr452/cluster/generated/axis2_stub_EucalyptusCC.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ #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 ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/axis2_stub_EucalyptusCC.c ++++ eucalyptus-1.6~bzr452/cluster/generated/axis2_stub_EucalyptusCC.c +@@ -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: #axisVersion# #today# ++ */ ++ ++ #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 ++ */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncPowerDownResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncPowerDownResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncPowerDownResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncPowerDownResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDetachVolumeResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDetachVolumeResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDetachVolumeResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDetachVolumeResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRunInstanceType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRunInstanceType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRunInstanceType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRunInstanceType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRebootInstanceResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRebootInstanceResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRebootInstanceResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRebootInstanceResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncAttachVolumeResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncAttachVolumeResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncAttachVolumeResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncAttachVolumeResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncPowerDownType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncPowerDownType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncPowerDownType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncPowerDownType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncTerminateInstanceResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncTerminateInstanceResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncTerminateInstanceResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncTerminateInstanceResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_instanceType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_instanceType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_instanceType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_instanceType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRunInstanceResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRunInstanceResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRunInstanceResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRunInstanceResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncStartNetworkResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncStartNetworkResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncStartNetworkResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncStartNetworkResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncStartNetworkType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncStartNetworkType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncStartNetworkType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncStartNetworkType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeResourceResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeResourceResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeResourceResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeResourceResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncTerminateInstanceType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncTerminateInstanceType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncTerminateInstanceType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncTerminateInstanceType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeResourceType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeResourceType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeResourceType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeResourceType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeInstancesType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeInstancesType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeInstancesType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeInstancesType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRebootInstanceType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRebootInstanceType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRebootInstanceType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRebootInstanceType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncAttachVolumeType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncAttachVolumeType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncAttachVolumeType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncAttachVolumeType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncGetConsoleOutputType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncGetConsoleOutputType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncGetConsoleOutputType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncGetConsoleOutputType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeInstancesResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeInstancesResponseType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeInstancesResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeInstancesResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncGetConsoleOutputResponseType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncGetConsoleOutputResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncGetConsoleOutputResponseType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncGetConsoleOutputResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDetachVolumeType.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDetachVolumeType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDetachVolumeType.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDetachVolumeType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncPowerDownResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncPowerDownResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncPowerDownResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncPowerDownResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDetachVolumeResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDetachVolumeResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDetachVolumeResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDetachVolumeResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRunInstance.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRunInstance.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRunInstance.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRunInstance.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRebootInstanceResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRebootInstanceResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRebootInstanceResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRebootInstanceResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncAttachVolumeResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncAttachVolumeResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncAttachVolumeResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncAttachVolumeResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncPowerDown.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncPowerDown.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncPowerDown.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncPowerDown.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncTerminateInstanceResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncTerminateInstanceResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncTerminateInstanceResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncTerminateInstanceResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/build.sh ++++ eucalyptus-1.6~bzr452/cluster/generated/build.sh +@@ -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 +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRunInstanceResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRunInstanceResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRunInstanceResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRunInstanceResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncStartNetworkResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncStartNetworkResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncStartNetworkResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncStartNetworkResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncStartNetwork.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncStartNetwork.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncStartNetwork.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncStartNetwork.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeResourceResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeResourceResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeResourceResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeResourceResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncTerminateInstance.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncTerminateInstance.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncTerminateInstance.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncTerminateInstance.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeResource.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeResource.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeResource.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeResource.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeInstances.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeInstances.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeInstances.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeInstances.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRebootInstance.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRebootInstance.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncRebootInstance.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncRebootInstance.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncAttachVolume.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncAttachVolume.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncAttachVolume.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncAttachVolume.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncGetConsoleOutput.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncGetConsoleOutput.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncGetConsoleOutput.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncGetConsoleOutput.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeInstancesResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeInstancesResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDescribeInstancesResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDescribeInstancesResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncGetConsoleOutputResponse.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncGetConsoleOutputResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncGetConsoleOutputResponse.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncGetConsoleOutputResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDetachVolume.c ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDetachVolume.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ncDetachVolume.h ++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ncDetachVolume.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/axis2_stub_EucalyptusNC.h ++++ eucalyptus-1.6~bzr452/cluster/generated/axis2_stub_EucalyptusNC.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ #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 ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/axis2_stub_EucalyptusNC.c ++++ eucalyptus-1.6~bzr452/cluster/generated/axis2_stub_EucalyptusNC.c +@@ -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: #axisVersion# #today# ++ */ ++ ++ #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 ++ */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/axis2_skel_EucalyptusCC.h ++++ eucalyptus-1.6~bzr452/cluster/generated/axis2_skel_EucalyptusCC.h +@@ -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: #axisVersion# #today# ++ * 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 ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/axis2_skel_EucalyptusCC.c ++++ eucalyptus-1.6~bzr452/cluster/generated/axis2_skel_EucalyptusCC.c +@@ -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: #axisVersion# #today# ++ * 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)); } ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/services.xml ++++ eucalyptus-1.6~bzr452/cluster/generated/services.xml +@@ -0,0 +1,50 @@ ++ ++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 ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/axis2_svc_skel_EucalyptusCC.c.orig ++++ eucalyptus-1.6~bzr452/cluster/generated/axis2_svc_skel_EucalyptusCC.c.orig +@@ -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: #axisVersion# #today# ++ * 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; ++ } ++ ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/cluster/generated/axis2_svc_skel_EucalyptusCC.c ++++ eucalyptus-1.6~bzr452/cluster/generated/axis2_svc_skel_EucalyptusCC.c +@@ -0,0 +1,908 @@ ++ ++ ++ /** ++ * axis2_svc_skel_EucalyptusCC.c ++ * ++ * This file was auto-generated from WSDL for "EucalyptusCC|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2 version: #axisVersion# #today# ++ * 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 ++ */ ++ ++ ++ ++ ++ ++ /* ++ * 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); ++ ++ 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; ++ } ++ ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_eucalyptusMessage.c ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_eucalyptusMessage.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_eucalyptusMessage.h ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_eucalyptusMessage.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_getLogsResponseType.c ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_getLogsResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_getLogsResponseType.h ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_getLogsResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_getKeysResponseType.c ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_getKeysResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_getKeysResponseType.h ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_getKeysResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_getLogsType.c ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_getLogsType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_getLogsType.h ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_getLogsType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_getKeysType.c ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_getKeysType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_getKeysType.h ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_getKeysType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_GetLogsResponse.c ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_GetLogsResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_GetLogsResponse.h ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_GetLogsResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_GetKeysResponse.c ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_GetKeysResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_GetKeysResponse.h ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_GetKeysResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_GetLogs.c ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_GetLogs.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_GetLogs.h ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_GetLogs.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_GetKeys.c ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_GetKeys.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/adb_GetKeys.h ++++ eucalyptus-1.6~bzr452/gatherlog/generated/adb_GetKeys.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/axis2_stub_EucalyptusGL.h ++++ eucalyptus-1.6~bzr452/gatherlog/generated/axis2_stub_EucalyptusGL.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ #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 ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/axis2_stub_EucalyptusGL.c ++++ eucalyptus-1.6~bzr452/gatherlog/generated/axis2_stub_EucalyptusGL.c +@@ -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: #axisVersion# #today# ++ */ ++ ++ #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 ++ */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/axis2_skel_EucalyptusGL.h ++++ eucalyptus-1.6~bzr452/gatherlog/generated/axis2_skel_EucalyptusGL.h +@@ -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: #axisVersion# #today# ++ * 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 ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/axis2_skel_EucalyptusGL.c ++++ eucalyptus-1.6~bzr452/gatherlog/generated/axis2_skel_EucalyptusGL.c +@@ -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: #axisVersion# #today# ++ * 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)); } ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/axis2_svc_skel_EucalyptusGL.c ++++ eucalyptus-1.6~bzr452/gatherlog/generated/axis2_svc_skel_EucalyptusGL.c +@@ -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: #axisVersion# #today# ++ * 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; ++ } ++ ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/build.sh ++++ eucalyptus-1.6~bzr452/gatherlog/generated/build.sh +@@ -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 +--- eucalyptus-1.6~bzr452.orig/gatherlog/generated/services.xml ++++ eucalyptus-1.6~bzr452/gatherlog/generated/services.xml +@@ -0,0 +1,11 @@ ++ ++EucalyptusGL ++EucalyptusGL Service ++ ++ ++EucalyptusGL#GetLogs ++ ++ ++EucalyptusGL#GetKeys ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_eucalyptusMessage.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_eucalyptusMessage.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_eucalyptusMessage.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_eucalyptusMessage.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncPowerDownResponseType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncPowerDownResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncPowerDownResponseType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncPowerDownResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDetachVolumeResponseType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDetachVolumeResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDetachVolumeResponseType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDetachVolumeResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_virtualMachineType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_virtualMachineType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_virtualMachineType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_virtualMachineType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRunInstanceType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRunInstanceType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRunInstanceType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRunInstanceType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRebootInstanceResponseType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRebootInstanceResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRebootInstanceResponseType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRebootInstanceResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncAttachVolumeResponseType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncAttachVolumeResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncAttachVolumeResponseType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncAttachVolumeResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncPowerDownType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncPowerDownType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncPowerDownType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncPowerDownType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncTerminateInstanceResponseType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncTerminateInstanceResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncTerminateInstanceResponseType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncTerminateInstanceResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_netConfigType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_netConfigType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_netConfigType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_netConfigType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_volumeType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_volumeType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_volumeType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_volumeType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_instanceType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_instanceType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_instanceType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_instanceType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRunInstanceResponseType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRunInstanceResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRunInstanceResponseType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRunInstanceResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncStartNetworkResponseType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncStartNetworkResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncStartNetworkResponseType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncStartNetworkResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncStartNetworkType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncStartNetworkType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncStartNetworkType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncStartNetworkType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeResourceResponseType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeResourceResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeResourceResponseType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeResourceResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncTerminateInstanceType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncTerminateInstanceType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncTerminateInstanceType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncTerminateInstanceType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeResourceType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeResourceType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeResourceType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeResourceType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeInstancesType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeInstancesType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeInstancesType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeInstancesType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRebootInstanceType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRebootInstanceType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRebootInstanceType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRebootInstanceType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncAttachVolumeType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncAttachVolumeType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncAttachVolumeType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncAttachVolumeType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncGetConsoleOutputType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncGetConsoleOutputType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncGetConsoleOutputType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncGetConsoleOutputType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeInstancesResponseType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeInstancesResponseType.c +@@ -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; ++ ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeInstancesResponseType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeInstancesResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncGetConsoleOutputResponseType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncGetConsoleOutputResponseType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncGetConsoleOutputResponseType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncGetConsoleOutputResponseType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDetachVolumeType.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDetachVolumeType.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDetachVolumeType.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDetachVolumeType.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncPowerDownResponse.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncPowerDownResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncPowerDownResponse.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncPowerDownResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDetachVolumeResponse.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDetachVolumeResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDetachVolumeResponse.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDetachVolumeResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRunInstance.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRunInstance.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRunInstance.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRunInstance.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRebootInstanceResponse.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRebootInstanceResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRebootInstanceResponse.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRebootInstanceResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncAttachVolumeResponse.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncAttachVolumeResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncAttachVolumeResponse.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncAttachVolumeResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncPowerDown.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncPowerDown.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncPowerDown.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncPowerDown.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncTerminateInstanceResponse.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncTerminateInstanceResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncTerminateInstanceResponse.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncTerminateInstanceResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRunInstanceResponse.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRunInstanceResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRunInstanceResponse.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRunInstanceResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncStartNetworkResponse.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncStartNetworkResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncStartNetworkResponse.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncStartNetworkResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncStartNetwork.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncStartNetwork.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncStartNetwork.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncStartNetwork.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeResourceResponse.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeResourceResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeResourceResponse.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeResourceResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncTerminateInstance.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncTerminateInstance.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncTerminateInstance.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncTerminateInstance.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeResource.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeResource.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeResource.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeResource.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeInstances.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeInstances.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeInstances.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeInstances.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRebootInstance.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRebootInstance.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncRebootInstance.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncRebootInstance.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncAttachVolume.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncAttachVolume.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncAttachVolume.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncAttachVolume.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncGetConsoleOutput.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncGetConsoleOutput.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncGetConsoleOutput.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncGetConsoleOutput.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeInstancesResponse.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeInstancesResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDescribeInstancesResponse.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDescribeInstancesResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncGetConsoleOutputResponse.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncGetConsoleOutputResponse.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncGetConsoleOutputResponse.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncGetConsoleOutputResponse.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDetachVolume.c ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDetachVolume.c +@@ -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); ++ } ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/adb_ncDetachVolume.h ++++ eucalyptus-1.6~bzr452/node/generated/adb_ncDetachVolume.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ /** ++ * 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 */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/axis2_skel_EucalyptusNC.h ++++ eucalyptus-1.6~bzr452/node/generated/axis2_skel_EucalyptusNC.h +@@ -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: #axisVersion# #today# ++ * 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 ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/axis2_skel_EucalyptusNC.c ++++ eucalyptus-1.6~bzr452/node/generated/axis2_skel_EucalyptusNC.c +@@ -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: #axisVersion# #today# ++ * 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)); } ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/build.sh ++++ eucalyptus-1.6~bzr452/node/generated/build.sh +@@ -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 +--- eucalyptus-1.6~bzr452.orig/node/generated/services.xml ++++ eucalyptus-1.6~bzr452/node/generated/services.xml +@@ -0,0 +1,35 @@ ++ ++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~bzr452.orig/node/generated/axis2_svc_skel_EucalyptusNC.c ++++ eucalyptus-1.6~bzr452/node/generated/axis2_svc_skel_EucalyptusNC.c +@@ -0,0 +1,673 @@ ++ ++ ++ /** ++ * axis2_svc_skel_EucalyptusNC.c ++ * ++ * This file was auto-generated from WSDL for "EucalyptusNC|http://eucalyptus.ucsb.edu/" service ++ * by the Apache Axis2 version: #axisVersion# #today# ++ * axis2_svc_skel_EucalyptusNC ++ */ ++ ++ #include "axis2_skel_EucalyptusNC.h" ++ #include ++ #include ++ #include ++ ++ /** ++ * 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); ++ ++ 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; ++ } ++ ++ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/axis2_stub_EucalyptusNC.h ++++ eucalyptus-1.6~bzr452/node/generated/axis2_stub_EucalyptusNC.h +@@ -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: #axisVersion# #today# ++ */ ++ ++ #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 ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/axis2_stub_EucalyptusNC.c ++++ eucalyptus-1.6~bzr452/node/generated/axis2_stub_EucalyptusNC.c +@@ -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: #axisVersion# #today# ++ */ ++ ++ #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 ++ */ ++ ++ +--- eucalyptus-1.6~bzr452.orig/node/generated/axis2_svc_skel_EucalyptusNC.c.orig ++++ eucalyptus-1.6~bzr452/node/generated/axis2_svc_skel_EucalyptusNC.c.orig +@@ -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: #axisVersion# #today# ++ * 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; ++ } ++ ++ ++ ++ --- eucalyptus-1.6~bzr588.orig/debian/patches/var_lib_eucalyptus.diff +++ eucalyptus-1.6~bzr588/debian/patches/var_lib_eucalyptus.diff @@ -0,0 +1,335 @@ +Index: eucalyptus-1.5~bzr198/clc/modules/distribution/bin-assembly.xml +=================================================================== +--- eucalyptus-1.5~bzr198.orig/clc/modules/distribution/bin-assembly.xml 2009-02-19 01:00:03.200510842 +0200 ++++ eucalyptus-1.5~bzr198/clc/modules/distribution/bin-assembly.xml 2009-02-19 01:14:33.480509616 +0200 +@@ -60,7 +60,7 @@ + + + ../www/webapps +- var/eucalyptus/webapps ++ var/lib/eucalyptus/webapps + + root.war + +@@ -90,7 +90,7 @@ + + + +- var/eucalyptus/modules ++ var/lib/eucalyptus/modules + + org.apache.axis2:addressing:mar + org.apache.rampart:rahas:mar +Index: eucalyptus-1.5~bzr198/clc/modules/module-inc.xml +=================================================================== +--- eucalyptus-1.5~bzr198.orig/clc/modules/module-inc.xml 2009-02-19 01:00:03.200510842 +0200 ++++ eucalyptus-1.5~bzr198/clc/modules/module-inc.xml 2009-02-19 01:14:33.480509616 +0200 +@@ -43,7 +43,7 @@ + + + +- ++ + + + +Index: eucalyptus-1.5~bzr198/clc/modules/storage-controller/pom.xml +=================================================================== +--- eucalyptus-1.5~bzr198.orig/clc/modules/storage-controller/pom.xml 2009-02-19 01:00:03.190515737 +0200 ++++ eucalyptus-1.5~bzr198/clc/modules/storage-controller/pom.xml 2009-02-19 01:14:33.480509616 +0200 +@@ -69,7 +69,7 @@ + + + euca.var.dir +- ${env.EUCALYPTUS}/var/eucalyptus ++ ${env.EUCALYPTUS}/var/lib/eucalyptus + + + euca.lib.dir +@@ -85,7 +85,7 @@ + + + euca.template.dir +- ${env.EUCALYPTUS}/var/eucalyptus ++ ${env.EUCALYPTUS}/var/lib/eucalyptus + + + java.library.path +Index: eucalyptus-1.5~bzr198/clc/modules/storage-manager/pom.xml +=================================================================== +--- eucalyptus-1.5~bzr198.orig/clc/modules/storage-manager/pom.xml 2009-02-19 01:00:03.210514235 +0200 ++++ eucalyptus-1.5~bzr198/clc/modules/storage-manager/pom.xml 2009-02-19 01:14:33.490508913 +0200 +@@ -53,7 +53,7 @@ + + + euca.var.dir +- ${env.EUCALYPTUS}/var/eucalyptus ++ ${env.EUCALYPTUS}/var/lib/eucalyptus + + + euca.lib.dir +@@ -69,7 +69,7 @@ + + + euca.template.dir +- ${env.EUCALYPTUS}/var/eucalyptus ++ ${env.EUCALYPTUS}/var/lib/eucalyptus + + + java.library.path +Index: eucalyptus-1.5~bzr198/clc/modules/www/conf/www/admin.xml +=================================================================== +--- eucalyptus-1.5~bzr198.orig/clc/modules/www/conf/www/admin.xml 2009-02-19 01:00:03.220515937 +0200 ++++ eucalyptus-1.5~bzr198/clc/modules/www/conf/www/admin.xml 2009-02-19 01:14:33.500507398 +0200 +@@ -38,5 +38,5 @@ + / + true + true +- /webapps/root.war ++ /webapps/root.war + +Index: eucalyptus-1.5~bzr198/cluster/CCclient.c +=================================================================== +--- eucalyptus-1.5~bzr198.orig/cluster/CCclient.c 2009-02-19 01:00:03.220515937 +0200 ++++ eucalyptus-1.5~bzr198/cluster/CCclient.c 2009-02-19 01:14:33.510507118 +0200 +@@ -31,10 +31,10 @@ + euca_home = getenv("EUCALYPTUS"); + if (!euca_home) { + snprintf(configFile, 1024, "/etc/eucalyptus/eucalyptus.conf"); +- snprintf(policyFile, 1024, "/var/eucalyptus/keys/cc-client-policy.xml"); ++ snprintf(policyFile, 1024, "/var/lib/eucalyptus/keys/cc-client-policy.xml"); + } else { + snprintf(configFile, 1024, "%s/etc/eucalyptus/eucalyptus.conf", euca_home); +- snprintf(policyFile, 1024, "%s/var/eucalyptus/keys/cc-client-policy.xml", euca_home); ++ snprintf(policyFile, 1024, "%s/var/lib/eucalyptus/keys/cc-client-policy.xml", euca_home); + } + + rc = get_conf_var(configFile, "CC_PORT", &tmpstr); +Index: eucalyptus-1.5~bzr198/cluster/Makefile +=================================================================== +--- eucalyptus-1.5~bzr198.orig/cluster/Makefile 2009-02-19 01:00:03.230509763 +0200 ++++ eucalyptus-1.5~bzr198/cluster/Makefile 2009-02-19 01:14:33.520507298 +0200 +@@ -63,9 +63,9 @@ + #ws-sec + cat generated/services.xml | ../tools/add_wsdllocation.pl $(DESTDIR)$(AXIS2C_HOME)/services/$(SERVICE_NAME)/$(CCWSDLNAME) | ../tools/add_service_policy.pl ../tools/service-policy-template.xml | sed "s:CLIENT-CERT:cloud-cert.pem:g" | sed "s:CLIENT-KEY:cloud-pk.pem:g" | sed "s:SERVER-CERT:cluster-cert.pem:g" | sed "s:SERVER-KEY:cluster-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > $(DESTDIR)$(AXIS2C_HOME)/services/$(SERVICE_NAME)/services_WS.xml + cat ../tools/client-policy-template.xml | sed "s:EUCALYPTUS_HOME:$(EUCALYPTUS):g" | sed "s:AXIS2C_HOME:$(AXIS2C_HOME):g" | sed "s:CLIENT-CERT:cloud-cert.pem:g" | sed "s:SERVER-CERT:cluster-cert.pem:g" | sed "s:SERVER-KEY:cluster-pk.pem:g" | sed "s:CLIENT-KEY:cloud-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > cc-client-policy.xml +-## cp ../tools/*.pem $(EUCALYPTUS)/var/eucalyptus/keys/ +-# cp cc-client-policy.xml $(EUCALYPTUS)/var/eucalyptus/keys/ +-# chmod -R 0600 $(EUCALYPTUS)/var/eucalyptus/keys/* ++## cp ../tools/*.pem $(EUCALYPTUS)/var/lib/eucalyptus/keys/ ++# cp cc-client-policy.xml $(EUCALYPTUS)/var/lib/eucalyptus/keys/ ++# chmod -R 0600 $(EUCALYPTUS)/var/lib/eucalyptus/keys/* + # ws + $(INSTALL) $(DESTDIR)$(AXIS2C_HOME)/services/$(SERVICE_NAME)/services_WS.xml $(DESTDIR)$(AXIS2C_HOME)/services/$(SERVICE_NAME)/services.xml + # no ws +Index: eucalyptus-1.5~bzr198/cluster/handlers.c +=================================================================== +--- eucalyptus-1.5~bzr198.orig/cluster/handlers.c 2009-02-19 01:00:03.240515279 +0200 ++++ eucalyptus-1.5~bzr198/cluster/handlers.c 2009-02-19 01:14:33.530507526 +0200 +@@ -1594,7 +1594,7 @@ + snprintf(configFile, 1024, EUCALYPTUS_CONF_LOCATION, home); + snprintf(netPath, 1024, CC_NET_PATH_DEFAULT, home); + snprintf(logFile, 1024, "%s/var/log/eucalyptus/cc.log", home); +- snprintf(policyFile, 1024, "%s/var/eucalyptus/keys/nc-client-policy.xml", home); ++ snprintf(policyFile, 1024, "%s/var/lib/eucalyptus/keys/nc-client-policy.xml", home); + snprintf(eucahome, 1024, "%s/", home); + free(home); + +Index: eucalyptus-1.5~bzr198/gatherlog/Makefile +=================================================================== +--- eucalyptus-1.5~bzr198.orig/gatherlog/Makefile 2009-02-19 01:00:03.240515279 +0200 ++++ eucalyptus-1.5~bzr198/gatherlog/Makefile 2009-02-19 01:14:33.540507081 +0200 +@@ -53,9 +53,9 @@ + #ws-sec + # cat generated/services.xml | ../tools/add_wsdllocation.pl $(AXIS2C_HOME)/services/$(SERVICE_NAME)/$(GLWSDLNAME) | ../tools/add_service_policy.pl ../tools/service-policy-template.xml | sed "s:CLIENT-CERT:cloud-cert.pem:g" | sed "s:CLIENT-KEY:cloud-pk.pem:g" | sed "s:SERVER-CERT:cluster-cert.pem:g" | sed "s:SERVER-KEY:cluster-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > $(AXIS2C_HOME)/services/$(SERVICE_NAME)/services_WS.xml + # cat ../tools/client-policy-template.xml | sed "s:EUCALYPTUS_HOME:$(EUCALYPTUS):g" | sed "s:AXIS2C_HOME:$(AXIS2C_HOME):g" | sed "s:CLIENT-CERT:cloud-cert.pem:g" | sed "s:SERVER-CERT:cluster-cert.pem:g" | sed "s:SERVER-KEY:cluster-pk.pem:g" | sed "s:CLIENT-KEY:cloud-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > cc-client-policy.xml +-# cp ../tools/*.pem $(EUCALYPTUS)/var/eucalyptus/keys/ +-# cp cc-client-policy.xml $(EUCALYPTUS)/var/eucalyptus/keys/ +-# chmod -R 0600 $(EUCALYPTUS)/var/eucalyptus/keys/* ++# cp ../tools/*.pem $(EUCALYPTUS)/var/lib/eucalyptus/keys/ ++# cp cc-client-policy.xml $(EUCALYPTUS)/var/lib/eucalyptus/keys/ ++# chmod -R 0600 $(EUCALYPTUS)/var/lib/eucalyptus/keys/* + # ws + # cp $(AXIS2C_HOME)/services/$(SERVICE_NAME)/services_WS.xml $(AXIS2C_HOME)/services/$(SERVICE_NAME)/services.xml + # no ws +Index: eucalyptus-1.5~bzr198/gatherlog/handlers.c +=================================================================== +--- eucalyptus-1.5~bzr198.orig/gatherlog/handlers.c 2009-02-19 01:00:03.250514072 +0200 ++++ eucalyptus-1.5~bzr198/gatherlog/handlers.c 2009-02-19 01:14:33.550507291 +0200 +@@ -176,7 +176,7 @@ + home = strdup(""); + } + +- snprintf(file, 1024, "%s/var/eucalyptus/keys/cluster-cert.pem", home); ++ snprintf(file, 1024, "%s/var/lib/eucalyptus/keys/cluster-cert.pem", home); + fd = open(file, O_RDONLY); + if (fd >= 0) { + bzero(buf, bufsize); +@@ -191,7 +191,7 @@ + } + + bzero(buf, bufsize); +- snprintf(file, 1024, "%s/var/eucalyptus/keys/node-cert.pem", home); ++ snprintf(file, 1024, "%s/var/lib/eucalyptus/keys/node-cert.pem", home); + fd = open(file, O_RDONLY); + if (fd >= 0) { + bzero(buf, bufsize); +Index: eucalyptus-1.5~bzr198/node/Makefile +=================================================================== +--- eucalyptus-1.5~bzr198.orig/node/Makefile 2009-02-19 01:00:03.250514072 +0200 ++++ eucalyptus-1.5~bzr198/node/Makefile 2009-02-19 01:14:33.560507124 +0200 +@@ -82,9 +82,9 @@ + # ws-sec + cat generated/services.xml | ../tools/add_wsdllocation.pl $(DESTDIR)$(AXIS2C_HOME)/services/$(SERVICE_NAME)/$(NCWSDLNAME) | ../tools/add_service_policy.pl ../tools/service-policy-template.xml | sed "s:CLIENT-CERT:cluster-cert.pem:g" | sed "s:CLIENT-KEY:cluster-pk.pem:g" | sed "s:SERVER-CERT:node-cert.pem:g" | sed "s:SERVER-KEY:node-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > $(DESTDIR)$(AXIS2C_HOME)/services/$(SERVICE_NAME)/services_WS.xml + cat ../tools/client-policy-template.xml | sed "s:EUCALYPTUS_HOME:$(EUCALYPTUS):g" | sed "s:AXIS2C_HOME:$(AXIS2C_HOME):g" | sed "s:CLIENT-CERT:cluster-cert.pem:g" | sed "s:CLIENT-KEY:cluster-pk.pem:g" | sed "s:SERVER-CERT:node-cert.pem:g" | sed "s:SERVER-KEY:node-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > nc-client-policy.xml +-# cp nc-client-policy.xml $(EUCALYPTUS)/var/eucalyptus/keys/ +-## cp ../tools/*.pem $(EUCALYPTUS)/var/eucalyptus/keys/ +-# chmod -R 0600 $(EUCALYPTUS)/var/eucalyptus/keys/* ++# cp nc-client-policy.xml $(EUCALYPTUS)/var/lib/eucalyptus/keys/ ++## cp ../tools/*.pem $(EUCALYPTUS)/var/lib/eucalyptus/keys/ ++# chmod -R 0600 $(EUCALYPTUS)/var/lib/eucalyptus/keys/* + # ws + $(INSTALL) $(DESTDIR)$(AXIS2C_HOME)/services/$(SERVICE_NAME)/services_WS.xml $(DESTDIR)$(AXIS2C_HOME)/services/$(SERVICE_NAME)/services.xml + # no ws +Index: eucalyptus-1.5~bzr198/node/NCclient.c +=================================================================== +--- eucalyptus-1.5~bzr198.orig/node/NCclient.c 2009-02-19 01:00:03.260508476 +0200 ++++ eucalyptus-1.5~bzr198/node/NCclient.c 2009-02-19 01:14:33.560507124 +0200 +@@ -187,10 +187,10 @@ + euca_home = getenv("EUCALYPTUS"); + if (!euca_home) { + snprintf(configFile, 1024, "/etc/eucalyptus/eucalyptus.conf"); +- snprintf(policyFile, 1024, "/var/eucalyptus/keys/nc-client-policy.xml"); ++ snprintf(policyFile, 1024, "/var/lib/eucalyptus/keys/nc-client-policy.xml"); + } else { + snprintf(configFile, 1024, "%s/etc/eucalyptus/eucalyptus.conf", euca_home); +- snprintf(policyFile, 1024, "%s/var/eucalyptus/keys/nc-client-policy.xml", euca_home); ++ snprintf(policyFile, 1024, "%s/var/lib/eucalyptus/keys/nc-client-policy.xml", euca_home); + } + rc = get_conf_var(configFile, "ENABLE_WS_SECURITY", &tmpstr); + if (rc != 1) { +Index: eucalyptus-1.5~bzr198/tools/client-policy-template.xml +=================================================================== +--- eucalyptus-1.5~bzr198.orig/tools/client-policy-template.xml 2009-02-19 01:00:03.260508476 +0200 ++++ eucalyptus-1.5~bzr198/tools/client-policy-template.xml 2009-02-19 01:14:33.570507679 +0200 +@@ -54,17 +54,17 @@ + + + +- EUCALYPTUS_HOME/var/eucalyptus/keys/SERVER-CERT +- EUCALYPTUS_HOME/var/eucalyptus/keys/CLIENT-CERT +- EUCALYPTUS_HOME/var/eucalyptus/keys/CLIENT-KEY ++ EUCALYPTUS_HOME/var/lib/eucalyptus/keys/SERVER-CERT ++ EUCALYPTUS_HOME/var/lib/eucalyptus/keys/CLIENT-CERT ++ EUCALYPTUS_HOME/var/lib/eucalyptus/keys/CLIENT-KEY + + + + +Index: eucalyptus-1.5~bzr198/tools/euca_sync_key +=================================================================== +--- eucalyptus-1.5~bzr198.orig/tools/euca_sync_key 2009-02-19 01:00:03.270508962 +0200 ++++ eucalyptus-1.5~bzr198/tools/euca_sync_key 2009-02-19 01:14:33.580507203 +0200 +@@ -70,15 +70,15 @@ + for x in `echo $HOSTS`; do + if [ "$VERBOSE" = "Y" ]; then + if [ -n "$RSYNC" ]; then +- $RSYNC -avz -e ssh $EUCALYPTUS/var/eucalyptus/keys $x:$EUCALYPTUS/var/eucalyptus > /dev/null ++ $RSYNC -avz -e ssh $EUCALYPTUS/var/lib/eucalyptus/keys $x:$EUCALYPTUS/var/lib/eucalyptus > /dev/null + else +- $SCP -r $EUCALYPTUS/var/eucalyptus/keys $x:$EUCALYPTUS/var/eucalyptus ++ $SCP -r $EUCALYPTUS/var/lib/eucalyptus/keys $x:$EUCALYPTUS/var/lib/eucalyptus + fi + else + if [ -n "$RSYNC" ]; then +- ($RSYNC -az -e ssh $EUCALYPTUS/var/eucalyptus/keys $x:$EUCALYPTUS/var/eucalyptus > /dev/null &) ++ ($RSYNC -az -e ssh $EUCALYPTUS/var/lib/eucalyptus/keys $x:$EUCALYPTUS/var/lib/eucalyptus > /dev/null &) + else +- ($SCP -r $EUCALYPTUS/var/eucalyptus/keys $x:$EUCALYPTUS/var/eucalyptus &) ++ ($SCP -r $EUCALYPTUS/var/lib/eucalyptus/keys $x:$EUCALYPTUS/var/lib/eucalyptus &) + fi + fi + done +Index: eucalyptus-1.5~bzr198/tools/eucalyptus.in +=================================================================== +--- eucalyptus-1.5~bzr198.orig/tools/eucalyptus.in 2009-02-19 01:14:33.470515969 +0200 ++++ eucalyptus-1.5~bzr198/tools/eucalyptus.in 2009-02-19 01:15:28.410513348 +0200 +@@ -318,7 +318,7 @@ + HTTPD_HOME="/tmp/" + + # set up eucalyptus var locations to be owned by EUCA_USER +-for y in $EUCALYPTUS/var/eucalyptus/ $EUCALYPTUS/var/run/eucalyptus/ $EUCALYPTUS/var/log/eucalyptus/ $INSTANCE_PATH; do ++for y in $EUCALYPTUS/var/lib/eucalyptus/ $EUCALYPTUS/var/run/eucalyptus/ $EUCALYPTUS/var/log/eucalyptus/ $INSTANCE_PATH; do + if [ $y != "/" -a -d $y ]; then + chown -R $EUCA_USER:$EUCA_USER $y + fi +Index: eucalyptus-1.5~bzr198/tools/service-policy-template.xml +=================================================================== +--- eucalyptus-1.5~bzr198.orig/tools/service-policy-template.xml 2009-02-19 01:00:03.280509912 +0200 ++++ eucalyptus-1.5~bzr198/tools/service-policy-template.xml 2009-02-19 01:14:33.600507339 +0200 +@@ -54,16 +54,16 @@ + + + +- EUCALYPTUS_HOME/var/eucalyptus/keys/CLIENT-CERT +- EUCALYPTUS_HOME/var/eucalyptus/keys/SERVER-CERT +- EUCALYPTUS_HOME/var/eucalyptus/keys/SERVER-KEY ++ EUCALYPTUS_HOME/var/lib/eucalyptus/keys/CLIENT-CERT ++ EUCALYPTUS_HOME/var/lib/eucalyptus/keys/SERVER-CERT ++ EUCALYPTUS_HOME/var/lib/eucalyptus/keys/SERVER-KEY + + + + +Index: eucalyptus-1.5~bzr198/util/euca_auth.c +=================================================================== +--- eucalyptus-1.5~bzr198.orig/util/euca_auth.c 2009-02-19 01:00:03.280509912 +0200 ++++ eucalyptus-1.5~bzr198/util/euca_auth.c 2009-02-19 01:14:33.610507047 +0200 +@@ -182,8 +182,8 @@ + if (!euca_home) { + euca_home = root; + } +- snprintf (cert_file, FILENAME, "%s/var/eucalyptus/keys/node-cert.pem", euca_home); +- snprintf (pk_file, FILENAME, "%s/var/eucalyptus/keys/node-pk.pem", euca_home); ++ snprintf (cert_file, FILENAME, "%s/var/lib/eucalyptus/keys/node-cert.pem", euca_home); ++ snprintf (pk_file, FILENAME, "%s/var/lib/eucalyptus/keys/node-pk.pem", euca_home); + + #define ERR "Error: required file %s not found by euca_init_cert(). Is $EUCALYPTUS set?\n" + #define OK "euca_init_cert(): using file %s\n" +Index: eucalyptus-1.5~bzr198/util/pwcb.c +=================================================================== +--- eucalyptus-1.5~bzr198.orig/util/pwcb.c 2009-02-19 01:00:03.290515168 +0200 ++++ eucalyptus-1.5~bzr198/util/pwcb.c 2009-02-19 01:14:33.610507047 +0200 +@@ -47,9 +47,9 @@ + + euca_home = getenv("EUCALYPTUS"); + if (!euca_home) { +- snprintf(pwFile, 1024, "/var/eucalyptus/keys/pw"); ++ snprintf(pwFile, 1024, "/var/lib/eucalyptus/keys/pw"); + } else { +- snprintf(pwFile, 1024, "%s/var/eucalyptus/keys/pw", euca_home); ++ snprintf(pwFile, 1024, "%s/var/lib/eucalyptus/keys/pw", euca_home); + } + + if (0 == axutil_strcmp(username, "CLUSTER") || 0 == axutil_strcmp(username, "CLOUD") || 0 == axutil_strcmp(username, "eucalyptus")) { --- eucalyptus-1.6~bzr588.orig/debian/patches/02-rely-on-libvirt-defaults.patch +++ eucalyptus-1.6~bzr588/debian/patches/02-rely-on-libvirt-defaults.patch @@ -0,0 +1,12 @@ +Index: ubuntu/tools/gen_kvm_libvirt_xml +=================================================================== +--- ubuntu.orig/tools/gen_kvm_libvirt_xml 2009-08-31 15:49:53.808021318 -0500 ++++ ubuntu/tools/gen_kvm_libvirt_xml 2009-08-31 19:15:24.796021308 -0500 +@@ -100,7 +100,6 @@ + MEMORY + VCPUS + +- /usr/bin/kvm + + + --- eucalyptus-1.6~bzr588.orig/debian/patches/axis2c_home_init.diff +++ eucalyptus-1.6~bzr588/debian/patches/axis2c_home_init.diff @@ -0,0 +1,35 @@ +Index: b/tools/httpd.conf +=================================================================== +--- a/tools/httpd.conf ++++ b/tools/httpd.conf +@@ -47,7 +47,7 @@ + + + +-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~bzr588.orig/tools/eucalyptus-cc.in ++++ eucalyptus-1.6~bzr588/tools/eucalyptus-cc.in +@@ -300,7 +353,7 @@ + # if we didn't find AXIS2C we'll pick the one we used at configuration + # time + if [ -z "$AXIS2C_HOME" ]; then +- export AXIS2C_HOME="@AXIS2C_HOME@" ++ export AXIS2C_HOME="/etc/eucalyptus/axis2" + fi + + # finally let's check the path +--- eucalyptus-1.6~bzr588.orig/tools/eucalyptus-nc.in ++++ eucalyptus-1.6~bzr588/tools/eucalyptus-nc.in +@@ -296,7 +312,7 @@ + # if we didn't find AXIS2C we'll pick the one we used at configuration + # time + if [ -z "$AXIS2C_HOME" ]; then +- export AXIS2C_HOME="@AXIS2C_HOME@" ++ export AXIS2C_HOME="/etc/eucalyptus/axis2" + fi + + # finally let's check the path --- eucalyptus-1.6~bzr588.orig/debian/po/templates.pot +++ eucalyptus-1.6~bzr588/debian/po/templates.pot @@ -0,0 +1,91 @@ +# 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-08-25 20:47+0100\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: select +#. Choices +#: ../eucalyptus-udeb.templates:2001 +msgid "Cluster" +msgstr "" + +#. Type: select +#. Choices +#: ../eucalyptus-udeb.templates:2001 +msgid "Node" +msgstr "" + +#. Type: select +#. Description +#: ../eucalyptus-udeb.templates:2002 +msgid "Cloud installation mode:" +msgstr "" + +#. Type: text +#. Description +#: ../eucalyptus-udeb.templates:3001 +msgid "" +"No Eucalyptus cluster controller was found on your network, so this " +"installation will default to installing a new cluster. Select \"Node\" " +"instead if this is a mistake and you already have a cluster controller in " +"place." +msgstr "" + +#. Type: text +#. Description +#: ../eucalyptus-udeb.templates:4001 +msgid "" +"There is already a Eucalyptus cluster controller on your network, so this " +"installation will default to installing a new computing node. Select " +"\"Cluster\" instead if this is a mistake and you already have a node " +"controller in place." +msgstr "" + +#. Type: select +#. Description +#: ../eucalyptus-udeb.templates:5001 +msgid "Select cluster controller:" +msgstr "" + +#. Type: select +#. Description +#: ../eucalyptus-udeb.templates:5001 +msgid "" +"More than one cluster controller is available on your network. Select which " +"cluster you want this node to join." +msgstr "" + +#. Type: string +#. Description +#: ../eucalyptus-cc.templates:1001 +msgid "Eucalyptus cluster name:" +msgstr "" + +#. Type: string +#. Description +#: ../eucalyptus-cc.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 "" --- eucalyptus-1.6~bzr588.orig/debian/po/POTFILES.in +++ eucalyptus-1.6~bzr588/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] eucalyptus-udeb.templates +[type: gettext/rfc822deb] eucalyptus-cc.templates --- eucalyptus-1.6~bzr588.orig/debian/local/euca_find_cluster.c +++ eucalyptus-1.6~bzr588/debian/local/euca_find_cluster.c @@ -0,0 +1,266 @@ +/* $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 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; + + if (avahi_address_snprint(human_address, AVAHI_ADDRESS_STR_MAX, address)) + 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, "cluster")) { + 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\n", key); + avahi_free(type_value); + avahi_free(type_key); + } else { + if (debug) + fprintf(stderr, "(Resolver) %s has type '%s', not 'cluster'\n", key, type_value); + } + } 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_UNSPEC, 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_CLUSTER_DEBUG")) + debug = 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~bzr588.orig/debian/local/Makefile +++ eucalyptus-1.6~bzr588/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_cluster + +clean: + rm -f euca_find_cluster --- eucalyptus-1.6~bzr588.orig/node/Makefile +++ eucalyptus-1.6~bzr588/node/Makefile @@ -20,14 +20,17 @@ 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'; \ + fi @echo Compiling the stubs cd generated; patch -p1 < ../axis2_svc_generated.patch; $(CC) -c $(CFLAGS) $(INCLUDES) *.c @echo "this is a cute little makefile marker" >generated/stubs @@ -96,7 +99,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 $(vardir)/lib/eucalyptus/keys/ --- eucalyptus-1.6~bzr588.orig/tools/eucalyptus-nc.in +++ eucalyptus-1.6~bzr588/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 @@ -192,6 +193,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() { @@ -207,6 +215,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 @@ -224,7 +239,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 @@ -232,8 +247,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 } @@ -404,10 +420,13 @@ ;; 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}" @@ -417,7 +436,7 @@ ;; *) - echo "Usage: $NAME {start|stop|restart}" >&2 + echo "Usage: $NAME {start|stop|restart|status|config}" >&2 exit 3 ;; esac --- eucalyptus-1.6~bzr588.orig/tools/eucalyptus-cc.in +++ eucalyptus-1.6~bzr588/tools/eucalyptus-cc.in @@ -86,6 +86,7 @@ fi fi +[ -z "$EUID" ] && EUID=$(id -u) if [ "$EUID" != "0" ]; then echo "Eucalyptus init scripts must be run as root." exit 1 @@ -128,6 +129,15 @@ # let's configure the CC cat $EUCALYPTUS/etc/eucalyptus/httpd-tmp.conf |sed "s|\(Listen\).*|\1 $CC_PORT|"|sed "s|\(PidFile\).*|\1 $EUCALYPTUS/var/run/eucalyptus/eucalyptus-cc.pid|"|sed "s|\(Allow from\).*|\1 $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 25|" |sed "s|\(MinSpareThreads\).*|\1 5|" | sed "s|\(MaxSpareThreads\).*|\1 10|" | sed "s|\(ThreadsPerChild\).*|\1 25|"> $EUCALYPTUS/etc/eucalyptus/httpd-cc.conf + cat >>$EUCALYPTUS/etc/eucalyptus/httpd-cc.conf < + Order allow,deny + Allow from all + +EOF + } # crude way to start the axis2c services @@ -173,6 +183,42 @@ echo "Failed to start the CC!" exit 1 fi + + avahi_publish="$(which avahi-publish)" + start-stop-daemon --start --pidfile /var/run/eucalyptus/avahi-cc.pid \ + --name avahi-publish --background --make-pidfile \ + --startas "$avahi_publish" -- \ + -s "$(hostname)" _eucalyptus._tcp "$CC_PORT" \ + txtvers=1 protovers=1.5.0 type=cluster +} + +# register with a local CLC if one is present +register_local_cloud() { + if [ -e /var/lib/eucalyptus/keys/cluster-pk.pem ]; then + return # already registered + fi + if [ ! -e /usr/share/eucalyptus/eucalyptus-core.jar ]; then + return # no cloud here + fi + if [ ! -r /etc/eucalyptus/installer-cc.conf ]; then + return # don't know the cluster name + fi + . /etc/eucalyptus/installer-cc.conf + if [ -z "$CC_NAME" ]; then + return # don't know the cluster name + fi + + # Give the cloud a chance to start. TODO: Once eucalyptus-cloud is + # converted to Upstart and the job is marked as started only once the + # daemon is listening, this won't be necessary. + i=10 + while ! netstat -ln --inet 2>/dev/null | egrep -q "^tcp[[:space:]]+[[:digit:]]+[[:space:]]+[[:digit:]]+[[:space:]]+[^[:space:]]+:${CLOUD_PORT:-8773}[[:space:]]"; do + i=$(($i - 1)) + sleep 1 + done + + euca_conf --register-cluster "$CC_NAME" localhost || true + rm -f /etc/eucalyptus/installer-cc.conf # done! } do_status() { @@ -216,6 +262,13 @@ } do_stop() { + avahi_pid= + avahi_pidfile=/var/run/eucalyptus/avahi-cc.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-cc.pid" # let's be sure we are killing the right process @@ -235,7 +288,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 +296,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 done } @@ -415,6 +469,7 @@ fi ;; esac + register_local_cloud ;; stop) if [ "$VERBOSE" != no ]; then @@ -504,14 +559,17 @@ ;; status) if do_status ; then - echo "CC is running" + msg="eucalyptus-cc is running" + [ "$WE_HAVE_LSB" = "Y" ] && log_success_msg "$msg" || echo "$msg" else + msg="eucalyptus-cc is not running" + [ "$WE_HAVE_LSB" = "Y" ] && log_failure_msg "$msg" || echo "$msg" exit 3 fi ;; *) - echo "Usage: $NAME {start|stop|restart|cleanstart|cleanstop|cleanrestart}" >&2 + echo "Usage: $NAME {start|stop|restart|cleanstart|cleanstop|cleanrestart|status}" >&2 exit 3 ;; esac --- eucalyptus-1.6~bzr588.orig/tools/eucalyptus-java-ws.in +++ eucalyptus-1.6~bzr588/tools/eucalyptus-java-ws.in @@ -88,6 +88,7 @@ JAR_NAME="/usr/share/eucalyptus/eucalyptus-JARNAME-@EUCA_VERSION@.jar" JAR_ALL_NAMES="/usr/share/eucalyptus/eucalyptus-interface-@EUCA_VERSION@.jar /usr/share/eucalyptus/eucalyptus-storagecontroller-@EUCA_VERSION@.jar /usr/share/eucalyptus/eucalyptus-walrus-@EUCA_VERSION@.jar" +[ -z "$EUID" ] && EUID=$(id -u) if [ "$EUID" != "0" ]; then echo "Eucalyptus init scripts must be run as root." exit 1 @@ -351,13 +352,16 @@ ;; status) if do_status ; then - echo "$DESC is running" + msg="eucalyptus-java-ws is running" + [ "$WE_HAVE_LSB" = "Y" ] && log_success_msg "$msg" || echo "$msg" else + msg="eucalyptus-java-ws is not running" + [ "$WE_HAVE_LSB" = "Y" ] && log_failure_msg "$msg" || echo "$msg" exit 3 fi ;; *) - echo "Usage: $NAME {start|stop|restart}" >&2 + echo "Usage: $NAME {start|stop|restart|status}" >&2 exit 3 ;; esac --- eucalyptus-1.6~bzr588.orig/tools/run_axis.sh +++ eucalyptus-1.6~bzr588/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~bzr588.orig/clc/modules/module-inc.xml +++ eucalyptus-1.6~bzr588/clc/modules/module-inc.xml @@ -111,7 +111,7 @@ - + --- eucalyptus-1.6~bzr588.orig/gatherlog/Makefile +++ eucalyptus-1.6~bzr588/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,6 +67,8 @@ 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~bzr588.orig/cluster/Makefile +++ eucalyptus-1.6~bzr588/cluster/Makefile @@ -24,16 +24,19 @@ 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; \ + fi @echo Compiling the stubs cd generated; patch -p1 < ../axis2_svc_generated.patch; $(CC) -c $(CFLAGS) $(INCLUDES) *.c @echo "this is a cute little makefile marker" >generated/stubs @@ -77,7 +80,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) $(sbindir)