/**
 * adb_tDatiFondiFault.c
 *
 * This file was auto-generated from WSDL schema
 * by the Apache Axis2/C Native version: 1.0.0
 * AXIS2C-1224: ComplexType with empty sequence
 */

#include "adb_tDatiFondiFault.h"

struct adb_tDatiFondiFault {
    /* AXIS2C-1224: Empty sequence - no properties */
    int _unused; /* Placeholder to avoid empty struct */
};

adb_tDatiFondiFault_t* AXIS2_CALL
adb_tDatiFondiFault_create(const axutil_env_t *env)
{
    adb_tDatiFondiFault_t *obj = NULL;
    AXIS2_ENV_CHECK(env, NULL);
    obj = AXIS2_MALLOC(env->allocator, sizeof(adb_tDatiFondiFault_t));
    if (!obj) {
        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
        return NULL;
    }
    memset(obj, 0, sizeof(adb_tDatiFondiFault_t));
    return obj;
}

axis2_status_t AXIS2_CALL
adb_tDatiFondiFault_free(adb_tDatiFondiFault_t* _this, const axutil_env_t *env)
{
    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
    if (!_this) {
        return AXIS2_SUCCESS;
    }
    AXIS2_FREE(env->allocator, _this);
    return AXIS2_SUCCESS;
}

axiom_node_t* AXIS2_CALL
adb_tDatiFondiFault_serialize(adb_tDatiFondiFault_t* _this, const axutil_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;
    axiom_element_t *current_element = NULL;
    axiom_namespace_t *ns = NULL;
    axis2_char_t *text_value = NULL;
    axis2_char_t tmp_buf[64];

    AXIS2_ENV_CHECK(env, NULL);
    AXIS2_PARAM_CHECK(env->error, _this, NULL);

    return parent;
}

adb_tDatiFondiFault_t* AXIS2_CALL
adb_tDatiFondiFault_create_from_node(const axutil_env_t *env, axiom_node_t *node,
                       int dont_care_minoccurs)
{
    adb_tDatiFondiFault_t *obj = NULL;
    axiom_node_t *current_node = NULL;
    axiom_element_t *current_element = NULL;
    const axis2_char_t *text_value = NULL;

    AXIS2_ENV_CHECK(env, NULL);

    obj = adb_tDatiFondiFault_create(env);
    if (!obj) {
        return NULL;
    }

    /* AXIS2C-936: Verify XML was completely parsed */
    if (!axiom_node_is_complete(node, env)) {
        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "XML node is not complete, possible truncated response");
        adb_tDatiFondiFault_free(obj, env);
        return NULL;
    }

    return obj;
}
