You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2008/01/18 07:05:36 UTC

svn commit: r613061 - in /webservices/axis2/trunk/c: NOTICE src/core/transport/http/util/http_transport_utils.c

Author: dinesh
Date: Thu Jan 17 22:05:35 2008
New Revision: 613061

URL: http://svn.apache.org/viewvc?rev=613061&view=rev
Log:
removed commented code, moditied NOTICE file, year part to easily managable format

Modified:
    webservices/axis2/trunk/c/NOTICE
    webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c

Modified: webservices/axis2/trunk/c/NOTICE
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/NOTICE?rev=613061&r1=613060&r2=613061&view=diff
==============================================================================
--- webservices/axis2/trunk/c/NOTICE (original)
+++ webservices/axis2/trunk/c/NOTICE Thu Jan 17 22:05:35 2008
@@ -1,5 +1,5 @@
 Apache Axis2/C
-Copyright 2005, 2006, 2007, 2008 The Apache Software Foundation
+Copyright 2005-2008 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).

Modified: webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c?rev=613061&r1=613060&r2=613061&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c Thu Jan 17 22:05:35 2008
@@ -1388,134 +1388,6 @@
     return tmp2;
 }
 
-/*AXIS2_EXTERN axiom_soap_envelope_t *AXIS2_CALL
-axis2_http_transport_utils_handle_media_type_url_encoded(
-    const axutil_env_t *env,
-    axis2_msg_ctx_t *msg_ctx,
-    axutil_hash_t *param_map,
-    axis2_char_t *method,
-    xml_schema_element_t *schema_element)
-{
-    axiom_soap_envelope_t *soap_env = NULL;
-    axiom_soap_body_t *soap_body = NULL;
-
-    AXIS2_ENV_CHECK(env, NULL);
-    AXIS2_PARAM_CHECK(env->error, msg_ctx, NULL);
-    AXIS2_PARAM_CHECK(env->error, method, NULL);
-
-    soap_env = axiom_soap_envelope_create_default_soap_envelope(env,
-            AXIOM_SOAP11);
-    soap_body = axiom_soap_envelope_get_body(soap_env, env);
-    if (! soap_body)
-    {
-        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_SOAP_ENVELOPE_OR_SOAP_BODY_NULL,
-                AXIS2_FAILURE);
-        return NULL;
-    }
-    if (! schema_element)
-    {
-        axiom_element_t *body_child = NULL;
-        axiom_node_t *body_child_node = NULL;
-
-        body_child = axiom_element_create_with_qname(env, NULL,
-                axis2_op_get_qname( axis2_msg_ctx_get_op(msg_ctx, env),
-                        env), &body_child_node);
-        axiom_soap_body_add_child(soap_body, env, body_child_node);
-        if (param_map)
-        {
-            axutil_hash_index_t *hi = NULL;
-            for (hi = axutil_hash_first(param_map, env); hi ;
-                    hi = axutil_hash_next(env, hi))
-            {
-                void *name = NULL;
-                void *value = NULL;
-                axiom_node_t *node = NULL;
-                axiom_element_t *element = NULL;
-
-                axutil_hash_this(hi, (const void **)&name, NULL, (void **)&value);
-                element = axiom_element_create(env, NULL, (axis2_char_t *)name,
-                        NULL, &node);
-                axiom_element_set_text(element, env, (axis2_char_t *)value, node);
-                axiom_node_add_child(body_child_node, env, node);
-            }
-        }
-    }
-    else
-    {
-        axis2_char_t *target_ns = NULL;
-        axutil_qname_t *bfc_qname = NULL;
-        axiom_element_t *body_child = NULL;
-        axiom_node_t *body_child_node = NULL;
-
-        target_ns = axutil_qname_get_uri(XML_SCHEMA_ELEMENT_GET_QNAME(
-                    schema_element, env), env);
-        bfc_qname = axutil_qname_create(env, XML_SCHEMA_ELEMENT_GET_NAME(
-                    schema_element, env), target_ns, NULL);
-
-        body_child = axiom_element_create_with_qname(env, NULL, bfc_qname,
-                &body_child_node);
-        axiom_soap_body_add_child(soap_body, env, body_child_node);
-        if (0 == axutil_strcmp(method, AXIS2_HTTP_GET) ||
-                0 == axutil_strcmp(method, AXIS2_HTTP_POST))
-        {
-            xml_schema_type_t *schema_type = NULL;
-            schema_type = XML_SCHEMA_ELEMENT_GET_SCHEMA_TYPE(schema_element,
-                    env);
-            if (XML_SCHEMA_COMPLEX_TYPE == XML_SCHEMA_TYPE_GET_TYPE(schema_type,
-                    env))
-            {
-                xml_schema_particle_t *schema_particle = NULL;
-                schema_particle = XML_SCHEMA_COMPLEX_TYPE_GET_PARTICLE(
-                            schema_type, env);
-                if (XML_SCHEMA_SEQUENCE ==
-                        XML_SCHEMA_PARTICLE_GET_TYPE(schema_particle, env))
-                {
-                    xml_schema_group_base_t *sequence = NULL;
-                    xml_schema_obj_collection_t *seq_items = NULL;
-                    int count = 0;
-                    int i = 0;
-
-                    sequence = (xml_schema_group_base_t *)schema_particle;
-                    seq_items = XML_SCHEMA_GROUP_BASE_GET_ITEMS(sequence, env);
-                    count = XML_SCHEMA_OBJ_COLLECTION_GET_COUNT(seq_items, env);
-                    for (i = 0; i < count; i++)
-                    {
-                        xml_schema_element_t *inner_element = NULL;
-                        axis2_char_t *element_name = NULL;
-                        axis2_char_t *param_val = NULL;
-                        axiom_element_t *om_element = NULL;
-                        axiom_node_t *om_node = NULL;
-
-                        inner_element = (xml_schema_element_t *)
-                                XML_SCHEMA_OBJ_COLLECTION_GET_ITEM(seq_items, env,
-                                        i);
-                        element_name = XML_SCHEMA_ELEMENT_GET_NAME(inner_element,
-                                env);
-                        param_val = axutil_hash_get(param_map, element_name,
-                                AXIS2_HASH_KEY_STRING);
-                        if (! param_val)
-                        {
-                            AXIS2_ERROR_SET(env->error,
-                                    AXIS2_ERROR_REQD_PARAM_MISSING, AXIS2_FAILURE);
-                            return NULL;
-                        }
-                        om_element = axiom_element_create(env, body_child_node,
-                                element_name, NULL, &om_node);
-                        axiom_element_set_text(om_element, env, param_val,
-                                om_node);
-                    }
-                }
-            }
-            else
-            {
-                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_UNSUPPORTED_SCHEMA_TYPE,
-                        AXIS2_FAILURE);
-                return NULL;
-            }
-        }
-    }
-    return soap_env;
-}*/
 
 AXIS2_EXTERN axiom_soap_envelope_t *AXIS2_CALL
 axis2_http_transport_utils_handle_media_type_url_encoded(



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org