[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-c-commits
Subject:    [Wsf-c-commits] svn commit r16384 - in trunk/wsf/php/src: .
From:       svn () wso2 ! org
Date:       2008-04-30 10:52:07
Message-ID: E1Jr9uw-0004DJ-UG () wso2 ! org
[Download RAW message or body]

Author: dimuthu
Date: Wed Apr 30 03:51:40 2008
New Revision: 16384

Log:

adding swa file attachment support for the php


Modified:
   trunk/wsf/php/src/tests/samples/wsdl_mode/AttributeClient.phpt
   trunk/wsf/php/src/tests/samples/wsdl_mode/ComplexTypeSimpleExtensionClient.phpt
   trunk/wsf/php/src/wsf_client.c
   trunk/wsf/php/src/wsf_util.c

Modified: trunk/wsf/php/src/tests/samples/wsdl_mode/AttributeClient.phpt
==============================================================================
--- trunk/wsf/php/src/tests/samples/wsdl_mode/AttributeClient.phpt	(original)
+++ trunk/wsf/php/src/tests/samples/wsdl_mode/AttributeClient.phpt	Wed Apr 30 \
03:51:40 2008 @@ -24,6 +24,7 @@
 
     // create client in WSDL mode
     $client = new WSClient(array ("wsdl" \
=>"http://localhost/services/wsdl_mode/AttributeService.php?wsdl", +        "to" => \
"http://localhost/services/wsdl_mode/AttributeService.php",  "classmap" => \
$class_map,  ));
 

Modified: trunk/wsf/php/src/tests/samples/wsdl_mode/ComplexTypeSimpleExtensionClient.phpt
 ==============================================================================
--- trunk/wsf/php/src/tests/samples/wsdl_mode/ComplexTypeSimpleExtensionClient.phpt	(original)
                
+++ trunk/wsf/php/src/tests/samples/wsdl_mode/ComplexTypeSimpleExtensionClient.phpt	Wed \
Apr 30 03:51:40 2008 @@ -19,6 +19,7 @@
 
     // create client in WSDL mode
     $client = new WSClient(array ("wsdl" \
=>"http://localhost/services/wsdl_mode/ComplexTypeSimpleExtensionService.php?wsdl", + \
"to" => "http://localhost/services/wsdl_mode/ComplexTypeSimpleExtensionService.php",  \
"classmap" => $class_map,  ));
 

Modified: trunk/wsf/php/src/wsf_client.c
==============================================================================
--- trunk/wsf/php/src/wsf_client.c	(original)
+++ trunk/wsf/php/src/wsf_client.c	Wed Apr 30 03:51:40 2008
@@ -306,7 +306,7 @@
             char *value = NULL;
             value = Z_STRVAL_PP (tmp);
             /* Check if SOAP with Attachmnts (SwA) has been enabled */
-            if (value && (strcmp (value, "swa") == 0 || strcmp (value, "SWA") || \
strcmp (value, "SwA")) { +            if (value && (strcmp (value, "swa") == 0 || \
strcmp (value, "SWA") || strcmp (value, "SwA"))) {  
                 AXIS2_LOG_DEBUG (env->log, AXIS2_LOG_SI,
                     "[wsf_client] SwA enabled");

Modified: trunk/wsf/php/src/wsf_util.c
==============================================================================
--- trunk/wsf/php/src/wsf_util.c	(original)
+++ trunk/wsf/php/src/wsf_util.c	Wed Apr 30 03:51:40 2008
@@ -886,6 +886,17 @@
                                     axiom_text_t *text = NULL;
                                     axiom_data_handler_t *data_handler = NULL;
                                     axiom_node_detach (node, env);
+
+                                    tmp_node = axiom_node_get_first_child \
(payload_node, env); +                                    while (tmp_node) {
+                                        axiom_node_t *next_tmp_node = NULL;
+                                        next_tmp_node = axiom_node_get_next_sibling \
(tmp_node, env); +
+                                        axiom_node_free_tree(tmp_node, env);
+
+                                        tmp_node = next_tmp_node;
+                                    }
+
                                     data_handler =
                                         axiom_data_handler_create (env, NULL,
                                         cnt_type);
@@ -916,7 +927,7 @@
     }
     tmp_node = axiom_node_get_first_child (payload_node, env);
     while (tmp_node) {
-        wsf_util_set_attachments_with_cids (env, enable_mtom, AXIS2_FALSE, tmp_node,
+        wsf_util_set_attachments_with_cids (env, enable_mtom, enable_swa, tmp_node,
             attach_ht, default_cnt_type TSRMLS_CC);
         tmp_node = axiom_node_get_next_sibling (tmp_node, env);
     }

_______________________________________________
Wsf-c-commits mailing list
Wsf-c-commits@wso2.org
http://www.wso2.org/cgi-bin/mailman/listinfo/wsf-c-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic