You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2005/10/20 06:48:18 UTC
svn commit: r326813 - in
/webservices/axis2/trunk/c/modules/core/description/src:
axis2_description_operation.c axis2_description_param_include.c
axis2_description_service.c
Author: damitha
Date: Wed Oct 19 21:48:07 2005
New Revision: 326813
URL: http://svn.apache.org/viewcvs?rev=326813&view=rev
Log:
more work service
Modified:
webservices/axis2/trunk/c/modules/core/description/src/axis2_description_operation.c
webservices/axis2/trunk/c/modules/core/description/src/axis2_description_param_include.c
webservices/axis2/trunk/c/modules/core/description/src/axis2_description_service.c
Modified: webservices/axis2/trunk/c/modules/core/description/src/axis2_description_operation.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/src/axis2_description_operation.c?rev=326813&r1=326812&r2=326813&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/src/axis2_description_operation.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/src/axis2_description_operation.c Wed Oct 19 21:48:07 2005
@@ -76,7 +76,7 @@
/************************* End of function headers ****************************/
-axis2_description_operation_t *axis2_description_operation_get_ops
+axis2_description_operation_ops_t *axis2_description_operation_get_ops
(axis2_environment_t *env, axis2_description_operation_t *operation_desc)
{
if(!operation_desc)
Modified: webservices/axis2/trunk/c/modules/core/description/src/axis2_description_param_include.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/src/axis2_description_param_include.c?rev=326813&r1=326812&r2=326813&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/src/axis2_description_param_include.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/src/axis2_description_param_include.c Wed Oct 19 21:48:07 2005
@@ -146,7 +146,7 @@
return NULL;
}
return (axis2_description_param_t *)(axis2_hash_get
- (param_include->params, env->string->axis2_string_strdup(name)
+ (param_include->params, axis2_strdup(env->string, name)
, AXIS2_HASH_KEY_STRING));
}
Modified: webservices/axis2/trunk/c/modules/core/description/src/axis2_description_service.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/src/axis2_description_service.c?rev=326813&r1=326812&r2=326813&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/src/axis2_description_service.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/src/axis2_description_service.c Wed Oct 19 21:48:07 2005
@@ -210,9 +210,22 @@
if (!(service_desc->wasaction_opeartionmap))
{
service_desc->wasaction_opeartionmap = axis2_hash_make (env);
- }
+ }
+ axis2_description_operation_ops_t *tempopt =
+ (axis2_description_operation_get_ops(env, operation_desc));
+
+ if(!tempopt) return AXIS2_ERROR_INVALID_NULL_PARAMETER;
+
+ axis2_qname_t *tempqname = tempopt->get_name(env, operation_desc);
+
+ if(!tempqname) return AXIS2_ERROR_INVALID_NULL_PARAMETER;
+
+ axis2_char_t *tempname = tempqname->localpart;
+
+ if(!tempname) return AXIS2_ERROR_INVALID_NULL_PARAMETER;
+
axis2_hash_set (service_desc->wasaction_opeartionmap
- , axis2_description_operation_get_name(env, operation_desc)
+ , tempname
, AXIS2_HASH_KEY_STRING, operation_desc);
return AXIS2_SUCCESS;
@@ -228,6 +241,10 @@
env->error->errorno = AXIS2_ERROR_INVALID_NULL_PARAMETER;
return NULL;
}
+ return (axis2_description_operation_t *) (axis2_hash_get
+ (service_desc->wasaction_opeartionmap, operation_name->localpart
+ , AXIS2_HASH_KEY_STRING));
+
}
axis2_description_operation_t
@@ -240,6 +257,9 @@
env->error->errorno = AXIS2_ERROR_INVALID_NULL_PARAMETER;
return NULL;
}
+ return (axis2_description_operation_t *) (axis2_hash_get
+ (service_desc->wasaction_opeartionmap
+ , axis2_strdup(env->string, name), AXIS2_HASH_KEY_STRING));
}
axis2_hash_t *axis2_description_service_ops_get_operations