您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ AXIS2_PARAM_CHECK函数代码示例

51自学网 2021-06-01 19:39:05
  C++
这篇教程C++ AXIS2_PARAM_CHECK函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中AXIS2_PARAM_CHECK函数的典型用法代码示例。如果您正苦于以下问题:C++ AXIS2_PARAM_CHECK函数的具体用法?C++ AXIS2_PARAM_CHECK怎么用?C++ AXIS2_PARAM_CHECK使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了AXIS2_PARAM_CHECK函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: adb_getServicesResponse_deserialize

        axis2_status_t AXIS2_CALL        adb_getServicesResponse_deserialize(                adb_getServicesResponse_t* _getServicesResponse,                const axutil_env_t *env,                axiom_node_t **dp_parent,                axis2_bool_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, _getServicesResponse, AXIS2_FAILURE);                                        while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)              {                  parent = axiom_node_get_next_sibling(parent, env);              }              if (NULL == parent)              {                /* This should be checked before everything */                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                             "Failed in building adb object for getServicesResponse : "                            "NULL elemenet can not be passed to deserialize");                return AXIS2_FAILURE;              }                                                          first_node = axiom_node_get_first_child(parent, env);                                                              /*                     * building service array                     */                       arr_list = axutil_array_list_create(env, 10);                                                             /*                      * building service element                      */                                                                                                   element_qname = axutil_qname_create(env, "service", NULL, NULL);                                                                                                for (i = 0, sequence_broken = 0, current_node = first_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) || !axutil_strcmp("service", axiom_element_get_localname(current_element, env)))                                  {                                                                        is_early_node_valid = AXIS2_TRUE;                                                                                                                     element = (void*)adb_service_create(env);                                                                                    status =  adb_service_deserialize((adb_service_t*)element, env,                                                                                 &current_node, &is_early_node_valid, AXIS2_FALSE);                                                                                    if(AXIS2_FAILURE ==  status)                                          {                                              AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element service ");                                          }                                          else                                          {                                            axutil_array_list_add_at(arr_list, env, i, element);                                          }//.........这里部分代码省略.........
开发者ID:arun07,项目名称:minisip_salcas,代码行数:101,


示例2: adb_listControlOperations_deserialize_obj

        axis2_status_t AXIS2_CALL        adb_listControlOperations_deserialize_obj(                adb_listControlOperations_t* _listControlOperations,                const axutil_env_t *env,                axiom_node_t **dp_parent,                axis2_bool_t *dp_is_early_node_valid,                axis2_bool_t dont_care_minoccurs)        {          axiom_node_t *parent = *dp_parent;                    axis2_status_t status = AXIS2_SUCCESS;                        const axis2_char_t* text_value = NULL;             axutil_qname_t *qname = NULL;                      axutil_qname_t *element_qname = NULL;                            axiom_node_t *first_node = NULL;               axis2_bool_t is_early_node_valid = AXIS2_TRUE;               axiom_node_t *current_node = NULL;               axiom_element_t *current_element = NULL;                        AXIS2_ENV_CHECK(env, AXIS2_FAILURE);            AXIS2_PARAM_CHECK(env->error, _listControlOperations, AXIS2_FAILURE);                                        while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)              {                  parent = axiom_node_get_next_sibling(parent, env);              }              if (NULL == parent)              {                /* This should be checked before everything */                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                             "Failed in building adb object for listControlOperations : "                            "NULL element 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, _listControlOperations-> qname))                    {                                                  first_node = axiom_node_get_first_child(parent, env);                                              }                    else                    {                        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                               "Failed in building adb object for listControlOperations : "                              "Expected %s but returned %s",                              axutil_qname_to_string(_listControlOperations-> qname, env),                              axutil_qname_to_string(qname, env));                                                return AXIS2_FAILURE;                    }                                                              /*                      * building serviceName element                      */                                                                                                  current_node = first_node;                                   is_early_node_valid = AXIS2_FALSE;                                                                                                          while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)                                    {                                        current_node = axiom_node_get_next_sibling(current_node, env);                                    }                                    if(current_node != NULL)                                    {                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);                                        qname = axiom_element_get_qname(current_element, env, current_node);                                    }                                                                    element_qname = axutil_qname_create(env, "serviceName", "http://org.apache.axis2/xsd", NULL);                                                            if (                                 (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))                           {                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))                              {                                is_early_node_valid = AXIS2_TRUE;                              }                                                                                                     text_value = axiom_element_get_text(current_element, env, current_node);                                      if(text_value != NULL)                                      {                                            status = adb_listControlOperations_set_serviceName(_listControlOperations, env,                                                               text_value);                                      }//.........这里部分代码省略.........
开发者ID:AMFIRNAS,项目名称:wsf,代码行数:101,


示例3: adb_Metric_deserialize

        axis2_status_t AXIS2_CALL        adb_Metric_deserialize(                adb_Metric_t* _Metric,                const axutil_env_t *env,                axiom_node_t **dp_parent,                axis2_bool_t *dp_is_early_node_valid,                axis2_bool_t dont_care_minoccurs)        {          axiom_node_t *parent = *dp_parent;                    axis2_status_t status = AXIS2_SUCCESS;                        const axis2_char_t* text_value = NULL;             axutil_qname_t *qname = NULL;                      axutil_qname_t *element_qname = NULL;                            axiom_node_t *first_node = NULL;               axis2_bool_t is_early_node_valid = AXIS2_TRUE;               axiom_node_t *current_node = NULL;               axiom_element_t *current_element = NULL;                        AXIS2_ENV_CHECK(env, AXIS2_FAILURE);            AXIS2_PARAM_CHECK(env->error, _Metric, AXIS2_FAILURE);                                        while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)              {                  parent = axiom_node_get_next_sibling(parent, env);              }              if (NULL == parent)              {                /* This should be checked before everything */                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                             "Failed in building adb object for Metric : "                            "NULL elemenet can not be passed to deserialize");                return AXIS2_FAILURE;              }                                                          first_node = axiom_node_get_first_child(parent, env);                                                                                    /*                      * building unit element                      */                                                                                                  current_node = first_node;                                   is_early_node_valid = AXIS2_FALSE;                                                                                                          while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)                                    {                                        current_node = axiom_node_get_next_sibling(current_node, env);                                    }                                    if(current_node != NULL)                                    {                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);                                        qname = axiom_element_get_qname(current_element, env, current_node);                                    }                                                                    element_qname = axutil_qname_create(env, "unit", "http://util.services.statistics.carbon.wso2.org/xsd", NULL);                                                            if (                                 (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))                           {                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))                              {                                is_early_node_valid = AXIS2_TRUE;                              }                                                                                                     text_value = axiom_element_get_text(current_element, env, current_node);                                      if(text_value != NULL)                                      {                                            status = adb_Metric_set_unit(_Metric, env,                                                               text_value);                                      }                                                                       if(AXIS2_FAILURE ==  status)                                 {                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for unit ");                                     if(element_qname)                                     {                                         axutil_qname_free(element_qname, env);                                     }                                     return AXIS2_FAILURE;                                 }                              }                                             if(element_qname)                  {                     axutil_qname_free(element_qname, env);                     element_qname = NULL;//.........这里部分代码省略.........
开发者ID:AMFIRNAS,项目名称:wsf,代码行数:101,


示例4: axis2_svc_add_op

AXIS2_EXTERN axis2_status_t AXIS2_CALLaxis2_svc_add_op(    axis2_svc_t * svc,    const axutil_env_t * env,    axis2_op_t * op){    axis2_status_t status = AXIS2_FAILURE;    axis2_msg_recv_t *msg_recv = NULL;    const axutil_qname_t *qname = NULL;    axis2_char_t *key = NULL;    const axis2_char_t *svcname = NULL;    axutil_array_list_t *mappings_list = NULL;    int size = 0;    int j = 0;    AXIS2_PARAM_CHECK(env->error, op, AXIS2_FAILURE);    svcname = axis2_svc_get_name(svc, env);    qname = axis2_op_get_qname(op, env);    if(qname)        key = axutil_qname_get_localpart(qname, env);    mappings_list = axis2_op_get_wsamapping_list(op, env);    /* Adding action mappings into service */    if(mappings_list)        size = axutil_array_list_size(mappings_list, env);    for(j = 0; j < size; j++)    {        axis2_char_t *mapping = NULL;        mapping = (axis2_char_t *)axutil_array_list_get(mappings_list, env, j);        status = axis2_svc_add_mapping(svc, env, mapping, op);        if(AXIS2_SUCCESS != status)        {            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                            "Adding operation %s to service %s mapping list failed", svcname, key);            return status;        }    }    status = axis2_op_set_parent(op, env, svc);    if(AXIS2_SUCCESS != status)    {        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Setting service %s as operation %s parent failed",                        svcname, key);        return status;    }    msg_recv = axis2_op_get_msg_recv(op, env);    if(msg_recv == NULL)    {        msg_recv = axis2_desc_builder_load_default_msg_recv(env);        axis2_op_set_msg_recv(op, env, msg_recv);    }    if(key)    {        /* If service defines the operation, then we should not override with module level         * operation. Module operations are global. If any setting to be modified, those operations         * can be defined in service */        if(!axutil_hash_get(svc->op_alias_map, key, AXIS2_HASH_KEY_STRING))        {            axutil_hash_set(svc->op_alias_map, key, AXIS2_HASH_KEY_STRING, op);        }    }    return AXIS2_SUCCESS;}
开发者ID:Denisss025,项目名称:wsfcpp,代码行数:63,


示例5: axis2_svc_get_rest_op_list_with_method_and_location

AXIS2_EXTERN axutil_array_list_t *AXIS2_CALLaxis2_svc_get_rest_op_list_with_method_and_location(    const axis2_svc_t * svc,    const axutil_env_t * env,    const axis2_char_t * method,    const axis2_char_t * location){    axutil_array_list_t *op_list = NULL;    axis2_char_t *key = NULL;    axis2_char_t *loc_str = NULL;    axis2_char_t *loc_str_tmp = NULL;    axis2_char_t *r_idx = NULL;    size_t plen;    AXIS2_PARAM_CHECK(env->error, method, NULL);    AXIS2_PARAM_CHECK(env->error, location, NULL);    loc_str_tmp = (axis2_char_t *)location; /* Casted to facilitate loop */    if(loc_str_tmp[1] == '/')    {        loc_str_tmp++;    } /* ignore any '/' at the beginning */    if(strchr(loc_str_tmp, '?'))    {        axis2_char_t *temp = NULL;        temp = strchr(loc_str_tmp, '?');        temp[0] = '/0';    } /* ignore block after '?' */    do    {        axis2_char_t *temp = NULL;        temp = strchr(loc_str_tmp, '{');        if(temp)        {            loc_str_tmp = temp;        }        else        {            loc_str_tmp += strlen(loc_str_tmp);            break;        }    }    while(loc_str_tmp[1] && loc_str_tmp[1] == '{');    loc_str = (axis2_char_t *)axutil_strmemdup(location, (size_t)(loc_str_tmp - location), env);    r_idx = axutil_rindex(loc_str, '/');    if(r_idx && *r_idx)    {        loc_str_tmp = axutil_string_substring_ending_at(loc_str, (int)(r_idx - loc_str));        /* We are sure that the difference lies within the int range */    }    else    {        loc_str_tmp = loc_str;    }    plen = axutil_strlen(method) + axutil_strlen(loc_str_tmp) + 2;    key = (axis2_char_t *)(AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * plen));    sprintf(key, "%s:%s", method, loc_str_tmp);    AXIS2_FREE(env->allocator, loc_str);    op_list = (axutil_array_list_t *)axutil_hash_get(svc->op_rest_map, key, AXIS2_HASH_KEY_STRING);    AXIS2_FREE(env->allocator, key);    return op_list;}
开发者ID:Denisss025,项目名称:wsfcpp,代码行数:66,


示例6: adb_DSAKeyValueTypeSequence_type1_deserialize_obj

        axis2_status_t AXIS2_CALL        adb_DSAKeyValueTypeSequence_type1_deserialize_obj(                adb_DSAKeyValueTypeSequence_type1_t* _DSAKeyValueTypeSequence_type1,                const axutil_env_t *env,                axiom_node_t **dp_parent,                axis2_bool_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;                        const axis2_char_t* text_value = NULL;             axutil_qname_t *qname = NULL;                      axutil_qname_t *element_qname = NULL;                            axiom_node_t *first_node = NULL;               axis2_bool_t is_early_node_valid = AXIS2_TRUE;               axiom_node_t *current_node = NULL;               axiom_element_t *current_element = NULL;                        AXIS2_ENV_CHECK(env, AXIS2_FAILURE);            AXIS2_PARAM_CHECK(env->error, _DSAKeyValueTypeSequence_type1, AXIS2_FAILURE);                                     first_node = parent;                                                              /*                      * building Seed element                      */                                                                                                  current_node = first_node;                                   is_early_node_valid = AXIS2_FALSE;                                                                                                          while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)                                    {                                        current_node = axiom_node_get_next_sibling(current_node, env);                                    }                                    if(current_node != NULL)                                    {                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);                                        qname = axiom_element_get_qname(current_element, env, current_node);                                    }                                                                    element_qname = axutil_qname_create(env, "Seed", "http://www.w3.org/2000/09/xmldsig#", NULL);                                                            if (adb_CryptoBinary_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*)axis2_extension_mapper_create_from_node(env, &current_node, "adb_CryptoBinary");                                      status =  adb_CryptoBinary_deserialize((adb_CryptoBinary_t*)element,                                                                            env, &current_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 Seed");                                      }                                      else                                      {                                          status = adb_DSAKeyValueTypeSequence_type1_set_Seed(_DSAKeyValueTypeSequence_type1, env,                                                                   (adb_CryptoBinary_t*)element);                                      }                                                                     if(AXIS2_FAILURE ==  status)                                 {                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for Seed ");                                     if(element_qname)                                     {                                         axutil_qname_free(element_qname, env);                                     }                                     return AXIS2_FAILURE;                                 }                              }                                                         else if(!dont_care_minoccurs)                              {                                  if(element_qname)                                  {                                      axutil_qname_free(element_qname, env);                                  }                                  /* this is not a nillable element*/                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element Seed missing");                                  return AXIS2_FAILURE;                              }                           //.........这里部分代码省略.........
开发者ID:isidrogc,项目名称:libkolibre-daisyonline,代码行数:101,


示例7: prf_queryPackageListResponseType_serialize_obj

        axiom_node_t* AXIS2_CALL        prf_queryPackageListResponseType_serialize_obj(                prf_queryPackageListResponseType_t* _queryPackageListResponseType,                const axutil_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;         axis2_char_t* xsi_prefix = NULL;         axiom_namespace_t* xsi_ns = NULL;         axiom_attribute_t* xsi_type_attri = NULL;                  axis2_char_t* type_attrib = NULL;                         axiom_namespace_t *ns1 = NULL;                axis2_char_t *qname_uri = NULL;                axis2_char_t *qname_prefix = NULL;                axis2_char_t *p_prefix = NULL;                axis2_bool_t ns_already_defined;                                axis2_char_t text_value_1[PRF_DEFAULT_DIGIT_LIMIT];                                   axis2_char_t *start_input_str = NULL;               axis2_char_t *end_input_str = NULL;               unsigned int 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, _queryPackageListResponseType, 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)            {                                         if(!(xsi_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://www.w3.org/2001/XMLSchema-instance", AXIS2_HASH_KEY_STRING)))              {                  /* it is better to stick with the standard prefix */                  xsi_prefix = (axis2_char_t*)axutil_strdup(env, "xsi");                                    axutil_hash_set(namespaces, "http://www.w3.org/2001/XMLSchema-instance", AXIS2_HASH_KEY_STRING, xsi_prefix);                  if(parent_element)                  {                        axiom_namespace_t *element_ns = NULL;                        element_ns = axiom_namespace_create(env, "http://www.w3.org/2001/XMLSchema-instance",                                                            xsi_prefix);                        axiom_element_declare_namespace_assume_param_ownership(parent_element, env, element_ns);                        if(element_ns)                        {                            axiom_namespace_free(element_ns, env);                        }                  }              }              type_attrib = axutil_strcat(env, " ", xsi_prefix, ":type=/"queryPackageListResponseType/"", NULL);              axutil_stream_write(stream, env, type_attrib, axutil_strlen(type_attrib));              AXIS2_FREE(env->allocator, type_attrib);                              string_to_stream = ">";               axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));              tag_closed = 1;                        }            else {              /* if the parent tag closed we would be able to declare the type directly on the parent element */               if(!(xsi_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://www.w3.org/2001/XMLSchema-instance", AXIS2_HASH_KEY_STRING)))              {                  /* it is better to stick with the standard prefix */                  xsi_prefix = (axis2_char_t*)axutil_strdup(env, "xsi");                                    axutil_hash_set(namespaces, "http://www.w3.org/2001/XMLSchema-instance", AXIS2_HASH_KEY_STRING, xsi_prefix);                  if(parent_element)                  {                        axiom_namespace_t *element_ns = NULL;                        element_ns = axiom_namespace_create(env, "http://www.w3.org/2001/XMLSchema-instance",                                                            xsi_prefix);                        axiom_element_declare_namespace_assume_param_ownership(parent_element, env, element_ns);                        if(element_ns)//.........这里部分代码省略.........
开发者ID:kolibre,项目名称:libkolibre-profileservice,代码行数:101,


示例8: adb_serviceProvider_type0_deserialize_obj

        axis2_status_t AXIS2_CALL        adb_serviceProvider_type0_deserialize_obj(                adb_serviceProvider_type0_t* _serviceProvider_type0,                const axutil_env_t *env,                axiom_node_t **dp_parent,                axis2_bool_t *dp_is_early_node_valid,                axis2_bool_t dont_care_minoccurs)        {          axiom_node_t *parent = *dp_parent;                    axis2_status_t status = AXIS2_SUCCESS;                        axiom_attribute_t *parent_attri = NULL;              axiom_element_t *parent_element = NULL;              axis2_char_t *attrib_text = NULL;              axutil_hash_t *attribute_hash = NULL;                        void *element = NULL;                        const axis2_char_t* text_value = NULL;             axutil_qname_t *qname = NULL;                      axutil_qname_t *element_qname = NULL;                            axiom_node_t *first_node = NULL;               axis2_bool_t is_early_node_valid = AXIS2_TRUE;               axiom_node_t *current_node = NULL;               axiom_element_t *current_element = NULL;                        AXIS2_ENV_CHECK(env, AXIS2_FAILURE);            AXIS2_PARAM_CHECK(env->error, _serviceProvider_type0, AXIS2_FAILURE);                                        while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)              {                  parent = axiom_node_get_next_sibling(parent, env);              }              if (NULL == parent)              {                /* This should be checked before everything */                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                             "Failed in building adb object for serviceProvider_type0 : "                            "NULL element can not be passed to deserialize");                return AXIS2_FAILURE;              }                                                          first_node = axiom_node_get_first_child(parent, env);                                                           parent_element = (axiom_element_t *)axiom_node_get_data_element(parent, env);                 attribute_hash = axiom_element_get_all_attributes(parent_element, env);                                                        /*                      * building label element                      */                                                                                                  current_node = first_node;                                   is_early_node_valid = AXIS2_FALSE;                                                                                                          while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)                                    {                                        current_node = axiom_node_get_next_sibling(current_node, env);                                    }                                    if(current_node != NULL)                                    {                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);                                        qname = axiom_element_get_qname(current_element, env, current_node);                                    }                                                                    element_qname = axutil_qname_create(env, "label", "http://www.daisy.org/ns/daisy-online/", NULL);                                                            if (adb_label_type0_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*)axis2_extension_mapper_create_from_node(env, &current_node, "adb_label_type0");                                      status =  adb_label_type0_deserialize((adb_label_type0_t*)element,                                                                            env, &current_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 label");                                      }                                      else                                      {//.........这里部分代码省略.........
开发者ID:nossrf,项目名称:libkolibre-daisyonline,代码行数:101,


示例9: adb_serviceProvider_type0_serialize_obj

        axiom_node_t* AXIS2_CALL        adb_serviceProvider_type0_serialize_obj(                adb_serviceProvider_type0_t* _serviceProvider_type0,                const axutil_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_attribute_t *text_attri = NULL;                          axis2_char_t *string_to_stream;                              axiom_node_t* current_node = NULL;         int tag_closed = 0;         axis2_char_t* xsi_prefix = NULL;         axiom_namespace_t* xsi_ns = NULL;         axiom_attribute_t* xsi_type_attri = NULL;                  axis2_char_t* type_attrib = NULL;                         axiom_namespace_t *ns1 = NULL;                axis2_char_t *qname_uri = NULL;                axis2_char_t *qname_prefix = NULL;                axis2_char_t *p_prefix = NULL;                axis2_bool_t ns_already_defined;                                axis2_char_t text_value_1[ADB_DEFAULT_DIGIT_LIMIT];                                        axis2_char_t *text_value_2;                    axis2_char_t *text_value_2_temp;                                    axis2_char_t *text_value = NULL;                            axis2_char_t *start_input_str = NULL;               axis2_char_t *end_input_str = NULL;               unsigned int 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, _serviceProvider_type0, 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)            {                            if(_serviceProvider_type0->is_valid_id)                {                                        p_prefix = NULL;                                                 text_value = (axis2_char_t*) AXIS2_MALLOC (env-> allocator, sizeof (axis2_char_t) *                                                             (5  + ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT +                                                             axutil_strlen(_serviceProvider_type0->property_id) +                                                                 axutil_strlen("id")));                           sprintf(text_value, " %s%s%s=/"%s/"", p_prefix?p_prefix:"", (p_prefix && axutil_strcmp(p_prefix, ""))?":":"",                                                "id", _serviceProvider_type0->property_id);                           axutil_stream_write(stream, env, text_value, axutil_strlen(text_value));                           AXIS2_FREE(env-> allocator, text_value);                                           }                                      else                   {                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-optional attribute id");                      return NULL;                   }                                 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://www.daisy.org/ns/daisy-online/", AXIS2_HASH_KEY_STRING)))                       {                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);                           sprintf(p_prefix, "n%d", (*next_ns_index)++);                           axutil_hash_set(namespaces, "http://www.daisy.org/ns/daisy-online/", AXIS2_HASH_KEY_STRING, p_prefix);                                                      axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,                                            "http://www.daisy.org/ns/daisy-online/",                                            p_prefix));                       }                      //.........这里部分代码省略.........
