summaryrefslogtreecommitdiffstats
path: root/samples/user_guide
diff options
context:
space:
mode:
Diffstat (limited to 'samples/user_guide')
-rw-r--r--samples/user_guide/clients/echo_util.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/samples/user_guide/clients/echo_util.c b/samples/user_guide/clients/echo_util.c
index a38158b..c3ede56 100644
--- a/samples/user_guide/clients/echo_util.c
+++ b/samples/user_guide/clients/echo_util.c
@@ -30,19 +30,18 @@ build_om_payload_for_echo_svc(
axiom_namespace_t *ns1 = NULL;
axis2_char_t *om_str = NULL;
- ns1 =
- axiom_namespace_create(env, "http://ws.apache.org/axis2/services/echo",
- "ns1");
- echo_om_ele =
- axiom_element_create(env, NULL, "echoString", ns1, &echo_om_node);
- text_om_ele =
- axiom_element_create(env, echo_om_node, "text", NULL, &text_om_node);
+ ns1 = axiom_namespace_create(env, "http://ws.apache.org/axis2/services/echo", "ns1");
+ echo_om_ele = axiom_element_create(env, NULL, "echoString", ns1, &echo_om_node);
+ text_om_ele = axiom_element_create(env, echo_om_node, "text", NULL, &text_om_node);
axiom_element_set_text(text_om_ele, env, "Hello World!", text_om_node);
+ axiom_namespace_free(ns1, env);
om_str = axiom_node_to_string(echo_om_node, env);
if (om_str)
+ {
printf("\nSending OM : %s\n", om_str);
- AXIS2_FREE(env->allocator, om_str);
+ AXIS2_FREE(env->allocator, om_str);
+ }
return echo_om_node;
}