You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-commits@axis.apache.org by ra...@apache.org on 2016/09/18 15:46:53 UTC
svn commit: r1761338 -
/axis/axis2/c/core/trunk/src/core/clientapi/svc_client.c
Author: rafaelb
Date: Sun Sep 18 15:46:53 2016
New Revision: 1761338
URL: http://svn.apache.org/viewvc?rev=1761338&view=rev
Log:
Get compatibility with anothers Web Services Frameworks, adjust payload with xmlns
Modified:
axis/axis2/c/core/trunk/src/core/clientapi/svc_client.c
Modified: axis/axis2/c/core/trunk/src/core/clientapi/svc_client.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/src/core/clientapi/svc_client.c?rev=1761338&r1=1761337&r2=1761338&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/src/core/clientapi/svc_client.c (original)
+++ axis/axis2/c/core/trunk/src/core/clientapi/svc_client.c Sun Sep 18 15:46:53 2016
@@ -1295,6 +1295,15 @@ axis2_svc_client_fill_soap_envelope(
node = axiom_soap_body_get_base_node(soap_body, env);
if(node)
{
+ //Get compatibility with anothers Web Services Frameworks, adjust payload with xmlns
+ axiom_element_t *element = (axiom_element_t*)axiom_node_get_data_element(node, env);
+
+ axiom_attribute_t *attXmlXsi = axiom_attribute_create(env, "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance", NULL);
+ axiom_element_add_attribute(element, env, attXmlXsi, node);
+
+ axiom_attribute_t *attXmlXsd = axiom_attribute_create(env, "xmlns:xsd", "http://www.w3.org/2001/XMLSchema", NULL);
+ axiom_element_add_attribute(element, env, attXmlXsd, node);
+
axiom_node_add_child(node, env, (axiom_node_t *)payload);
}
}