You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by na...@apache.org on 2005/12/23 09:07:14 UTC

svn commit: r358764 - in /webservices/axis2/trunk/c: include/axis2_soap_header_block.h modules/xml/soap/src/axis2_soap_header_block.c

Author: nandika
Date: Fri Dec 23 00:07:03 2005
New Revision: 358764

URL: http://svn.apache.org/viewcvs?rev=358764&view=rev
Log: (empty)

Modified:
    webservices/axis2/trunk/c/include/axis2_soap_header_block.h
    webservices/axis2/trunk/c/modules/xml/soap/src/axis2_soap_header_block.c

Modified: webservices/axis2/trunk/c/include/axis2_soap_header_block.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_soap_header_block.h?rev=358764&r1=358763&r2=358764&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_soap_header_block.h (original)
+++ webservices/axis2/trunk/c/include/axis2_soap_header_block.h Fri Dec 23 00:07:03 2005
@@ -152,6 +152,16 @@
                                            axis2_om_namespace_t *ns,
                                            axis2_soap_header_t *parent);
                             
+AXIS2_DECLARE(axis2_soap_header_block_t *)
+axis2_soap11_header_block_create_with_parent(axis2_env_t **env,
+                                           axis2_char_t *localname,
+                                           axis2_om_namespace_t *ns,
+                                           axis2_soap_header_t *parent);
+AXIS2_DECLARE(axis2_soap_header_block_t *)
+axis2_soap12_header_block_create_with_parent(axis2_env_t **env,
+                                           axis2_char_t *localname,
+                                           axis2_om_namespace_t *ns,
+                                           axis2_soap_header_t *parent);                                                                        
 /******************** Macros **************************************************/
     
 /** free soap_header_block */

Modified: webservices/axis2/trunk/c/modules/xml/soap/src/axis2_soap_header_block.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/src/axis2_soap_header_block.c?rev=358764&r1=358763&r2=358764&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/src/axis2_soap_header_block.c (original)
+++ webservices/axis2/trunk/c/modules/xml/soap/src/axis2_soap_header_block.c Fri Dec 23 00:07:03 2005
@@ -526,4 +526,33 @@
     AXIS2_INTF_TO_IMPL(header_block)->soap_version = soap_version;
     return AXIS2_SUCCESS;
 }
-
+/******************** soap11 **************************************************/
+AXIS2_DECLARE(axis2_soap_header_block_t *)
+axis2_soap11_header_block_create_with_parent(axis2_env_t **env,
+                                           axis2_char_t *localname,
+                                           axis2_om_namespace_t *ns,
+                                           axis2_soap_header_t *header)
+{
+    axis2_soap_header_block_t *header_block = NULL;
+    AXIS2_ENV_CHECK(env, NULL);
+    header_block = axis2_soap_header_block_create_with_parent(env, localname, ns, header);
+    if(!header_block)
+        return NULL;
+    axis2_soap_header_block_set_soap_version(header_block, env, AXIS2_SOAP11);
+    return header_block;
+}                                           
+/******************** soap12 **************************************************/                                           
+AXIS2_DECLARE(axis2_soap_header_block_t *)
+axis2_soap12_header_block_create_with_parent(axis2_env_t **env,
+                                           axis2_char_t *localname,
+                                           axis2_om_namespace_t *ns,
+                                           axis2_soap_header_t *header)
+{
+    axis2_soap_header_block_t *header_block = NULL;
+    AXIS2_ENV_CHECK(env, NULL);
+    header_block = axis2_soap_header_block_create_with_parent(env, localname, ns, header);
+    if(!header_block)
+        return NULL;
+    axis2_soap_header_block_set_soap_version(header_block, env, AXIS2_SOAP12);
+    return header_block;
+}