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 ma...@apache.org on 2008/12/04 06:06:45 UTC

svn commit: r723211 - /webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c

Author: manjula
Date: Wed Dec  3 21:06:45 2008
New Revision: 723211

URL: http://svn.apache.org/viewvc?rev=723211&view=rev
Log:
Changes to mtom_client

Modified:
    webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c

Modified: webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c?rev=723211&r1=723210&r2=723211&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c Wed Dec  3 21:06:45 2008
@@ -21,6 +21,7 @@
 #include <axis2_util.h>
 #include <axiom_soap.h>
 #include <axis2_client.h>
+#include <axutil_uuid_gen.h>
 
 axiom_node_t *build_om_programatically(
     const axutil_env_t * env,
@@ -207,11 +208,22 @@
     image_om_ele =
         axiom_element_create(env, mtom_om_node, "image", ns1, &image_om_node);
 
+    /* This is when we directly give file name */
+
     data_handler = axiom_data_handler_create(env, image_name, "image/jpeg");
+
+    /* Uncomment following to set a callback instead of a file */
+
+    /*data_handler = axiom_data_handler_create(env, NULL, "image/jpeg");
+    axiom_data_handler_set_data_handler_type(data_handler, env, AXIOM_DATA_HANDLER_TYPE_CALLBACK); 
+    axiom_data_handler_set_user_param(data_handler, env, (void *)image_name);*/
+
     data_text =
         axiom_text_create_with_data_handler(env, image_om_node, data_handler,
                                             &data_om_node);
+
     axiom_text_set_optimize(data_text, env, optimized);
+    /*axiom_text_set_is_swa(data_text, env, AXIS2_TRUE);*/
     om_str = axiom_node_to_string(mtom_om_node, env);
     if (om_str)
     {