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 2009/02/19 06:28:11 UTC

svn commit: r745733 - /webservices/axis2/trunk/c/samples/client/mtom_callback/mtom_callback_client.c

Author: manjula
Date: Thu Feb 19 05:28:11 2009
New Revision: 745733

URL: http://svn.apache.org/viewvc?rev=745733&view=rev
Log:
Changes to the client.

Modified:
    webservices/axis2/trunk/c/samples/client/mtom_callback/mtom_callback_client.c

Modified: webservices/axis2/trunk/c/samples/client/mtom_callback/mtom_callback_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/mtom_callback/mtom_callback_client.c?rev=745733&r1=745732&r2=745733&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/mtom_callback/mtom_callback_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/mtom_callback/mtom_callback_client.c Thu Feb 19 05:28:11 2009
@@ -226,7 +226,22 @@
 
         if(axiom_data_handler_get_cached(data_handler, env)) 
         {
-            printf("Attachment is cached.\n");    
+            axis2_char_t *mime_id = NULL;
+            
+            printf("Attachment is cached.\n");
+
+            mime_id = axiom_data_handler_get_mime_id(data_handler, env);
+            if(mime_id)
+            {
+                /* The client implementer should know what to do with 
+                 * the attachment in the response. Becasue the attachment 
+                 * was stored using the callback given by the client */
+
+                /*axis2_char_t command[1000];
+
+                sprintf(command, "rm -f /opt/tmp/%s", mime_id);
+                system(command);*/
+            }
         }   
         else
         {