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 2006/01/19 08:53:44 UTC
svn commit: r370412 - in /webservices/axis2/trunk/c: include/
modules/xml/soap/
Author: nandika
Date: Wed Jan 18 23:53:19 2006
New Revision: 370412
URL: http://svn.apache.org/viewcvs?rev=370412&view=rev
Log:
added function set builder
Modified:
webservices/axis2/trunk/c/include/axis2_soap_body.h
webservices/axis2/trunk/c/include/axis2_soap_fault.h
webservices/axis2/trunk/c/include/axis2_soap_fault_code.h
webservices/axis2/trunk/c/include/axis2_soap_header.h
webservices/axis2/trunk/c/modules/xml/soap/soap12_builder_helper.c
webservices/axis2/trunk/c/modules/xml/soap/soap_body.c
webservices/axis2/trunk/c/modules/xml/soap/soap_envelope.c
webservices/axis2/trunk/c/modules/xml/soap/soap_fault.c
webservices/axis2/trunk/c/modules/xml/soap/soap_fault_code.c
webservices/axis2/trunk/c/modules/xml/soap/soap_fault_detail.c
webservices/axis2/trunk/c/modules/xml/soap/soap_fault_node.c
webservices/axis2/trunk/c/modules/xml/soap/soap_fault_reason.c
webservices/axis2/trunk/c/modules/xml/soap/soap_fault_role.c
webservices/axis2/trunk/c/modules/xml/soap/soap_header.c
Modified: webservices/axis2/trunk/c/include/axis2_soap_body.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_soap_body.h?rev=370412&r1=370411&r2=370412&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_soap_body.h (original)
+++ webservices/axis2/trunk/c/include/axis2_soap_body.h Wed Jan 18 23:53:19 2006
@@ -38,6 +38,7 @@
typedef struct axis2_soap_body axis2_soap_body_t;
typedef struct axis2_soap_body_ops axis2_soap_body_ops_t;
+struct axis2_soap_builder;
/**
* @defgroup axis2_soap_body
@@ -106,6 +107,11 @@
axis2_status_t (AXIS2_CALL *set_soap_version)(axis2_soap_body_t *body,
axis2_env_t **env,
int soap_version);
+
+ axis2_status_t (AXIS2_CALL *set_builder)(axis2_soap_body_t *body,
+ axis2_env_t **env,
+ struct axis2_soap_builder *builder);
+
};
/**
@@ -156,7 +162,10 @@
((body)->ops->get_soap_version(body, env))
#define AXIS2_SOAP_BODY_SET_SOAP_VERSION(body, env, soap_version) \
- ((body)->ops->set_soap_version(body, env, soap_version))
+ ((body)->ops->set_soap_version(body, env, soap_version))
+
+#define AXIS2_SOAP_BODY_SET_BUILDER(body, env, builder) \
+ ((body)->ops->set_builder(body, env, builder))
/** @} */
#ifdef __cplusplus
Modified: webservices/axis2/trunk/c/include/axis2_soap_fault.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_soap_fault.h?rev=370412&r1=370411&r2=370412&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_soap_fault.h (original)
+++ webservices/axis2/trunk/c/include/axis2_soap_fault.h Wed Jan 18 23:53:19 2006
@@ -45,6 +45,7 @@
struct axis2_soap_fault_text;
struct axis2_soap_fault_value;
struct axis2_soap_body;
+struct axis2_soap_builder;
typedef enum axis2_soap_fault_types
{
@@ -153,7 +154,11 @@
int soap_version);
int (AXIS2_CALL *get_soap_version)(axis2_soap_fault_t *fault,
- axis2_env_t **env);
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *set_builder)(axis2_soap_fault_t *fault,
+ axis2_env_t **env,
+ struct axis2_soap_builder *builder);
};
@@ -236,7 +241,10 @@
((fault)->ops->get_exception(fault, env))
#define AXIS2_SOAP_FAULT_SET_EXCEPTION(fault, env, exception) \
- ((fault)->ops->set_exception(fault, env, exception))
+ ((fault)->ops->set_exception(fault, env, exception))
+
+#define AXIS2_SOAP_FAULT_SET_BUILDER(fault, env, builder) \
+ ((fault)->ops->set_builder(fault, env, builder))
/** @} */
#ifdef __cplusplus
Modified: webservices/axis2/trunk/c/include/axis2_soap_fault_code.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_soap_fault_code.h?rev=370412&r1=370411&r2=370412&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_soap_fault_code.h (original)
+++ webservices/axis2/trunk/c/include/axis2_soap_fault_code.h Wed Jan 18 23:53:19 2006
@@ -35,6 +35,7 @@
struct axis2_soap_fault_value;
struct axis2_soap_fault_sub_code;
+ struct axis2_soap_builder;
/**
* @defgroup axis2_soap_fault_code
* @ingroup axis2_soap
@@ -93,6 +94,11 @@
(axis2_soap_fault_code_t *fault_code,
axis2_env_t **env,
int soap_version);
+
+ axis2_status_t (AXIS2_CALL *set_builder)
+ (axis2_soap_fault_code_t *fault_code,
+ axis2_env_t **env,
+ struct axis2_soap_builder *builder);
};
@@ -160,6 +166,9 @@
#define AXIS2_SOAP_FAULT_CODE_GET_SOAP_VERSION(fault_code, env) \
((fault_code)->ops->get_soap_version(fault_code, env))
+#define AXIS2_SOAP_FAULT_CODE_SET_BUILDER(fault_code, env, builder) \
+ ((fault_code)->ops->set_builder(fault_code, env, builder))
+
/** @} */
#ifdef __cplusplus
Modified: webservices/axis2/trunk/c/include/axis2_soap_header.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_soap_header.h?rev=370412&r1=370411&r2=370412&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_soap_header.h (original)
+++ webservices/axis2/trunk/c/include/axis2_soap_header.h Wed Jan 18 23:53:19 2006
@@ -38,7 +38,8 @@
typedef struct axis2_soap_header axis2_soap_header_t;
typedef struct axis2_soap_header_ops axis2_soap_header_ops_t;
-struct axis2_soap_header_block;
+struct axis2_soap_header_block;
+struct axis2_soap_builder;
/**
@@ -129,6 +130,10 @@
(axis2_soap_header_t *header,
axis2_env_t **env,
struct axis2_soap_header_block* header_block);
+
+ axis2_status_t (AXIS2_CALL *set_builder)(axis2_soap_header_t *header,
+ axis2_env_t **env,
+ struct axis2_soap_builder* builder);
};
@@ -195,7 +200,10 @@
((header)->ops->get_soap_version(header, env))
#define AXIS2_SOAP_HEADER_SET_HEADER_BLOCK(header, env, header_block) \
- ((header)->ops->set_header_block(header, env, header_block))
+ ((header)->ops->set_header_block(header, env, header_block))
+
+#define AXIS2_SOAP_HEADER_SET_BUILDER(header, env, builder) \
+ ((header)->ops->set_builder(header, env, builder))
/** @} */
Modified: webservices/axis2/trunk/c/modules/xml/soap/soap12_builder_helper.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/soap12_builder_helper.c?rev=370412&r1=370411&r2=370412&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/soap12_builder_helper.c (original)
+++ webservices/axis2/trunk/c/modules/xml/soap/soap12_builder_helper.c Wed Jan 18 23:53:19 2006
@@ -99,7 +99,6 @@
AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
- printf("builder helper 12");
builder_helper_impl->code_present = AXIS2_FALSE;
builder_helper_impl->detail_present = AXIS2_FALSE;
@@ -564,14 +563,14 @@
}
else
{
- printf("\AXIS2_ERROR_MULTIPLE_SUB_CODE_VALUES_ENCOUNTERED\n");
+ printf("\nAXIS2_ERROR_MULTIPLE_SUB_CODE_VALUES_ENCOUNTERED\n");
AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_MULTIPLE_SUB_CODE_VALUES_ENCOUNTERED, AXIS2_FAILURE);
return AXIS2_FAILURE;
}
}
else
{
- printf("\AXIS2_ERROR_SOAP_FAULT_VALUE_SHOULD_BE_PRESENT_BEFORE_SUB_CODE\n");
+ printf("\nAXIS2_ERROR_SOAP_FAULT_VALUE_SHOULD_BE_PRESENT_BEFORE_SUB_CODE\n");
AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_SOAP_FAULT_VALUE_SHOULD_BE_PRESENT_BEFORE_SUB_CODE, AXIS2_FAILURE);
return AXIS2_FAILURE;
@@ -579,7 +578,7 @@
}
else
{
- printf("\AXIS2_ERROR_THIS_LOCALNAME_IS_NOT_SUPPORTED_INSIDE_THE_SUB_CODE_ELEMENT\n");
+ printf("\nAXIS2_ERROR_THIS_LOCALNAME_IS_NOT_SUPPORTED_INSIDE_THE_SUB_CODE_ELEMENT\n");
AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_THIS_LOCALNAME_IS_NOT_SUPPORTED_INSIDE_THE_SUB_CODE_ELEMENT, AXIS2_FAILURE);
return AXIS2_FAILURE;
}
Modified: webservices/axis2/trunk/c/modules/xml/soap/soap_body.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/soap_body.c?rev=370412&r1=370411&r2=370412&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/soap_body.c (original)
+++ webservices/axis2/trunk/c/modules/xml/soap/soap_body.c Wed Jan 18 23:53:19 2006
@@ -18,6 +18,7 @@
#include <axis2_soap_body.h>
#include <axis2_hash.h>
#include <axis2_soap.h>
+ #include <axis2_soap_builder.h>
/******************* impl struct *********************************************/
@@ -33,6 +34,8 @@
axis2_soap_fault_t *soap_fault;
+ axis2_soap_builder_t *soap_builder;
+
}axis2_soap_body_impl_t;
/****************** Macro ****************************************************/
@@ -76,6 +79,11 @@
axis2_soap_body_set_soap_version(axis2_soap_body_t *body,
axis2_env_t **env,
int soap_version);
+
+axis2_status_t AXIS2_CALL
+axis2_soap_body_set_builder(axis2_soap_body_t *body,
+ axis2_env_t **env,
+ axis2_soap_builder_t *builder);
/*************** function implementations *************************************/
axis2_soap_body_t* AXIS2_CALL
@@ -94,6 +102,7 @@
}
body_impl->soap_body.ops = NULL;
body_impl->om_ele_node = NULL;
+ body_impl->soap_builder = NULL;
body_impl->soap_version = AXIS2_SOAP_VERSION_NOT_SET;
body_impl->has_fault = AXIS2_FALSE;
body_impl->soap_fault = NULL;
@@ -117,7 +126,7 @@
body_impl->soap_body.ops->set_base_node = axis2_soap_body_set_base_node;
body_impl->soap_body.ops->get_soap_version = axis2_soap_body_get_soap_version;
body_impl->soap_body.ops->set_soap_version = axis2_soap_body_set_soap_version;
-
+ body_impl->soap_body.ops->set_builder = axis2_soap_body_set_builder;
return &(body_impl->soap_body);
return NULL;
}
@@ -367,3 +376,15 @@
AXIS2_INTF_TO_IMPL(body)->soap_version = soap_version;
return AXIS2_SUCCESS;
}
+
+axis2_status_t AXIS2_CALL
+axis2_soap_body_set_builder(axis2_soap_body_t *body,
+ axis2_env_t **env,
+ axis2_soap_builder_t *builder)
+{
+ axis2_soap_body_impl_t *body_impl = NULL;
+ AXIS2_PARAM_CHECK((*env)->error, builder, AXIS2_FAILURE);
+ body_impl = AXIS2_INTF_TO_IMPL(body);
+ body_impl->soap_builder = builder;
+ return AXIS2_SUCCESS;
+}
Modified: webservices/axis2/trunk/c/modules/xml/soap/soap_envelope.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/soap_envelope.c?rev=370412&r1=370411&r2=370412&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/soap_envelope.c (original)
+++ webservices/axis2/trunk/c/modules/xml/soap/soap_envelope.c Wed Jan 18 23:53:19 2006
@@ -159,7 +159,9 @@
envelope_impl->soap_envelope.ops->set_header =
axis2_soap_envelope_set_header;
envelope_impl->soap_envelope.ops->get_namespace =
- axis2_soap_envelope_get_namespace;
+ axis2_soap_envelope_get_namespace;
+ envelope_impl->soap_envelope.ops->set_builder =
+ axis2_soap_envelope_set_builder;
envelope_impl->soap_envelope.ops->serialize =
axis2_soap_envelope_serialize;
@@ -613,3 +615,4 @@
return NULL;
}
+
\ No newline at end of file
Modified: webservices/axis2/trunk/c/modules/xml/soap/soap_fault.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/soap_fault.c?rev=370412&r1=370411&r2=370412&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/soap_fault.c (original)
+++ webservices/axis2/trunk/c/modules/xml/soap/soap_fault.c Wed Jan 18 23:53:19 2006
@@ -24,6 +24,7 @@
#include <axis2_soap_fault_role.h>
#include <axis2_soap_fault_node.h>
#include <axis2_soap_utils.h>
+ #include <axis2_soap_builder.h>
/**************** impl struct ************************************************/
@@ -51,6 +52,8 @@
int soap_version;
+ axis2_soap_builder_t *soap_builder;
+
}axis2_soap_fault_impl_t;
/************************* Macro **********************************************/
@@ -136,6 +139,11 @@
axis2_env_t **env,
axis2_char_t *exception);
+axis2_status_t AXIS2_CALL
+axis2_soap_fault_set_builder(axis2_soap_fault_t *fault,
+ axis2_env_t **env,
+ axis2_soap_builder_t *builder);
+
/***************** function implementations ***********************************/
AXIS2_DECLARE(axis2_soap_fault_t *)
@@ -207,7 +215,9 @@
fault_impl->soap_fault.ops->get_exception =
axis2_soap_fault_get_exception;
fault_impl->soap_fault.ops->set_exception =
- axis2_soap_fault_set_exception;
+ axis2_soap_fault_set_exception;
+ fault_impl->soap_fault.ops->set_builder =
+ axis2_soap_fault_set_builder;
return &(fault_impl->soap_fault);
}
@@ -738,3 +748,13 @@
return AXIS2_SUCCESS;
}
+axis2_status_t AXIS2_CALL
+axis2_soap_fault_set_builder(axis2_soap_fault_t *fault,
+ axis2_env_t **env,
+ axis2_soap_builder_t *builder)
+{
+ axis2_soap_fault_impl_t *fault_impl = NULL;
+ AXIS2_PARAM_CHECK((*env)->error, builder, AXIS2_FAILURE);
+ fault_impl->soap_builder = builder;
+ return AXIS2_SUCCESS;
+}
\ No newline at end of file
Modified: webservices/axis2/trunk/c/modules/xml/soap/soap_fault_code.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/soap_fault_code.c?rev=370412&r1=370411&r2=370412&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/soap_fault_code.c (original)
+++ webservices/axis2/trunk/c/modules/xml/soap/soap_fault_code.c Wed Jan 18 23:53:19 2006
@@ -18,6 +18,7 @@
#include <axis2_soap_fault_sub_code.h>
#include <axis2_soap_fault_value.h>
#include <axis2_soap_utils.h>
+ #include <axis2_soap_builder.h>
/***************** impl struct ***********************************************/
@@ -36,6 +37,8 @@
axis2_soap_fault_value_t *value;
axis2_soap_fault_t *parent;
+
+ axis2_soap_builder_t *soap_builder;
}axis2_soap_fault_code_impl_t;
@@ -85,6 +88,11 @@
axis2_soap_fault_code_get_soap_version(axis2_soap_fault_code_t *fault_code,
axis2_env_t **env);
+axis2_status_t AXIS2_CALL
+axis2_soap_fault_code_set_builder(axis2_soap_fault_code_t *fault_code,
+ axis2_env_t **env,
+ axis2_soap_builder_t *soap_builder);
+
/********************* function implementation ********************************/
AXIS2_DECLARE(axis2_soap_fault_code_t *)
@@ -145,7 +153,9 @@
axis2_soap_fault_code_get_soap_version;
fault_code_impl->fault_code.ops->set_soap_version =
- axis2_soap_fault_code_set_soap_version;
+ axis2_soap_fault_code_set_soap_version;
+ fault_code_impl->fault_code.ops->set_builder =
+ axis2_soap_fault_code_set_builder;
return &(fault_code_impl->fault_code);
}
@@ -400,7 +410,19 @@
{
AXIS2_FUNC_PARAM_CHECK(fault_code, env, AXIS2_FAILURE);
return AXIS2_INTF_TO_IMPL(fault_code)->soap_version;
-}
+}
+
+axis2_status_t AXIS2_CALL
+axis2_soap_fault_code_set_builder(axis2_soap_fault_code_t *fault_code,
+ axis2_env_t **env,
+ axis2_soap_builder_t *soap_builder)
+{
+ axis2_soap_fault_code_impl_t *fault_code_impl = NULL;
+ AXIS2_FUNC_PARAM_CHECK(fault_code, env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK((*env)->error, soap_builder, AXIS2_FAILURE);
+ fault_code_impl->soap_builder = soap_builder;
+ return AXIS2_SUCCESS;
+}
/*********************** soap11 create function *******************************/
AXIS2_DECLARE(axis2_soap_fault_code_t *)
@@ -423,3 +445,5 @@
return axis2_soap_fault_code_create_with_parent(env, fault, AXIS2_TRUE);
}
+
+
Modified: webservices/axis2/trunk/c/modules/xml/soap/soap_fault_detail.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/soap_fault_detail.c?rev=370412&r1=370411&r2=370412&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/soap_fault_detail.c (original)
+++ webservices/axis2/trunk/c/modules/xml/soap/soap_fault_detail.c Wed Jan 18 23:53:19 2006
@@ -32,6 +32,8 @@
int soap_version;
axis2_soap_fault_t *parent;
+
+
}axis2_soap_fault_detail_impl_t;
@@ -64,20 +66,22 @@
axis2_om_node_t* AXIS2_CALL
axis2_soap_fault_detail_get_base_node
- (axis2_soap_fault_detail_t *fault_code,
+ (axis2_soap_fault_detail_t *fault_detail,
axis2_env_t **env);
int AXIS2_CALL
axis2_soap_fault_detail_get_soap_version
- (axis2_soap_fault_detail_t *fault_node,
+ (axis2_soap_fault_detail_t *fault_detail,
axis2_env_t **env);
axis2_status_t AXIS2_CALL
axis2_soap_fault_detail_set_soap_version
- (axis2_soap_fault_detail_t *fault_node,
+ (axis2_soap_fault_detail_t *fault_detail,
axis2_env_t **env,
int soap_version);
+
+
/******************** function implementations ********************************/
AXIS2_DECLARE(axis2_soap_fault_detail_t *)
@@ -283,7 +287,10 @@
AXIS2_PARAM_CHECK((*env)->error, soap_version, AXIS2_FAILURE);
AXIS2_INTF_TO_IMPL(fault_detail)->soap_version = soap_version;
return AXIS2_SUCCESS;
-}
+}
+
+
+
/********************** soap11 ************************************************/
AXIS2_DECLARE(axis2_soap_fault_detail_t *)
Modified: webservices/axis2/trunk/c/modules/xml/soap/soap_fault_node.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/soap_fault_node.c?rev=370412&r1=370411&r2=370412&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/soap_fault_node.c (original)
+++ webservices/axis2/trunk/c/modules/xml/soap/soap_fault_node.c Wed Jan 18 23:53:19 2006
@@ -31,7 +31,7 @@
axis2_soap_fault_t *parent;
int soap_version;
-
+
}axis2_soap_fault_node_impl_t;
/******************* Macro ***************************************************/
Modified: webservices/axis2/trunk/c/modules/xml/soap/soap_fault_reason.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/soap_fault_reason.c?rev=370412&r1=370411&r2=370412&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/soap_fault_reason.c (original)
+++ webservices/axis2/trunk/c/modules/xml/soap/soap_fault_reason.c Wed Jan 18 23:53:19 2006
@@ -19,6 +19,7 @@
#include <axis2_om_element.h>
#include <axis2_soap_fault_text.h>
#include <axis2_soap_utils.h>
+#include <axis2_soap_builder.h>
/*************************** impl struct **************************************/
@@ -33,6 +34,8 @@
axis2_soap_fault_t *parent;
axis2_soap_fault_text_t *text;
+
+ axis2_soap_builder_t *soap_builder;
int soap_version;
Modified: webservices/axis2/trunk/c/modules/xml/soap/soap_fault_role.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/soap_fault_role.c?rev=370412&r1=370411&r2=370412&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/soap_fault_role.c (original)
+++ webservices/axis2/trunk/c/modules/xml/soap/soap_fault_role.c Wed Jan 18 23:53:19 2006
@@ -16,6 +16,7 @@
#include <axis2_soap_fault_role.h>
#include <axis2_soap_fault.h>
+ #include <axis2_soap_builder.h>
/***************************** impl struct **********************************/
@@ -30,6 +31,8 @@
axis2_om_node_t *om_ele_node;
axis2_om_element_t *om_ele;
+
+ axis2_soap_builder_t *soap_builder;
}axis2_soap_fault_role_impl_t;
Modified: webservices/axis2/trunk/c/modules/xml/soap/soap_header.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/soap_header.c?rev=370412&r1=370411&r2=370412&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/soap_header.c (original)
+++ webservices/axis2/trunk/c/modules/xml/soap/soap_header.c Wed Jan 18 23:53:19 2006
@@ -19,6 +19,7 @@
#include <axis2_soap_header_block.h>
#include <axis2_hash.h>
#include <axis2_soap.h>
+ #include <axis2_soap_builder.h>
#include <stdio.h>
/******************* impl struct *********************************************/
@@ -37,6 +38,8 @@
int hbnumber;
+ axis2_soap_builder_t *soap_builder;
+
}axis2_soap_header_impl_t;
/****************** Macro ****************************************************/
@@ -92,7 +95,13 @@
axis2_status_t AXIS2_CALL
axis2_soap_header_set_header_block(axis2_soap_header_t *header,
axis2_env_t **env,
- struct axis2_soap_header_block *header_block);
+ struct axis2_soap_header_block *header_block);
+
+axis2_status_t AXIS2_CALL
+axis2_soap_header_set_builder(axis2_soap_header_t *header,
+ axis2_env_t **env,
+ struct axis2_soap_builder *builder);
+
/*************** function implementations *************************************/
AXIS2_DECLARE(axis2_soap_header_t *)
@@ -145,6 +154,8 @@
axis2_soap_header_get_soap_version;
header_impl->soap_header.ops->set_header_block =
axis2_soap_header_set_header_block;
+ header_impl->soap_header.ops->set_builder =
+ axis2_soap_header_set_builder;
return &(header_impl->soap_header);
}
@@ -414,4 +425,16 @@
}
return AXIS2_SUCCESS;
-}
+}
+axis2_status_t AXIS2_CALL
+axis2_soap_header_set_builder(axis2_soap_header_t *header,
+ axis2_env_t **env,
+ struct axis2_soap_builder *builder)
+{
+ axis2_soap_header_impl_t *header_impl = NULL;
+ AXIS2_PARAM_CHECK((*env)->error, builder, AXIS2_FAILURE);
+ header_impl = AXIS2_INTF_TO_IMPL(header);
+ header_impl->soap_builder = builder;
+ return AXIS2_SUCCESS;
+}
+