开发者ID:nossrf,项目名称:libkolibre-daisyonline,代码行数:101,


示例10: adb_ProductComplete_deserialize

        axis2_status_t AXIS2_CALL        adb_ProductComplete_deserialize(                adb_ProductComplete_t* _ProductComplete,                const axutil_env_t *env,                axiom_node_t **dp_parent,                axis2_bool_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, _ProductComplete, AXIS2_FAILURE);                                        while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)              {                  parent = axiom_node_get_next_sibling(parent, env);              }              if (NULL == parent)              {                /* This should be checked before everything */                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                             "Failed in building adb object for ProductComplete : "                            "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, _ProductComplete-> qname))                    {                                                  first_node = axiom_node_get_first_child(parent, env);                                              }                    else                    {                        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                               "Failed in building adb object for ProductComplete : "                              "Expected %s but returned %s",                              axutil_qname_to_string(_ProductComplete-> qname, env),                              axutil_qname_to_string(qname, env));                                                return AXIS2_FAILURE;                    }                                                              /*                      * building productInfo element                      */                                                                                                  current_node = first_node;                                   is_early_node_valid = AXIS2_FALSE;                                                                                                          while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)                                    {                                        current_node = axiom_node_get_next_sibling(current_node, env);                                    }                                    if(current_node != NULL)                                    {                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);                                        qname = axiom_element_get_qname(current_element, env, current_node);                                    }                                                                    element_qname = axutil_qname_create(env, "productInfo", "http://webser.com", NULL);                                                            if (adb_ProductCompleteType_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_ProductCompleteType_create(env);                                      status =  adb_ProductCompleteType_deserialize((adb_ProductCompleteType_t*)element,                                                                            env, &current_node, &is_early_node_valid, AXIS2_FALSE);//.........这里部分代码省略.........
开发者ID:hanxiangduo,项目名称:axis2c-test,代码行数:101,


示例11: adb_ProductComplete_serialize

        axiom_node_t* AXIS2_CALL        adb_ProductComplete_serialize(                adb_ProductComplete_t* _ProductComplete,                const axutil_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, _ProductComplete, NULL);                                             namespaces = axutil_hash_make(env);                    next_ns_index = &next_ns_index_value;                                                ns1 = axiom_namespace_create (env,                                             "http://webser.com",                                             "n");                            axutil_hash_set(namespaces, "http://webser.com", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n"));                                                                parent_element = axiom_element_create (env, NULL, "ProductComplete", ns1 , &parent);                                                            axiom_element_set_namespace(parent_element, env, ns1, parent);                                data_source = axiom_data_source_create(env, parent, &current_node);                    stream = axiom_data_source_get_stream(data_source, env);                                         if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://webser.com", AXIS2_HASH_KEY_STRING)))                       {                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);                           sprintf(p_prefix, "n%d", (*next_ns_index)++);                           axutil_hash_set(namespaces, "http://webser.com", AXIS2_HASH_KEY_STRING, p_prefix);                                                      axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,                                            "http://webser.com",                                            p_prefix));                       }                                         if (!_ProductComplete->is_valid_productInfo)                   {                                                 /* no need to complain for minoccurs=0 element */                                                                         }                   else                   {                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *                                 (4 + axutil_strlen(p_prefix) +                                   axutil_strlen("productInfo")));                                                                   /* axutil_strlen("<:>") + 1 = 4 */                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("productInfo")));                                  /* axutil_strlen("</:>") + 1 = 5 */                                                                                                                                       /*                      * parsing productInfo element                      */                                                                    sprintf(start_input_str, "<%s%sproductInfo",//.........这里部分代码省略.........
开发者ID:hanxiangduo,项目名称:axis2c-test,代码行数:101,


示例12: adb_ServerException_deserialize_obj

axis2_status_t AXIS2_CALLadb_ServerException_deserialize_obj(    adb_ServerException_t* _ServerException,    const axutil_env_t *env,    axiom_node_t **dp_parent,    axis2_bool_t *dp_is_early_node_valid,    axis2_bool_t dont_care_minoccurs){    axiom_node_t *parent = *dp_parent;    axis2_status_t status = AXIS2_SUCCESS;    const axis2_char_t* text_value = NULL;    axutil_qname_t *qname = NULL;    axutil_qname_t *element_qname = NULL;    axiom_node_t *first_node = NULL;    axis2_bool_t is_early_node_valid = AXIS2_TRUE;    axiom_node_t *current_node = NULL;    axiom_element_t *current_element = NULL;    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);    AXIS2_PARAM_CHECK(env->error, _ServerException, AXIS2_FAILURE);    while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)    {        parent = axiom_node_get_next_sibling(parent, env);    }    if (NULL == parent)    {        /* This should be checked before everything */        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                        "Failed in building adb object for ServerException : "                        "NULL element can not be passed to deserialize");        return AXIS2_FAILURE;    }    first_node = axiom_node_get_first_child(parent, env);    /*     * building Exception element     */    current_node = first_node;    is_early_node_valid = AXIS2_FALSE;    while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)    {        current_node = axiom_node_get_next_sibling(current_node, env);    }    if(current_node != NULL)    {        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);        qname = axiom_element_get_qname(current_element, env, current_node);    }    element_qname = axutil_qname_create(env, "Exception", "http://org.apache.axis2/xsd", NULL);    if (        (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))    {        if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))        {            is_early_node_valid = AXIS2_TRUE;        }        text_value = NULL; /* just to avoid warning */        if(axiom_node_get_first_child(current_node, env))        {            axiom_node_t *current_property_node = axiom_node_get_first_child(current_node, env);            axiom_node_detach(current_property_node, env);            status = adb_ServerException_set_Exception(_ServerException, env,                     current_property_node);        }        else        {            status = adb_ServerException_set_Exception(_ServerException, env,                     NULL);        }        if(AXIS2_FAILURE ==  status)        {            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for Exception ");            if(element_qname)            {                axutil_qname_free(element_qname, env);            }//.........这里部分代码省略.........
开发者ID:harunjuhasz,项目名称:wsf,代码行数:101,


示例13: adb_getServicesResponse_set_service_nil_at

           /**            * Set service to nill at i            */           axis2_status_t AXIS2_CALL           adb_getServicesResponse_set_service_nil_at(                   adb_getServicesResponse_t* _getServicesResponse,                   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, _getServicesResponse, AXIS2_FAILURE);                if(_getServicesResponse->property_service == NULL ||                            _getServicesResponse->is_valid_service == AXIS2_FALSE)                {                                        non_nil_exists = AXIS2_FALSE;                }                else                {                    size = axutil_array_list_size(_getServicesResponse->property_service, env);                    for(j = 0, k = 0; j < size; j ++ )                    {                        if(i == j) continue;                         if(NULL != axutil_array_list_get(_getServicesResponse->property_service, 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 service is beinng set to be smaller than the specificed number of minOccurs(0)");                       return AXIS2_FAILURE;                }                 if(_getServicesResponse->property_service == NULL)                {                    _getServicesResponse->is_valid_service = AXIS2_FALSE;                                        return AXIS2_SUCCESS;                }                /* check whether there already exist an element */                element = axutil_array_list_get(_getServicesResponse->property_service, env, i);                if(NULL != element)                {                                                                              adb_service_free((adb_service_t*)element, env);                                     }                                    if(!non_nil_exists)                    {                                                _getServicesResponse->is_valid_service = AXIS2_FALSE;                        axutil_array_list_set(_getServicesResponse->property_service , env, i, NULL);                        return AXIS2_SUCCESS;                    }                                                axutil_array_list_set(_getServicesResponse->property_service , env, i, NULL);                                return AXIS2_SUCCESS;           }
开发者ID:arun07,项目名称:minisip_salcas,代码行数:83,


示例14: adb_getServicesResponse_serialize

        axiom_node_t* AXIS2_CALL        adb_getServicesResponse_serialize(                adb_getServicesResponse_t* _getServicesResponse,                const axutil_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 *start_input_str = NULL;               axis2_char_t *end_input_str = NULL;               unsigned int 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, _getServicesResponse, 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;                        }                                   p_prefix = NULL;                                         if (!_getServicesResponse->is_valid_service)                   {                                                 /* no need to complain for minoccurs=0 element */                                                                         }                   else                   {                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *                                 (4 + axutil_strlen(p_prefix) +                                   axutil_strlen("service")));                                                                   /* axutil_strlen("<:>") + 1 = 4 */                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("service")));                                  /* axutil_strlen("</:>") + 1 = 5 */                                                                                                                  /*                      * Parsing service array                      */                     if (_getServicesResponse->property_service != NULL)                     {                                                    sprintf(start_input_str, "<%s%sservice",                                 p_prefix?p_prefix:"",                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");                                                     start_input_str_len = axutil_strlen(start_input_str);                         sprintf(end_input_str, "</%s%sservice>",                                 p_prefix?p_prefix:"",//.........这里部分代码省略.........
开发者ID:arun07,项目名称:minisip_salcas,代码行数:101,


示例15: adb_changeRolePermissionsResponse_deserialize_obj

        axis2_status_t AXIS2_CALL        adb_changeRolePermissionsResponse_deserialize_obj(                adb_changeRolePermissionsResponse_t* _changeRolePermissionsResponse,                const axutil_env_t *env,                axiom_node_t **dp_parent,                axis2_bool_t *dp_is_early_node_valid,                axis2_bool_t dont_care_minoccurs)        {          axiom_node_t *parent = *dp_parent;                    axis2_status_t status = AXIS2_SUCCESS;                        const axis2_char_t* text_value = NULL;             axutil_qname_t *qname = NULL;                      axutil_qname_t *element_qname = NULL;                            axiom_node_t *first_node = NULL;               axis2_bool_t is_early_node_valid = AXIS2_TRUE;               axiom_node_t *current_node = NULL;               axiom_element_t *current_element = NULL;                        AXIS2_ENV_CHECK(env, AXIS2_FAILURE);            AXIS2_PARAM_CHECK(env->error, _changeRolePermissionsResponse, AXIS2_FAILURE);                                        while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)              {                  parent = axiom_node_get_next_sibling(parent, env);              }              if (NULL == parent)              {                /* This should be checked before everything */                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                             "Failed in building adb object for changeRolePermissionsResponse : "                            "NULL element 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, _changeRolePermissionsResponse-> qname))                    {                                                  first_node = axiom_node_get_first_child(parent, env);                                              }                    else                    {                        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                               "Failed in building adb object for changeRolePermissionsResponse : "                              "Expected %s but returned %s",                              axutil_qname_to_string(_changeRolePermissionsResponse-> qname, env),                              axutil_qname_to_string(qname, env));                                                return AXIS2_FAILURE;                    }                                                              /*                      * building return element                      */                                                                                                  current_node = first_node;                                   is_early_node_valid = AXIS2_FALSE;                                                                                                          while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)                                    {                                        current_node = axiom_node_get_next_sibling(current_node, env);                                    }                                    if(current_node != NULL)                                    {                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);                                        qname = axiom_element_get_qname(current_element, env, current_node);                                    }                                                                    element_qname = axutil_qname_create(env, "return", "http://services.resource.ui.mgt.registry.carbon.wso2.org", NULL);                                                            if (                                 (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))                           {                              if( current_node   && current_element && (axutil_qname_equals(element_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_changeRolePermissionsResponse_set_return(_changeRolePermissionsResponse, env,//.........这里部分代码省略.........
开发者ID:AMFIRNAS,项目名称:wsf,代码行数:101,


示例16: adb_TransportData_deserialize_obj

        axis2_status_t AXIS2_CALL        adb_TransportData_deserialize_obj(                adb_TransportData_t* _TransportData,                const axutil_env_t *env,                axiom_node_t **dp_parent,                axis2_bool_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;                        const axis2_char_t* text_value = NULL;             axutil_qname_t *qname = NULL;                      axutil_qname_t *element_qname = NULL;                            axiom_node_t *first_node = NULL;               axis2_bool_t is_early_node_valid = AXIS2_TRUE;               axiom_node_t *current_node = NULL;               axiom_element_t *current_element = NULL;                        AXIS2_ENV_CHECK(env, AXIS2_FAILURE);            AXIS2_PARAM_CHECK(env->error, _TransportData, AXIS2_FAILURE);                                        while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)              {                  parent = axiom_node_get_next_sibling(parent, env);              }              if (NULL == parent)              {                /* This should be checked before everything */                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                             "Failed in building adb object for TransportData : "                            "NULL element can not be passed to deserialize");                return AXIS2_FAILURE;              }                                                          first_node = axiom_node_get_first_child(parent, env);                                                                                    /*                      * building details element                      */                                                                                                  current_node = first_node;                                   is_early_node_valid = AXIS2_FALSE;                                                                                                          while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)                                    {                                        current_node = axiom_node_get_next_sibling(current_node, env);                                    }                                    if(current_node != NULL)                                    {                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);                                        qname = axiom_element_get_qname(current_element, env, current_node);                                    }                                                                    element_qname = axutil_qname_create(env, "details", "http://mgt.transport.carbon.wso2.org/xsd", NULL);                                                            if (adb_TransportDetails_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*)axis2_extension_mapper_create_from_node(env, &current_node, "adb_TransportDetails");                                      status =  adb_TransportDetails_deserialize((adb_TransportDetails_t*)element,                                                                            env, &current_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 details");                                      }                                      else                                      {                                          status = adb_TransportData_set_details(_TransportData, env,                                                                   (adb_TransportDetails_t*)element);                                      }                                                                     if(AXIS2_FAILURE ==  status)                                 {                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for details ");                                     if(element_qname)                                     {                                         axutil_qname_free(element_qname, env);//.........这里部分代码省略.........
开发者ID:AdrianRys,项目名称:wsf,代码行数:101,


示例17: adb_changeRolePermissionsResponse_serialize_obj

        axiom_node_t* AXIS2_CALL        adb_changeRolePermissionsResponse_serialize_obj(                adb_changeRolePermissionsResponse_t* _changeRolePermissionsResponse,                const axutil_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[ADB_DEFAULT_DIGIT_LIMIT];                                   axis2_char_t *start_input_str = NULL;               axis2_char_t *end_input_str = NULL;               unsigned int 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, _changeRolePermissionsResponse, NULL);                                             namespaces = axutil_hash_make(env);                    next_ns_index = &next_ns_index_value;                                                ns1 = axiom_namespace_create (env,                                             "http://services.resource.ui.mgt.registry.carbon.wso2.org",                                             "n");                            axutil_hash_set(namespaces, "http://services.resource.ui.mgt.registry.carbon.wso2.org", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n"));                                                                parent_element = axiom_element_create (env, NULL, "changeRolePermissionsResponse", ns1 , &parent);                                                            axiom_element_set_namespace(parent_element, env, ns1, parent);                                data_source = axiom_data_source_create(env, parent, &current_node);                    stream = axiom_data_source_get_stream(data_source, env);                                         if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://services.resource.ui.mgt.registry.carbon.wso2.org", AXIS2_HASH_KEY_STRING)))                       {                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);                           sprintf(p_prefix, "n%d", (*next_ns_index)++);                           axutil_hash_set(namespaces, "http://services.resource.ui.mgt.registry.carbon.wso2.org", AXIS2_HASH_KEY_STRING, p_prefix);                                                      axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,                                            "http://services.resource.ui.mgt.registry.carbon.wso2.org",                                            p_prefix));                       }                                         if (!_changeRolePermissionsResponse->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, ""))?":":"");//.........这里部分代码省略.........
