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 ma...@apache.org on 2009/03/06 10:20:28 UTC
svn commit: r750815 -
/webservices/axis2/trunk/c/src/core/clientapi/svc_client.c
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(