You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by ma...@apache.org on 2007/08/30 10:07:10 UTC
svn commit: r571067 -
/webservices/rampart/trunk/c/src/omxmlsec/tokens/token_encrypted_data.c
Author: manjula
Date: Thu Aug 30 01:07:09 2007
New Revision: 571067
URL: http://svn.apache.org/viewvc?rev=571067&view=rev
Log:
Changing the previuos commit.
Modified:
webservices/rampart/trunk/c/src/omxmlsec/tokens/token_encrypted_data.c
Modified: webservices/rampart/trunk/c/src/omxmlsec/tokens/token_encrypted_data.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/omxmlsec/tokens/token_encrypted_data.c?rev=571067&r1=571066&r2=571067&view=diff
==============================================================================
--- webservices/rampart/trunk/c/src/omxmlsec/tokens/token_encrypted_data.c (original)
+++ webservices/rampart/trunk/c/src/omxmlsec/tokens/token_encrypted_data.c Thu Aug 30 01:07:09 2007
@@ -57,9 +57,15 @@
}
wsu_ns_obj = axiom_namespace_create(env, OXS_WSU_XMLNS, OXS_WSU);
+
+ /*In the following code we pass NULL to axiom_attribute_create to
+ * make the attributr Id="Something" Instead of wsu:Id="Something"
+ * This is done when interoping with BEA Weblogic.*/
+
+
if (id)
{
- id_attr = axiom_attribute_create(env, OXS_ATTR_ID, id, wsu_ns_obj);
+ id_attr = axiom_attribute_create(env, OXS_ATTR_ID, id, /*NULL*/wsu_ns_obj);
ret = axiom_element_add_attribute(encrypted_data_ele, env, id_attr, encrypted_data_node);
}
else
@@ -67,7 +73,7 @@
/*TODO Get a unique value for this*/
axis2_char_t *id = NULL;
id = oxs_util_generate_id(env, (axis2_char_t*)OXS_ENCDATA_ID);
- id_attr = axiom_attribute_create(env, OXS_ATTR_ID, id, wsu_ns_obj);
+ id_attr = axiom_attribute_create(env, OXS_ATTR_ID, id, /*NULL*/ wsu_ns_obj);
ret = axiom_element_add_attribute(encrypted_data_ele, env, id_attr, encrypted_data_node);
}