开发者ID:AMFIRNAS,项目名称:wsf,代码行数:101,


示例18: adb_TransportData_serialize_obj

        axiom_node_t* AXIS2_CALL        adb_TransportData_serialize_obj(                adb_TransportData_t* _TransportData,                const axutil_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;                  axis2_char_t* xsi_prefix = NULL;                  axis2_char_t* type_attrib = NULL;         axiom_namespace_t* xsi_ns = NULL;         axiom_attribute_t* xsi_type_attri = NULL;                         axiom_namespace_t *ns1 = NULL;                axis2_char_t *qname_uri = NULL;                axis2_char_t *qname_prefix = NULL;                axis2_char_t *p_prefix = NULL;                axis2_bool_t ns_already_defined;                                axis2_char_t text_value_1[ADB_DEFAULT_DIGIT_LIMIT];                                        axis2_char_t text_value_2[ADB_DEFAULT_DIGIT_LIMIT];                                   axis2_char_t *start_input_str = NULL;               axis2_char_t *end_input_str = NULL;               unsigned int 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, _TransportData, 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)            {                                         if(!(xsi_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://www.w3.org/2001/XMLSchema-instance", AXIS2_HASH_KEY_STRING)))              {                  /* it is better to stick with the standard prefix */                  xsi_prefix = (axis2_char_t*)axutil_strdup(env, "xsi");                                    axutil_hash_set(namespaces, "http://www.w3.org/2001/XMLSchema-instance", AXIS2_HASH_KEY_STRING, xsi_prefix);                  if(parent_element)                  {                        axiom_namespace_t *element_ns = NULL;                        element_ns = axiom_namespace_create(env, "http://www.w3.org/2001/XMLSchema-instance",                                                            xsi_prefix);                        axiom_element_declare_namespace_assume_param_ownership(parent_element, env, element_ns);                  }              }              type_attrib = axutil_strcat(env, " ", xsi_prefix, ":type=/"TransportData/"", NULL);              axutil_stream_write(stream, env, type_attrib, axutil_strlen(type_attrib));              AXIS2_FREE(env->allocator, type_attrib);                              string_to_stream = ">";               axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));              tag_closed = 1;                        }            else {              /* if the parent tag closed we would be able to declare the type directly on the parent element */               if(!(xsi_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://www.w3.org/2001/XMLSchema-instance", AXIS2_HASH_KEY_STRING)))              {                  /* it is better to stick with the standard prefix */                  xsi_prefix = (axis2_char_t*)axutil_strdup(env, "xsi");                                    axutil_hash_set(namespaces, "http://www.w3.org/2001/XMLSchema-instance", AXIS2_HASH_KEY_STRING, xsi_prefix);                  if(parent_element)                  {                        axiom_namespace_t *element_ns = NULL;                        element_ns = axiom_namespace_create(env, "http://www.w3.org/2001/XMLSchema-instance",                                                            xsi_prefix);                        axiom_element_declare_namespace_assume_param_ownership(parent_element, env, element_ns);                  }              }//.........这里部分代码省略.........
开发者ID:AdrianRys,项目名称:wsf,代码行数:101,


示例19: prf_queryPackageListResponseType_deserialize_obj

        axis2_status_t AXIS2_CALL        prf_queryPackageListResponseType_deserialize_obj(                prf_queryPackageListResponseType_t* _queryPackageListResponseType,                const axutil_env_t *env,                axiom_node_t **dp_parent,                axis2_bool_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;                        const axis2_char_t* text_value = NULL;             axutil_qname_t *qname = NULL;                      axutil_qname_t *element_qname = NULL;                            axiom_node_t *first_node = NULL;               axis2_bool_t is_early_node_valid = AXIS2_TRUE;               axiom_node_t *current_node = NULL;               axiom_element_t *current_element = NULL;                        AXIS2_ENV_CHECK(env, AXIS2_FAILURE);            AXIS2_PARAM_CHECK(env->error, _queryPackageListResponseType, AXIS2_FAILURE);                                        while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)              {                  parent = axiom_node_get_next_sibling(parent, env);              }              if (NULL == parent)              {                /* This should be checked before everything */                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                             "Failed in building adb object for queryPackageListResponseType : "                            "NULL element can not be passed to deserialize");                return AXIS2_FAILURE;              }                                                          first_node = axiom_node_get_first_child(parent, env);                                                                                    /*                      * building packageListResult element                      */                                                                                                  current_node = first_node;                                   is_early_node_valid = AXIS2_FALSE;                                                                                                          while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)                                    {                                        current_node = axiom_node_get_next_sibling(current_node, env);                                    }                                    if(current_node != NULL)                                    {                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);                                        qname = axiom_element_get_qname(current_element, env, current_node);                                    }                                                                    element_qname = axutil_qname_create(env, "packageListResult", "http://www.pratsam.org/ns/profile/", NULL);                                                            if (prf_packageListType_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*)axis2_prf_extension_mapper_create_from_node(env, &current_node, "prf_packageListType");                                      status =  prf_packageListType_deserialize((prf_packageListType_t*)element,                                                                            env, &current_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 packageListResult");                                      }                                      else                                      {                                          status = prf_queryPackageListResponseType_set_packageListResult(_queryPackageListResponseType, env,                                                                   (prf_packageListType_t*)element);                                      }                                                                     if(AXIS2_FAILURE ==  status)                                 {                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for packageListResult ");                                     if(element_qname)                                     {                                         axutil_qname_free(element_qname, env);//.........这里部分代码省略.........
开发者ID:kolibre,项目名称:libkolibre-profileservice,代码行数:101,


示例20: adb_unsubscribeResponse_deserialize_obj

        axis2_status_t AXIS2_CALL        adb_unsubscribeResponse_deserialize_obj(                adb_unsubscribeResponse_t* _unsubscribeResponse,                const axutil_env_t *env,                axiom_node_t **dp_parent,                axis2_bool_t *dp_is_early_node_valid,                axis2_bool_t dont_care_minoccurs)        {          axiom_node_t *parent = *dp_parent;                    axis2_status_t status = AXIS2_SUCCESS;                        const axis2_char_t* text_value = NULL;             axutil_qname_t *qname = NULL;                      axutil_qname_t *element_qname = NULL;                            axiom_node_t *first_node = NULL;               axis2_bool_t is_early_node_valid = AXIS2_TRUE;               axiom_node_t *current_node = NULL;               axiom_element_t *current_element = NULL;                        AXIS2_ENV_CHECK(env, AXIS2_FAILURE);            AXIS2_PARAM_CHECK(env->error, _unsubscribeResponse, AXIS2_FAILURE);                                        while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)              {                  parent = axiom_node_get_next_sibling(parent, env);              }              if (NULL == parent)              {                /* This should be checked before everything */                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                             "Failed in building adb object for unsubscribeResponse : "                            "NULL element 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, _unsubscribeResponse-> qname))                    {                                                  first_node = axiom_node_get_first_child(parent, env);                                              }                    else                    {                        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                               "Failed in building adb object for unsubscribeResponse : "                              "Expected %s but returned %s",                              axutil_qname_to_string(_unsubscribeResponse-> qname, env),                              axutil_qname_to_string(qname, env));                                                return AXIS2_FAILURE;                    }                                                              /*                      * building message element                      */                                                                                                  current_node = first_node;                                   is_early_node_valid = AXIS2_FALSE;                                                                                                          while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)                                    {                                        current_node = axiom_node_get_next_sibling(current_node, env);                                    }                                    if(current_node != NULL)                                    {                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);                                        qname = axiom_element_get_qname(current_element, env, current_node);                                    }                                                                    element_qname = axutil_qname_create(env, "message", NULL, NULL);                                                            if (                                 (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname) || !axutil_strcmp("message", axiom_element_get_localname(current_element, env)))))                           {                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname) || !axutil_strcmp("message", axiom_element_get_localname(current_element, env))))                              {                                is_early_node_valid = AXIS2_TRUE;                              }                                                                                                     text_value = axiom_element_get_text(current_element, env, current_node);                                      if(text_value != NULL)                                      {                                            status = adb_unsubscribeResponse_set_message(_unsubscribeResponse, env,                                                               text_value);                                      }//.........这里部分代码省略.........
开发者ID:akimdi,项目名称:laba2,代码行数:101,


示例21: axis2_svc_add_module_ops

/** * Here we extract all operations defined in module.xml and built execution * chains for them by calling axis2_phase_resolver_build_execution_chains_for_module_op() * function. Within that function handlers of the modules defined for that * operation are added to module operation chains appropriately. */AXIS2_EXTERN axis2_status_t AXIS2_CALLaxis2_svc_add_module_ops(    axis2_svc_t * svc,    const axutil_env_t * env,    axis2_module_desc_t * module_desc,    axis2_conf_t * conf){    axutil_hash_t *map = NULL;    axutil_hash_index_t *hash_idx = NULL;    axis2_phase_resolver_t *phase_resolver = NULL;    axis2_op_t *op_desc = NULL;    axis2_status_t status = AXIS2_FAILURE;    const axis2_char_t *svcname = NULL;    axis2_char_t *modname = NULL;    axis2_char_t *opname = NULL;    AXIS2_LOG_TRACE(env->log, AXIS2_LOG_SI, "Entry:axis2_svc_add_module_ops");    AXIS2_PARAM_CHECK(env->error, module_desc, AXIS2_FAILURE);    AXIS2_PARAM_CHECK(env->error, conf, AXIS2_FAILURE);    svcname = axis2_svc_get_name(svc, env);    modname = axutil_qname_get_localpart(axis2_module_desc_get_qname(module_desc, env), env);    map = axis2_module_desc_get_all_ops(module_desc, env);    phase_resolver = axis2_phase_resolver_create_with_config_and_svc(env, conf, svc);    if(!phase_resolver)    {        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Creating phase resolver failed for service %s",                        svcname);        return AXIS2_FAILURE;    }    for(hash_idx = axutil_hash_first(map, env); hash_idx; hash_idx = axutil_hash_next(env, hash_idx))    {        void *v = NULL;        axutil_hash_this(hash_idx, NULL, NULL, &v);        op_desc = (axis2_op_t *)v;        opname = axutil_qname_get_localpart(axis2_op_get_qname(op_desc, env), env);        status = axis2_phase_resolver_build_execution_chains_for_module_op(phase_resolver, env,                 op_desc);        if(AXIS2_SUCCESS != status)        {            axis2_phase_resolver_free(phase_resolver, env);            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                            "Builidng module operation %s failed for module %s", opname, modname);            return status;        }        status = axis2_svc_add_op(svc, env, op_desc);        if(AXIS2_SUCCESS != status)        {            axis2_phase_resolver_free(phase_resolver, env);            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Adding operation %s to service %s failed",                            opname, svcname);            return status;        }    }    axis2_phase_resolver_free(phase_resolver, env);    AXIS2_LOG_TRACE(env->log, AXIS2_LOG_SI, "Exit:axis2_svc_add_module_ops");    return AXIS2_SUCCESS;}
开发者ID:Denisss025,项目名称:wsfcpp,代码行数:67,


