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 2006/01/17 12:59:06 UTC
svn commit: r369761 -
/webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c
Author: damitha
Date: Tue Jan 17 03:58:58 2006
New Revision: 369761
URL: http://svn.apache.org/viewcvs?rev=369761&view=rev
Log:
new logic to get the service name and set it
Modified:
webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c
Modified: webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c?rev=369761&r1=369760&r2=369761&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c Tue Jan 17 03:58:58 2006
@@ -217,6 +217,7 @@
axis2_qname_t *qin_faultflowst = NULL;
axis2_qname_t *qout_faultflowst = NULL;
axis2_qname_t *qopst = NULL;
+ axis2_qname_t *qattname = NULL;
/*axis2_qname_t *qmodule_config = NULL; */
axis2_status_t status = AXIS2_FAILURE;
axis2_svc_grp_t *parent = NULL;
@@ -231,7 +232,9 @@
axis2_om_element_t *in_faultflow_element = NULL;
axis2_om_node_t *out_faultflow_node = NULL;
axis2_om_element_t *out_faultflow_element = NULL;
+ axis2_om_attribute_t *name_attr = NULL;
axis2_array_list_t *ops = NULL;
+ axis2_char_t *svc_name = NULL;
int i = 0;
int size = 0;
@@ -260,7 +263,11 @@
}
/* process service description */
- qdesc = axis2_qname_create(env, AXIS2_DESCRIPTION, NULL, NULL);
+ /* TODO this code is changed in new version of axis2 java. Until that logic
+ * is incorporated I comment out this part and add my own logic to set svc
+ * name
+ */
+ /*qdesc = axis2_qname_create(env, AXIS2_DESCRIPTION, NULL, NULL);
desc_element = AXIS2_OM_ELEMENT_GET_FIRST_CHILD_WITH_QNAME(svc_element, env,
qdesc, svc_node, &desc_node);
if(NULL != desc_element)
@@ -298,7 +305,13 @@
svc_name);
}
}
-
+ */
+ /* my logic to get set service name */
+ qattname = axis2_qname_create(env, AXIS2_ATTNAME, NULL, NULL);
+ name_attr = AXIS2_OM_ELEMENT_GET_ATTRIBUTE(svc_element, env, qattname);
+ svc_name = AXIS2_OM_ATTRIBUTE_GET_VALUE(name_attr, env);
+ AXIS2_SVC_SET_AXIS2_SVC_NAME(builder_impl->svc, env, svc_name);
+ /* end of my logic */
/* processing service wide modules which required to engage globally */
qmodulest = axis2_qname_create(env, AXIS2_MODULEST, NULL, NULL);
module_refs = AXIS2_OM_ELEMENT_GET_CHILDREN_WITH_QNAME(svc_element, env,