Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 94029 invoked from network); 6 Mar 2009 09:20:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2009 09:20:51 -0000 Received: (qmail 44653 invoked by uid 500); 6 Mar 2009 09:20:50 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 44515 invoked by uid 500); 6 Mar 2009 09:20:50 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 44506 invoked by uid 500); 6 Mar 2009 09:20:50 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 44503 invoked by uid 99); 6 Mar 2009 09:20:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Mar 2009 01:20:50 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Mar 2009 09:20:49 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 90C702388920; Fri, 6 Mar 2009 09:20:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r750815 - /webservices/axis2/trunk/c/src/core/clientapi/svc_client.c Date: Fri, 06 Mar 2009 09:20:28 -0000 To: axis2-cvs@ws.apache.org From: manjula@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090306092029.90C702388920@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: manjula Date: Fri Mar 6 09:20:23 2009 New Revision: 750815 URL: http://svn.apache.org/viewvc?rev=750815&view=rev Log: Removing the dynamic invocation function. Modified: webservices/axis2/trunk/c/src/core/clientapi/svc_client.c Modified: webservices/axis2/trunk/c/src/core/clientapi/svc_client.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/clientapi/svc_client.c?rev=750815&r1=750814&r2=750815&view=diff ============================================================================== --- webservices/axis2/trunk/c/src/core/clientapi/svc_client.c (original) +++ webservices/axis2/trunk/c/src/core/clientapi/svc_client.c Fri Mar 6 09:20:23 2009 @@ -121,128 +121,6 @@ return svc_client; } -AXIS2_EXTERN axis2_svc_client_t *AXIS2_CALL -axis2_svc_client_create_for_dynamic_invocation( - const axutil_env_t * env, - axis2_conf_ctx_t * conf_ctx, - const axutil_uri_t * wsdl_uri, - const axutil_qname_t * wsdl_svc_qname, - const axis2_char_t * endpoint_name, - const axis2_char_t * client_home) -{ - axis2_svc_client_t *svc_client = NULL; - axis2_svc_grp_t *svc_grp = NULL; - axis2_svc_grp_ctx_t *svc_grp_ctx = NULL; - const axis2_char_t *svc_grp_name = NULL; - axutil_hash_t *ops = NULL; - const axis2_char_t *repos_path = NULL; - axis2_char_t *wsdl_path = NULL; - - AXIS2_ENV_CHECK(env, NULL); - - svc_client = AXIS2_MALLOC(env->allocator, sizeof(axis2_svc_client_t)); - if (!svc_client) - { - AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); - AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "No memory. Cannot create service client."); - return NULL; - } - - svc_client->svc = NULL; - svc_client->conf = NULL; - svc_client->conf_ctx = NULL; - svc_client->svc_ctx = NULL; - svc_client->options = NULL; - svc_client->override_options = NULL; - svc_client->headers = NULL; - svc_client->callback_recv = NULL; - svc_client->listener_manager = NULL; - svc_client->op_client = NULL; - svc_client->http_headers = NULL; - svc_client->http_status_code = 0; - - if (!axis2_svc_client_init_data(env, svc_client)) - { - axis2_svc_client_free(svc_client, env); - return NULL; - } - - /*create the default conf_ctx if it is NULL */ - if (!axis2_svc_client_init_transports_from_conf_ctx(env, svc_client, - conf_ctx, client_home)) - { - axis2_svc_client_free(svc_client, env); - return NULL; - } - - svc_client->conf = axis2_conf_ctx_get_conf(svc_client->conf_ctx, env); - repos_path = axis2_conf_get_repo(svc_client->conf, env); - wsdl_path = - axutil_strcat(env, repos_path, AXIS2_PATH_SEP_STR, AXIS2_WSDL_LOCATION_IN_REPO, NULL); - - svc_client->options = axis2_options_create(env); - if (svc_client->svc) - { - axutil_hash_index_t *i = NULL; - void *v = NULL; - axis2_op_t *op = NULL; - - ops = axis2_svc_get_all_ops(svc_client->svc, env); - for (i = axutil_hash_first(ops, env); i; i = axutil_hash_next(env, i)) - { - axis2_phases_info_t *info = NULL; - axutil_hash_this(i, NULL, NULL, &v); - op = (axis2_op_t *) v; - - /* Setting operation phase */ - info = axis2_conf_get_phases_info(svc_client->conf, env); - axis2_phases_info_set_op_phases(info, env, op); - } - } - else - return NULL; - - /** add the service to the config context if it isn't in there already */ - if (!axis2_conf_get_svc(svc_client->conf, env, - axis2_svc_get_name(svc_client->svc, env))) - { - axis2_conf_add_svc(svc_client->conf, env, svc_client->svc); - } - - /** create a service context for myself: create a new service group - context and then get the service context for myself as I'll need that - later for stuff that I gotta do */ - svc_grp = axis2_svc_get_parent(svc_client->svc, env); - if (!svc_grp) - { - AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Cannot access service group of service client."); - return NULL; - } - - svc_grp_ctx = axis2_svc_grp_get_svc_grp_ctx(svc_grp, env, - svc_client->conf_ctx); - if (!svc_grp_ctx) - { - AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Cannot access service group context of service client."); - return NULL; - } - - svc_grp_name = axis2_svc_grp_get_name(svc_grp, env); - if (!svc_grp_name) - { - AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Cannot access service group name of service client."); - return NULL; /* service group name is mandatory */ - } - - axis2_conf_ctx_register_svc_grp_ctx(svc_client->conf_ctx, env, - svc_grp_name, svc_grp_ctx); - - svc_client->svc_ctx = axis2_svc_grp_ctx_get_svc_ctx(svc_grp_ctx, env, - axis2_svc_get_name - (svc_client->svc, env)); - - return svc_client; -} AXIS2_EXTERN axis2_svc_client_t *AXIS2_CALL axis2_svc_client_create_with_conf_ctx_and_svc(