示例22: adb_unsubscribeResponse_serialize_obj

        axiom_node_t* AXIS2_CALL        adb_unsubscribeResponse_serialize_obj(                adb_unsubscribeResponse_t* _unsubscribeResponse,                const axutil_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;                    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;                             int next_ns_index_value = 0;                        AXIS2_ENV_CHECK(env, NULL);            AXIS2_PARAM_CHECK(env->error, _unsubscribeResponse, NULL);                                             namespaces = axutil_hash_make(env);                    next_ns_index = &next_ns_index_value;                                                ns1 = axiom_namespace_create (env,                                             "http://mopevm.ru/axis2/services/types",                                             "n");                            axutil_hash_set(namespaces, "http://mopevm.ru/axis2/services/types", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n"));                                                                parent_element = axiom_element_create (env, NULL, "unsubscribeResponse", ns1 , &parent);                                                            axiom_element_set_namespace(parent_element, env, ns1, parent);                                data_source = axiom_data_source_create(env, parent, &current_node);                    stream = axiom_data_source_get_stream(data_source, env);                                         p_prefix = NULL;                                         if (!_unsubscribeResponse->is_valid_message)                   {                                                                              AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property message");                            return NULL;                                             }                   else                   {                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *                                 (4 + axutil_strlen(p_prefix) +                                   axutil_strlen("message")));                                                                   /* axutil_strlen("<:>") + 1 = 4 */                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("message")));                                  /* axutil_strlen("</:>") + 1 = 5 */                                                                                                                                       /*                      * parsing message element                      */                                                                    sprintf(start_input_str, "<%s%smessage>",                                 p_prefix?p_prefix:"",                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");                                                    start_input_str_len = axutil_strlen(start_input_str);                        sprintf(end_input_str, "</%s%smessage>",                                 p_prefix?p_prefix:"",                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");                        end_input_str_len = axutil_strlen(end_input_str);                    //.........这里部分代码省略.........
开发者ID:akimdi,项目名称:laba2,代码行数:101,


示例23: axis2_svc_get_op_with_qname

AXIS2_EXTERN axis2_op_t *AXIS2_CALLaxis2_svc_get_op_with_qname(    const axis2_svc_t * svc,    const axutil_env_t * env,    const axutil_qname_t * op_qname){    axis2_op_t *op = NULL;    axis2_char_t *nc_name = NULL;    axis2_char_t *nc_tmp = NULL;    /* This is just for the sake of comparison,     * and must not be used to change the passed value     */    axis2_bool_t is_matched = AXIS2_FALSE;    AXIS2_PARAM_CHECK(env->error, op_qname, NULL);    nc_name = axutil_qname_get_localpart(op_qname, env);    nc_tmp = nc_name;    op = axutil_hash_get(svc->op_alias_map, nc_tmp, AXIS2_HASH_KEY_STRING);    if(op)    {        return op;    }    op = axutil_hash_get(svc->op_action_map, nc_tmp, AXIS2_HASH_KEY_STRING);    if(op)    {        return op;    }    if(*nc_tmp && svc->op_action_map)    {        axutil_hash_index_t *hi = NULL;        const void *key = NULL;        for(hi = axutil_hash_first(svc->op_action_map, env); hi; hi = axutil_hash_next(env, hi))        {            axutil_hash_this(hi, &key, NULL, NULL);            nc_tmp = nc_name;            if(key)            {                axis2_char_t *search = NULL;                axis2_bool_t match_start = AXIS2_TRUE;                axis2_char_t *search_tmp = NULL;                search = (axis2_char_t *)key;                if(!axutil_strchr(search, '*'))                {                    if(axutil_strstr(nc_tmp, search))                    {                        axis2_char_t *comp_tmp = NULL;                        comp_tmp = axutil_strstr(nc_tmp, search);                        if(strlen(comp_tmp) == strlen(search))                        {                            nc_tmp = (axis2_char_t *)key;                            is_matched = AXIS2_TRUE;                            break;                        }                    }                    continue;                }                if(search[0] == '*')                {                    search++;                    if(!*search)                    {                        nc_tmp = (axis2_char_t *)key;                        is_matched = AXIS2_TRUE;                        break;                    }                    else if(axutil_strchr(search, '*'))                    {                        continue;                    }                    match_start = AXIS2_FALSE;                }                while(search && *search)                {                    size_t length = 0;                    axis2_char_t *loc_tmp = NULL;                    if(search_tmp)                    {                        AXIS2_FREE(env->allocator, search_tmp);                        search_tmp = NULL;                    }                    loc_tmp = axutil_strchr(search, '*');                    if(loc_tmp && *loc_tmp)                    {                        if(!loc_tmp[1])                        {                            is_matched = AXIS2_TRUE;                            break;                        }//.........这里部分代码省略.........
开发者ID:Denisss025,项目名称:wsfcpp,代码行数:101,


示例24: axis2_http_accept_record_create

AXIS2_EXTERN axis2_http_accept_record_t *AXIS2_CALLaxis2_http_accept_record_create(    const axutil_env_t * env,    const axis2_char_t * str){    axis2_char_t *tmp_accept_record = NULL;    axis2_char_t *tmp = NULL;    axis2_http_accept_record_t *accept_record = NULL;    float quality = 1.0;    int level = -1;    axis2_char_t *name = NULL;    AXIS2_PARAM_CHECK(env->error, str, NULL);    tmp_accept_record = (axis2_char_t *) axutil_strdup(env, str);    if (!tmp_accept_record)    {        AXIS2_LOG_ERROR (env->log, AXIS2_LOG_SI,                          "unable to strdup string %s", str);        return NULL;    }    accept_record = (axis2_http_accept_record_t *) AXIS2_MALLOC        (env->allocator, sizeof(axis2_http_accept_record_t));    if (!accept_record)    {        AXIS2_HANDLE_ERROR (env, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);        return NULL;    }    memset ((void *)accept_record, 0, sizeof (axis2_http_accept_record_t));    accept_record->record = axutil_strtrim(env, tmp_accept_record, AXIS2_SPACE_COMMA);    tmp = strchr(tmp_accept_record, AXIS2_Q);    if (tmp)    {        *tmp = AXIS2_ESC_NULL;        tmp++;        tmp = axutil_strtrim(env, tmp, AXIS2_EQ_N_SEMICOLON);        if (tmp)        {            sscanf(tmp, "%f", &quality);            AXIS2_FREE(env->allocator, tmp);        }    }    tmp = strstr(tmp_accept_record, AXIS2_LEVEL);    if (tmp)    {        *tmp = AXIS2_ESC_NULL;        tmp++;        tmp = axutil_strtrim(env, tmp, AXIS2_EQ_N_SEMICOLON);        if (tmp)        {            sscanf(tmp, "%d", &level);            AXIS2_FREE(env->allocator, tmp);        }    }    tmp = axutil_strtrim(env, tmp_accept_record, AXIS2_SPACE_SEMICOLON);    if (tmp)    {        name = tmp;    }    if (!name || quality > 1.0 || quality < 0.0)    {        axis2_http_accept_record_free(accept_record, env);        return NULL;    }    accept_record->name = name;    accept_record->quality = quality;    accept_record->level = level;    AXIS2_FREE(env->allocator, tmp_accept_record);    return accept_record;}
开发者ID:cs525-koala,项目名称:eucalyptus-deps,代码行数:79,


示例25: adb_changePassword_deserialize_obj

        axis2_status_t AXIS2_CALL        adb_changePassword_deserialize_obj(                adb_changePassword_t* _changePassword,                const axutil_env_t *env,                axiom_node_t **dp_parent,                axis2_bool_t *dp_is_early_node_valid,                axis2_bool_t dont_care_minoccurs)        {          axiom_node_t *parent = *dp_parent;                    axis2_status_t status = AXIS2_SUCCESS;                        const axis2_char_t* text_value = NULL;             axutil_qname_t *qname = NULL;                      axutil_qname_t *element_qname = NULL;                            axiom_node_t *first_node = NULL;               axis2_bool_t is_early_node_valid = AXIS2_TRUE;               axiom_node_t *current_node = NULL;               axiom_element_t *current_element = NULL;                        AXIS2_ENV_CHECK(env, AXIS2_FAILURE);            AXIS2_PARAM_CHECK(env->error, _changePassword, AXIS2_FAILURE);                                        while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)              {                  parent = axiom_node_get_next_sibling(parent, env);              }              if (NULL == parent)              {                /* This should be checked before everything */                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                             "Failed in building adb object for changePassword : "                            "NULL element 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, _changePassword-> qname))                    {                                                  first_node = axiom_node_get_first_child(parent, env);                                              }                    else                    {                        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                               "Failed in building adb object for changePassword : "                              "Expected %s but returned %s",                              axutil_qname_to_string(_changePassword-> qname, env),                              axutil_qname_to_string(qname, env));                                                return AXIS2_FAILURE;                    }                                                              /*                      * building userName element                      */                                                                                                  current_node = first_node;                                   is_early_node_valid = AXIS2_FALSE;                                                                                                          while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)                                    {                                        current_node = axiom_node_get_next_sibling(current_node, env);                                    }                                    if(current_node != NULL)                                    {                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);                                        qname = axiom_element_get_qname(current_element, env, current_node);                                    }                                                                    element_qname = axutil_qname_create(env, "userName", "http://service.mgt.user.carbon.wso2.org", NULL);                                                            if (                                 (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))                           {                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))                              {                                is_early_node_valid = AXIS2_TRUE;                              }                                                                                                     text_value = axiom_element_get_text(current_element, env, current_node);                                      if(text_value != NULL)                                      {                                            status = adb_changePassword_set_userName(_changePassword, env,                                                               text_value);                                      }//.........这里部分代码省略.........
开发者ID:AdrianRys,项目名称:wsf,代码行数:101,


示例26: adb_getServiceAnnouncementsResponse_deserialize_obj

        axis2_status_t AXIS2_CALL        adb_getServiceAnnouncementsResponse_deserialize_obj(                adb_getServiceAnnouncementsResponse_t* _getServiceAnnouncementsResponse,                const axutil_env_t *env,                axiom_node_t **dp_parent,                axis2_bool_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;                        const axis2_char_t* text_value = NULL;             axutil_qname_t *qname = NULL;                      axutil_qname_t *element_qname = NULL;                            axiom_node_t *first_node = NULL;               axis2_bool_t is_early_node_valid = AXIS2_TRUE;               axiom_node_t *current_node = NULL;               axiom_element_t *current_element = NULL;                        AXIS2_ENV_CHECK(env, AXIS2_FAILURE);            AXIS2_PARAM_CHECK(env->error, _getServiceAnnouncementsResponse, AXIS2_FAILURE);                                        while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)              {                  parent = axiom_node_get_next_sibling(parent, env);              }              if (NULL == parent)              {                /* This should be checked before everything */                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                             "Failed in building adb object for getServiceAnnouncementsResponse : "                            "NULL element 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, _getServiceAnnouncementsResponse-> qname))                    {                                                  first_node = axiom_node_get_first_child(parent, env);                                              }                    else                    {                        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,                               "Failed in building adb object for getServiceAnnouncementsResponse : "                              "Expected %s but returned %s",                              axutil_qname_to_string(_getServiceAnnouncementsResponse-> qname, env),                              axutil_qname_to_string(qname, env));                                                return AXIS2_FAILURE;                    }                                                              /*                      * building announcements element                      */                                                                                                  current_node = first_node;                                   is_early_node_valid = AXIS2_FALSE;                                                                                                          while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)                                    {                                        current_node = axiom_node_get_next_sibling(current_node, env);                                    }                                    if(current_node != NULL)                                    {                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);                                        qname = axiom_element_get_qname(current_element, env, current_node);                                    }                                                                    element_qname = axutil_qname_create(env, "announcements", "http://www.daisy.org/ns/daisy-online/", NULL);                                                            if (adb_announcements_type0_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*)axis2_extension_mapper_create_from_node(env, &current_node, "adb_announcements_type0");                                      status =  adb_announcements_type0_deserialize((adb_announcements_type0_t*)element,                                                                            env, &current_node, &is_early_node_valid, AXIS2_FALSE);//.........这里部分代码省略.........
开发者ID:isidrogc,项目名称:libkolibre-daisyonline,代码行数:101,


示例27: adb_listControlOperations_serialize_obj

        axiom_node_t* AXIS2_CALL        adb_listControlOperations_serialize_obj(                adb_listControlOperations_t* _listControlOperations,                const axutil_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;                    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;                             int next_ns_index_value = 0;                        AXIS2_ENV_CHECK(env, NULL);            AXIS2_PARAM_CHECK(env->error, _listControlOperations, NULL);                                             namespaces = axutil_hash_make(env);                    next_ns_index = &next_ns_index_value;                                                ns1 = axiom_namespace_create (env,                                             "http://org.apache.axis2/xsd",                                             "n");                            axutil_hash_set(namespaces, "http://org.apache.axis2/xsd", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n"));                                                                parent_element = axiom_element_create (env, NULL, "listControlOperations", ns1 , &parent);                                                            axiom_element_set_namespace(parent_element, env, ns1, parent);                                data_source = axiom_data_source_create(env, parent, &current_node);                    stream = axiom_data_source_get_stream(data_source, env);                                         if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://org.apache.axis2/xsd", AXIS2_HASH_KEY_STRING)))                       {                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);                           sprintf(p_prefix, "n%d", (*next_ns_index)++);                           axutil_hash_set(namespaces, "http://org.apache.axis2/xsd", AXIS2_HASH_KEY_STRING, p_prefix);                                                      axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,                                            "http://org.apache.axis2/xsd",                                            p_prefix));                       }                                         if (!_listControlOperations->is_valid_serviceName)                   {                                                 /* no need to complain for minoccurs=0 element */                                                                         }                   else                   {                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *                                 (4 + axutil_strlen(p_prefix) +                                   axutil_strlen("serviceName")));                                                                   /* axutil_strlen("<:>") + 1 = 4 */                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("serviceName")));                                  /* axutil_strlen("</:>") + 1 = 5 */                                                                                                                                       /*                      * parsing serviceName element                      */                                                                    sprintf(start_input_str, "<%s%sserviceName>",                                 p_prefix?p_prefix:"",//.........这里部分代码省略.........
开发者ID:AMFIRNAS,项目名称:wsf,代码行数:101,


示例28: adb_getServiceAnnouncementsResponse_serialize_obj

        axiom_node_t* AXIS2_CALL        adb_getServiceAnnouncementsResponse_serialize_obj(                adb_getServiceAnnouncementsResponse_t* _getServiceAnnouncementsResponse,                const axutil_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;         axis2_char_t* xsi_prefix = NULL;         axiom_namespace_t* xsi_ns = NULL;         axiom_attribute_t* xsi_type_attri = NULL;                         axiom_namespace_t *ns1 = NULL;                axis2_char_t *qname_uri = NULL;                axis2_char_t *qname_prefix = NULL;                axis2_char_t *p_prefix = NULL;                axis2_bool_t ns_already_defined;                                axis2_char_t text_value_1[ADB_DEFAULT_DIGIT_LIMIT];                                   axis2_char_t *start_input_str = NULL;               axis2_char_t *end_input_str = NULL;               unsigned int 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, _getServiceAnnouncementsResponse, NULL);                                             namespaces = axutil_hash_make(env);                    next_ns_index = &next_ns_index_value;                                                ns1 = axiom_namespace_create (env,                                             "http://www.daisy.org/ns/daisy-online/",                                             "n");                            axutil_hash_set(namespaces, "http://www.daisy.org/ns/daisy-online/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n"));                                                                parent_element = axiom_element_create (env, NULL, "getServiceAnnouncementsResponse", ns1 , &parent);                                                            axiom_element_set_namespace(parent_element, env, ns1, parent);                                data_source = axiom_data_source_create(env, parent, &current_node);                    stream = axiom_data_source_get_stream(data_source, env);                                         if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://www.daisy.org/ns/daisy-online/", AXIS2_HASH_KEY_STRING)))                       {                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);                           sprintf(p_prefix, "n%d", (*next_ns_index)++);                           axutil_hash_set(namespaces, "http://www.daisy.org/ns/daisy-online/", AXIS2_HASH_KEY_STRING, p_prefix);                                                      axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,                                            "http://www.daisy.org/ns/daisy-online/",                                            p_prefix));                       }                                         if (!_getServiceAnnouncementsResponse->is_valid_announcements)                   {                                                                              AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property announcements");                            return NULL;                                             }                   else                   {                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *                                 (4 + axutil_strlen(p_prefix) +                                   axutil_strlen("announcements")));                                                                   /* axutil_strlen("<:>") + 1 = 4 */                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("announcements")));                                  /* axutil_strlen("</:>") + 1 = 5 */                                                                                                                                       /*                      * parsing announcements element                      */                    //.........这里部分代码省略.........
开发者ID:isidrogc,项目名称:libkolibre-daisyonline,代码行数:101,


示例29: adb_Metric_serialize

        axiom_node_t* AXIS2_CALL        adb_Metric_serialize(                adb_Metric_t* _Metric,                const axutil_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[ADB_DEFAULT_DIGIT_LIMIT];                                   axis2_char_t *start_input_str = NULL;               axis2_char_t *end_input_str = NULL;               unsigned int 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, _Metric, 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://util.services.statistics.carbon.wso2.org/xsd", AXIS2_HASH_KEY_STRING)))                       {                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);                           sprintf(p_prefix, "n%d", (*next_ns_index)++);                           axutil_hash_set(namespaces, "http://util.services.statistics.carbon.wso2.org/xsd", AXIS2_HASH_KEY_STRING, p_prefix);                                                      axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,                                            "http://util.services.statistics.carbon.wso2.org/xsd",                                            p_prefix));                       }                                         if (!_Metric->is_valid_unit)                   {                                                 /* no need to complain for minoccurs=0 element */                                                                         }                   else                   {                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *                                 (4 + axutil_strlen(p_prefix) +                                   axutil_strlen("unit")));                                                                   /* axutil_strlen("<:>") + 1 = 4 */                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("unit")));                                  /* axutil_strlen("</:>") + 1 = 5 */                                                                                                                                       /*                      * parsing unit element                      */                                        //.........这里部分代码省略.........
开发者ID:AMFIRNAS,项目名称:wsf,代码行数:101,


示例30: adb_additionalTransferProtocols_type0_set_protocol_at

            /**             * Set the ith element of protocol.             */            axis2_status_t AXIS2_CALL            adb_additionalTransferProtocols_type0_set_protocol_at(                    adb_additionalTransferProtocols_type0_t* _additionalTransferProtocols_type0,                    const axutil_env_t *env, int i,                    const axis2_char_t* arg_protocol)            {                void *element = NULL;                int size = 0;                int j;                int non_nil_count;                axis2_bool_t non_nil_exists = AXIS2_FALSE;                                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);                AXIS2_PARAM_CHECK(env->error, _additionalTransferProtocols_type0, AXIS2_FAILURE);                                if( _additionalTransferProtocols_type0->is_valid_protocol &&                    _additionalTransferProtocols_type0->property_protocol &&                                    arg_protocol == (axis2_char_t*)axutil_array_list_get(_additionalTransferProtocols_type0->property_protocol, env, i))                                  {                                        return AXIS2_SUCCESS;                 }                                    if(NULL != arg_protocol)                    {                        non_nil_exists = AXIS2_TRUE;                    }                    else {                        if(_additionalTransferProtocols_type0->property_protocol != NULL)                        {                            size = axutil_array_list_size(_additionalTransferProtocols_type0->property_protocol, env);                            for(j = 0, non_nil_count = 0; j < size; j ++ )                            {                                if(i == j) continue;                                 if(NULL != axutil_array_list_get(_additionalTransferProtocols_type0->property_protocol, env, i))                                {                                    non_nil_count ++;                                    non_nil_exists = AXIS2_TRUE;                                    if(non_nil_count >= 1)                                    {                                        break;                                    }                                }                            }                                                     if( non_nil_count < 1)                            {                                   AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of protocol is beinng set to be smaller than the specificed number of minOccurs(1)");                                   return AXIS2_FAILURE;                            }                                                }                    }                                     if(!non_nil_exists)                   {                       AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of protocol is being set to NULL, but it is not a nullable or minOccurs=0 element");                       return AXIS2_FAILURE;                   }                                if(_additionalTransferProtocols_type0->property_protocol == NULL)                {                    _additionalTransferProtocols_type0->property_protocol = axutil_array_list_create(env, 10);                }                                /* check whether there already exist an element */                element = axutil_array_list_get(_additionalTransferProtocols_type0->property_protocol, env, i);                if(NULL != element)                {                                                                             /* This is an unknown type or a primitive. Please free this manually*/                                     }                                   axutil_array_list_set(_additionalTransferProtocols_type0->property_protocol , env, i, axutil_strdup(env, arg_protocol));                  _additionalTransferProtocols_type0->is_valid_protocol = AXIS2_TRUE;                                return AXIS2_SUCCESS;            }
开发者ID:kolibre,项目名称:libkolibre-daisyonline,代码行数:92,



注:本文中的AXIS2_PARAM_CHECK函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ AXIS_NEG_GET函数代码示例
C++ AXIS2_MALLOC函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。