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 da...@apache.org on 2005/11/21 04:19:52 UTC
svn commit: r345818 [1/3] - in /webservices/axis2/trunk/c: include/
modules/wsdl/src/
Author: damitha
Date: Sun Nov 20 19:19:08 2005
New Revision: 345818
URL: http://svn.apache.org/viewcvs?rev=345818&view=rev
Log:
wsdl dependancy work related to description is done, except addAllOperations
and some other few related stuff
Added:
webservices/axis2/trunk/c/include/axis2_transport_in_desc.h
webservices/axis2/trunk/c/include/axis2_transport_out_desc.h
webservices/axis2/trunk/c/include/axis2_wsdl_binding.h
webservices/axis2/trunk/c/include/axis2_wsdl_binding_msg_ref.h
webservices/axis2/trunk/c/include/axis2_wsdl_binding_operation.h
webservices/axis2/trunk/c/include/axis2_wsdl_endpoint.h
webservices/axis2/trunk/c/include/axis2_wsdl_fault_ref.h
webservices/axis2/trunk/c/include/axis2_wsdl_msg_ref.h
webservices/axis2/trunk/c/modules/wsdl/src/wsdl.h
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_binding.c
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_binding_msg_ref.c
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_binding_operation.c
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_endpoint.c
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_fault_ref.c
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_msg_ref.c
Modified:
webservices/axis2/trunk/c/include/axis2_core.h
webservices/axis2/trunk/c/include/axis2_engine_config.h
webservices/axis2/trunk/c/include/axis2_error.h
webservices/axis2/trunk/c/include/axis2_flow.h
webservices/axis2/trunk/c/include/axis2_flow_container.h
webservices/axis2/trunk/c/include/axis2_module_desc.h
webservices/axis2/trunk/c/include/axis2_msg_recv.h
webservices/axis2/trunk/c/include/axis2_operation.h
webservices/axis2/trunk/c/include/axis2_svc.h
webservices/axis2/trunk/c/include/axis2_svc_grp.h
webservices/axis2/trunk/c/include/axis2_wsdl_binding_fault.h
webservices/axis2/trunk/c/include/axis2_wsdl_component.h
webservices/axis2/trunk/c/include/axis2_wsdl_extensible_component.h
webservices/axis2/trunk/c/include/axis2_wsdl_feature.h
webservices/axis2/trunk/c/include/axis2_wsdl_interface.h
webservices/axis2/trunk/c/include/axis2_wsdl_operation.h
webservices/axis2/trunk/c/include/axis2_wsdl_property.h
webservices/axis2/trunk/c/include/axis2_wsdl_svc.h
webservices/axis2/trunk/c/modules/wsdl/src/Makefile.am
webservices/axis2/trunk/c/modules/wsdl/src/Makefile.in
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_binding_fault.c
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_component.c
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_extensible_component.c
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_feature.c
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_interface.c
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_operation.c
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_property.c
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_svc.c
Modified: webservices/axis2/trunk/c/include/axis2_core.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_core.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_core.h (original)
+++ webservices/axis2/trunk/c/include/axis2_core.h Sun Nov 20 19:19:08 2005
@@ -35,30 +35,7 @@
#ifdef __cplusplus
extern "C"
{
-#endif
-
-/************************ Message exchange patterns ***************************/
-
-/* Default message excange pattern */
-#define MEP_URI_IN_OUT "http://www.w3.org/2004/08/wsdl/in-out"
-
-#define MEP_URI_IN_OPTIONAL_OUT "http://www.w3.org/2004/08/wsdl/in-opt-out"
-
-#define MEP_URI_IN_ONLY "http://www.w3.org/2004/08/wsdl/in-only"
-
-#define MEP_URI_ROBUST_IN_ONLY "http://www.w3.org/2004/08/wsdl/robust-in-only"
-
-#define MEP_URI_IN_OPTIONAL_OUT "http://www.w3.org/2004/08/wsdl/in-opt-out"
-
-#define MEP_URI_OUT_ONLY "http://www.w3.org/2004/08/wsdl/out-only"
-
-#define MEP_URI_ROBUST_OUT_ONLY "http://www.w3.org/2004/08/wsdl/robust-out-only"
-
-#define MEP_URI_OUT_IN "http://www.w3.org/2004/08/wsdl/out-in"
-
-#define MEP_URI_OUT_OPTIONAL_IN "http://www.w3.org/2004/08/wsdl/out-opt-in"
-
-/************************ End of message exchange patters *********************/
+#endif
#define SERVICE_NAME_SPLIT_CHAR ":"
Modified: webservices/axis2/trunk/c/include/axis2_engine_config.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_engine_config.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_engine_config.h (original)
+++ webservices/axis2/trunk/c/include/axis2_engine_config.h Sun Nov 20 19:19:08 2005
@@ -111,7 +111,7 @@
/************************* Start of function macros ***************************/
#define AXIS2_ENGINE_CONFIG_FREE(engine_config, env) \
- (engine_config->ops->free(engine_config, env)
+ (engine_config->ops->free(engine_config, env))
#define AXIS2_ENGINE_CONFIG_ADD_SVC_GRP(engine_config, env, svc_grp) \
(engine_config->ops->add_svc_grp (engine_config, env, svc_grp))
@@ -138,7 +138,7 @@
(engine_config->ops->get_params(engine_config , env))
#define AXIS2_ENGINE_CONFIG_IS_PARAM_LOCKED(engine_config, env, param_name) \
- (engine_config->ops->is_parameter_locked(engine_config, env, param_name))
+ (engine_config->ops->is_param_locked(engine_config, env, param_name))
/************************* End of function macros *****************************/
Modified: webservices/axis2/trunk/c/include/axis2_error.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_error.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_error.h (original)
+++ webservices/axis2/trunk/c/include/axis2_error.h Sun Nov 20 19:19:08 2005
@@ -163,6 +163,8 @@
AXIS2_ERROR_INVALID_STATE_OPERATION,
/** Service accessed has invalid state */
AXIS2_ERROR_INVALID_STATE_SVC,
+ /** Wsdl Service accessed has invalid state */
+ AXIS2_ERROR_INVALID_STATE_WSDL_SVC,
/** Service group accessed has invalid state */
AXIS2_ERROR_INVALID_STATE_SVC_GRP,
/** Wsdl operation accessed has invalid state */
@@ -186,7 +188,11 @@
/** Invalid handler state */
AXIS2_ERROR_INVALID_HANDLER_STATE,
/** No such element */
- AXIS2_ERROR_NO_SUCH_ELEMENT
+ AXIS2_ERROR_NO_SUCH_ELEMENT,
+ /** Could not Map the MEP URI to a axis MEP constant value */
+ AXIS2_ERROR_COULD_NOT_MAP_MEP_URI_TO_MEP_CONSTANT,
+ /** module has alredy engaged to the operation operation terminated !!! */
+ AXIS2_ERROR_MODULE_ALREADY_ENGAGED_TO_OPERATION
};
/** @} */
Modified: webservices/axis2/trunk/c/include/axis2_flow.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_flow.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_flow.h (original)
+++ webservices/axis2/trunk/c/include/axis2_flow.h Sun Nov 20 19:19:08 2005
@@ -37,8 +37,8 @@
{
#endif
-typedef struct axis2_flow_ops_s axis2_flow_ops_t;
-typedef struct axis2_flow_s axis2_flow_t;
+typedef struct axis2_flow_ops axis2_flow_ops_t;
+typedef struct axis2_flow axis2_flow_t;
/** @defgroup axis2_flow Flow
@@ -50,7 +50,7 @@
* @brief Flow operations struct
* Encapsulator struct for operations of axis2_flow
*/
-struct axis2_flow_ops_s
+struct axis2_flow_ops
{
/** Deallocate memory
* @return status code
@@ -87,7 +87,7 @@
* @brief Flow struct
* Flow
*/
-struct axis2_flow_s
+struct axis2_flow
{
axis2_flow_ops_t *ops;
};
Modified: webservices/axis2/trunk/c/include/axis2_flow_container.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_flow_container.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_flow_container.h (original)
+++ webservices/axis2/trunk/c/include/axis2_flow_container.h Sun Nov 20 19:19:08 2005
@@ -37,8 +37,8 @@
{
#endif
-typedef struct axis2_flow_container_ops_s axis2_flow_container_ops_t;
-typedef struct axis2_flow_container_s axis2_flow_container_t;
+typedef struct axis2_flow_container_ops axis2_flow_container_ops_t;
+typedef struct axis2_flow_container axis2_flow_container_t;
/** @defgroup axis2_flow_container Flow Container
@@ -50,7 +50,7 @@
* @brief Flow Container operations struct
* Encapsulator struct for operations of axis2_flow_container
*/
-struct axis2_flow_container_ops_s
+struct axis2_flow_container_ops
{
/** Deallocate memory
* @return status code
@@ -129,7 +129,7 @@
* @brief Flow container struct
* Container for flows
*/
-struct axis2_flow_container_s
+struct axis2_flow_container
{
axis2_flow_container_ops_t *ops;
};
Modified: webservices/axis2/trunk/c/include/axis2_module_desc.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_module_desc.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_module_desc.h (original)
+++ webservices/axis2/trunk/c/include/axis2_module_desc.h Sun Nov 20 19:19:08 2005
@@ -48,9 +48,10 @@
extern "C"
{
#endif
-
-typedef struct axis2_module_desc_ops_s axis2_module_desc_ops_t;
-typedef struct axis2_module_desc_s axis2_module_desc_t;
+
+struct axis2_operation;
+typedef struct axis2_module_desc_ops axis2_module_desc_ops_t;
+typedef struct axis2_module_desc axis2_module_desc_t;
/** @defgroup axis2_module_desc Module Description
@@ -62,18 +63,167 @@
* @brief Module Description operations struct
* Encapsulator struct for operations of axis2_module_desc
*/
-struct axis2_module_desc_ops_s
+struct axis2_module_desc_ops
{
+ axis2_status_t (AXIS2_CALL *
+ free) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env);
+
+ /**
+ * Get fault out flow
+ * @return in flow
+ */
+ axis2_flow_t *(AXIS2_CALL *
+ get_in_flow) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env);
+
+ /**
+ * Set in flow
+ * @param in_flow in flow
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_in_flow) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env,
+ axis2_flow_t *in_flow);
+
+ /**
+ * Get out flow
+ * @return out flow
+ */
+ axis2_flow_t *(AXIS2_CALL *
+ get_out_flow) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env);
+
+ /**
+ * Set out flow
+ * @param out_flow out flow
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_out_flow) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env,
+ axis2_flow_t *out_flow);
+
+ /**
+ * Get fault in flow
+ * @return fault in flow
+ */
+ axis2_flow_t * (AXIS2_CALL *
+ get_fault_in_flow) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env);
+
+ /**
+ * set fault in flow
+ * @param falut_in_flow falut in flow
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_fault_in_flow) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env,
+ axis2_flow_t *falut_in_flow);
+
+ /**
+ * Get fault out flow
+ * @return fault out flow
+ */
+ axis2_flow_t *(AXIS2_CALL *
+ get_fault_out_flow) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env);
+
+ /**
+ * Set fault out flow
+ * @param fault_out_flow fault out flow
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_fault_out_flow) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env,
+ axis2_flow_t *fault_out_flow);
+
+ /**
+ * @return
+ */
+ axis2_qname_t * (AXIS2_CALL *
+ get_name ) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env);
+
+ /**
+ * @param name
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_name ) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env,
+ axis2_qname_t *qname);
+
+ axis2_status_t (AXIS2_CALL *
+ add_operation ) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env,
+ struct axis2_operation *operation);
+
+ axis2_hash_t * (AXIS2_CALL *
+ get_operations ) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env);
+
+ axis2_engine_config_t * (AXIS2_CALL *
+ get_parent ) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_parent ) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env,
+ axis2_engine_config_t *parent);
+
+ /**
+ * Add parameter
+ * @param param
+ */
+ axis2_status_t (AXIS2_CALL *
+ add_param) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env,
+ axis2_param_t *param);
+
+ /**
+ * @param name
+ * @return parameter
+ */
+ axis2_param_t * (AXIS2_CALL *
+ get_param) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env,
+ const axis2_char_t *name);
+
+ axis2_array_list_t * (AXIS2_CALL *
+ get_params) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env);
+
+ /**
+ * To check whether a given paramter is locked
+ * @param param_name
+ * @return whether parameter is locked
+ */
+ axis2_bool_t (AXIS2_CALL *
+ is_param_locked ) (axis2_module_desc_t *module_desc,
+ axis2_env_t **env,
+ const axis2_char_t *param_name);
+
};
/**
* @brief Module Description struct
* Axis2 Module Description
+ * <p>This holds the information about a Module. </p>
+ * <ol>
+ * <li>parameters<li>
+ * <li>handlers<li>
+ * <ol>
+ * <p>Handler are registered once they are avlible but they avalibe to all
+ * services if axis2.xml has a module ref="." or avalible to a single service if
+ * services.xml have module ref=".."</p>
*/
-struct axis2_module_desc_s
+struct axis2_module_desc
{
axis2_module_desc_ops_t *ops;
+ axis2_flow_container_t *flow_container;
+
+ axis2_param_container_t *params;
+
};
/** create Module Description struct
@@ -90,6 +240,66 @@
axis2_qname_t *qname);
+/************************* Start of function macros ***************************/
+
+#define AXIS2_MODULE_DESC_FREE(module_desc, env) \
+ (module_desc->ops->free(module_desc, env))
+
+#define AXIS2_MODULE_DESC_GET_IN_FLOW(module_desc, env, svc_grp) \
+ (module_desc->ops->get_in_flow (module_desc, env, svc_grp))
+
+#define AXIS2_MODULE_DESC_SET_IN_FLOW(module_desc, env, svc_grp_name) \
+ (module_desc->ops->set_in_flow (module_desc, env, svc_grp_name))
+
+#define AXIS2_MODULE_DESC_GET_OUT_FLOW(module_desc, env, svc) \
+ (module_desc->ops->get_out_flow (module_desc, env, svc))
+
+#define AXIS2_MODULE_DESC_SET_OUT_FLOW(module_desc, env, svc_name) \
+ (module_desc->ops->set_out_flow (module_desc, env, svc_name))
+
+#define AXIS2_MODULE_DESC_GET_FAULT_IN_FLOW(module_desc, env, svc_name) \
+ (module_desc->ops->get_fault_in_flow (module_desc, env, svc_name))
+
+#define AXIS2_MODULE_DESC_SET_FAULT_IN_FLOW(module_desc, env, param) \
+ (module_desc->ops->set_fault_in_flow(module_desc , env, param))
+
+#define AXIS2_MODULE_DESC_GET_FAULT_OUT_FLOW(module_desc, env, name) \
+ (module_desc->ops->get_fault_out_flow(module_desc , env, name))
+
+#define AXIS2_MODULE_DESC_SET_FAULT_OUT_FLOW(module_desc, env) \
+ (module_desc->ops->set_fault_out_flow(module_desc , env))
+
+#define AXIS2_MODULE_DESC_GET_NAME(module_desc, env) \
+ (module_desc->ops->get_name(module_desc, env))
+
+#define AXIS2_MODULE_DESC_SET_NAME(module_desc, env, param_name) \
+ (module_desc->ops->set_name(module_desc, env, param_name))
+
+#define AXIS2_MODULE_DESC_ADD_OPERATION(module_desc, env, param_name) \
+ (module_desc->ops->add_operation(module_desc, env, param_name))
+
+#define AXIS2_MODULE_DESC_GET_OPERATIONS(module_desc, env, param_name) \
+ (module_desc->ops->get_operations(module_desc, env, param_name))
+
+#define AXIS2_MODULE_DESC_GET_PARENT(module_desc, env, param_name) \
+ (module_desc->ops->get_parent(module_desc, env, param_name))
+
+#define AXIS2_MODULE_DESC_SET_PARENT(module_desc, env, param_name) \
+ (module_desc->ops->set_parent(module_desc, env, param_name))
+
+#define AXIS2_MODULE_DESC_ADD_PARAM(module_desc, env, param_name) \
+ (module_desc->ops->add_param(module_desc, env, param_name))
+
+#define AXIS2_MODULE_DESC_GET_PARAM(module_desc, env, param_name) \
+ (module_desc->ops->get_param(module_desc, env, param_name))
+
+#define AXIS2_MODULE_DESC_GET_PARAMS(module_desc, env, param_name) \
+ (module_desc->ops->get_params(module_desc, env, param_name))
+
+#define AXIS2_MODULE_DESC_IS_PARAM_LOCKED(module_desc, env, param_name) \
+ (module_desc->ops->is_param_locked(module_desc, env, param_name))
+
+/************************* End of function macros *****************************/
/** @} */
#ifdef __cplusplus
Modified: webservices/axis2/trunk/c/include/axis2_msg_recv.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_msg_recv.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_msg_recv.h (original)
+++ webservices/axis2/trunk/c/include/axis2_msg_recv.h Sun Nov 20 19:19:08 2005
@@ -36,14 +36,14 @@
*/
struct axis2_msg_ctx_s;
-typedef struct axis2_msg_recv_s axis2_msg_recv_t;
-typedef struct axis2_msg_recv_ops_s axis2_msg_recv_ops_t;
+typedef struct axis2_msg_recv axis2_msg_recv_t;
+typedef struct axis2_msg_recv_ops axis2_msg_recv_ops_t;
/**
* @brief Message Receiver operations struct
* Encapsulator struct for operations of axis2_msg_recv
*/
-struct axis2_msg_recv_ops_s
+struct axis2_msg_recv_ops
{
/**
* Deallocate memory
@@ -61,7 +61,7 @@
* @brief Message Receiver struct
* Axis2 Message Receiver
*/
-struct axis2_msg_recv_s
+struct axis2_msg_recv
{
axis2_msg_recv_ops_t *ops;
};
Modified: webservices/axis2/trunk/c/include/axis2_operation.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_operation.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_operation.h (original)
+++ webservices/axis2/trunk/c/include/axis2_operation.h Sun Nov 20 19:19:08 2005
@@ -28,7 +28,11 @@
#include <axis2_svc.h>
#include <axis2_msg_recv.h>
#include <axis2_array_list.h>
-#include "description.h"
+#include <axis2_module_desc.h>
+#include <axis2_wsdl_msg_ref.h>
+#include <wsdl.h>
+#include <description.h>
+
#ifdef __cplusplus
extern "C"
@@ -40,8 +44,12 @@
* @{
*/
+struct axis2_wsdl_operation;
struct axis2_svc;
struct axis2_msg_recv;
+struct axis2_param_container;
+struct axis2_module_desc;
+struct axis2_operation;
typedef struct axis2_operation_ops axis2_operation_ops_t;
typedef struct axis2_operation axis2_operation_t;
@@ -115,27 +123,6 @@
struct axis2_msg_recv *(AXIS2_CALL *get_msg_recv) (axis2_operation_t *operation,
axis2_env_t **env);
-
- axis2_hash_t * (AXIS2_CALL *get_component_properties) (
- axis2_operation_t *operation,
- axis2_env_t **env);
-
- axis2_status_t (AXIS2_CALL *set_component_properties) (
- axis2_operation_t *operation,
- axis2_env_t **env,
- axis2_hash_t *properties);
-
- axis2_wsdl_component_t * (
- AXIS2_CALL *get_component_property) (
- axis2_operation_t *operation,
- axis2_env_t **env,
- const axis2_char_t *key);
-
- axis2_status_t (AXIS2_CALL *set_component_property) (
- axis2_operation_t *operation,
- axis2_env_t **env,
- const void *key,
- void *value);
axis2_char_t *(AXIS2_CALL *get_style) (axis2_operation_t *operation,
axis2_env_t **env);
@@ -143,6 +130,188 @@
axis2_status_t (AXIS2_CALL *set_style) (axis2_operation_t *operation,
axis2_env_t **env,
axis2_char_t *style);
+
+ /**
+ * To ebgage a module it is reuired to use this method
+ *
+ * @param moduleref
+ * @throws org.apache.axis2.AxisFault
+ */
+ axis2_status_t (AXIS2_CALL *
+ engage_module) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_module_desc_t *moduleref);
+
+ axis2_status_t (AXIS2_CALL *
+ add_to_engage_module_list) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_module_desc_t *module_name);
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.axis2.description.AxisService#getEngadgedModules()
+ */
+
+ /**
+ * Method getEngadgedModules
+ *
+ */
+ axis2_array_list_t *(AXIS2_CALL *
+ get_modules) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+ /**
+ * This method will simply map the String URI of the Message exchange
+ * pattern to a integer. Further in the first lookup it will cash the looked
+ * up value so that the subsequent method calls will be extremely efficient.
+ *
+ */
+ int (AXIS2_CALL *
+ get_axis_specific_MEP_constant) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+ axis2_array_list_t *(AXIS2_CALL *
+ get_phases_in_fault_flow) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+
+ axis2_array_list_t *(AXIS2_CALL *
+ get_phases_out_fault_flow) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+
+ axis2_array_list_t * (AXIS2_CALL *
+ get_phases_out_flow) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+
+ axis2_array_list_t *(AXIS2_CALL *
+ get_remaining_phases_in_flow) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+ /**
+ * @param list
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_phases_in_fault_flow) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_array_list_t *list);
+
+ /**
+ * @param list
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_phases_out_fault_flow) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_array_list_t *list);
+
+ /**
+ * @param list
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_phases_out_flow) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_array_list_t *list);
+
+ /**
+ * @param list
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_remaining_phases_in_flow) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_array_list_t *list);
+
+ axis2_status_t (AXIS2_CALL *
+ add_module) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_qname_t *module_name);
+
+ axis2_array_list_t *(AXIS2_CALL *
+ get_module_refs) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+ axis2_linked_list_t *(AXIS2_CALL *
+ get_infaults) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_infaults) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_linked_list_t *infaults);
+
+ struct axis2_wsdl_msg_ref *(AXIS2_CALL *
+ get_input_msg) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_input_msg) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ struct axis2_wsdl_msg_ref *input_msg);
+
+ axis2_linked_list_t *(AXIS2_CALL *
+ get_outfaults) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_outfaults) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_linked_list_t *outfaults);
+
+ struct axis2_wsdl_msg_ref *(AXIS2_CALL *
+ get_output_msg) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_output_msg) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ struct axis2_wsdl_msg_ref *output_msg);
+
+ axis2_bool_t (AXIS2_CALL *
+ is_safe) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_safety) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_bool_t safe);
+
+ axis2_char_t *(AXIS2_CALL *
+ get_target_namespace) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ add_infault) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_wsdl_fault_ref_t *infault);
+
+ axis2_status_t (AXIS2_CALL *
+ add_outfault) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_wsdl_fault_ref_t *outfault);
+
+ axis2_status_t (AXIS2_CALL *
+ add_feature) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_wsdl_feature_t *feature);
+
+ axis2_linked_list_t *(AXIS2_CALL *
+ get_features) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ add_property) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_wsdl_property_t *wsdl_property);
+
+ axis2_linked_list_t *(AXIS2_CALL *
+ get_Properties) (axis2_operation_t *operation,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_wsdl_opeartion) (axis2_operation_t *operation,
+ axis2_env_t **env,
+ axis2_wsdl_operation_t *wsdl_operation);
};
/**
@@ -152,6 +321,8 @@
AXIS2_DECLARE_DATA struct axis2_operation
{
axis2_operation_ops_t *ops;
+ struct axis2_wsdl_operation *wsdl_operation;
+ struct axis2_param_container *param_container;
};
/**
@@ -175,7 +346,7 @@
* @param wsdl_operation wsdl operation
* @return pointer to newly created operation
*/
-axis2_operation_t * AXIS2_CALL
+AXIS2_DECLARE(axis2_operation_t *)
axis2_operation_create_with_wsdl_operation (axis2_env_t **env,
axis2_wsdl_operation_t *wsdl_operation);
@@ -221,24 +392,96 @@
#define AXIS2_OPERATION_GET_MSG_EXCHANGE_PATTERN(operation, env) \
((operation->ops)->get_msg_exchange_pattern (operation, env))
+
+#define AXIS2_OPERATION_GET_STYLE(operation, env) \
+ ((operation->ops)->get_style (operation, env))
+
+#define AXIS2_OPERATION_SET_STYLE(operation, env, style) \
+ ((operation->ops)->set_style (operation, env, style))
-#define AXIS2_OPERATION_GET_COMPONENT_PROPERTIES(operation, env) \
- ((operation->ops)->get_component_properties (operation, env))
+#define AXIS2_OPERATION_ENGAGE_MODULE(operation, env, moduleref) \
+ ((operation->ops)->engage_module (operation, env, moduleref))
+
+#define AXIS2_OPERATION_ADD_TO_ENGAGE_MODULE_LIST(operation, env, module_name) \
+ ((operation->ops)->add_to_engage_module_list (operation, env, module_name))
-#define AXIS2_OPERATION_SET_COMPONENT_PROPERTIES(operation, env, properties) \
- ((operation->ops)->set_component_properties (operation, env, properties))
+#define AXIS2_OPERATION_GET_MODULES(operation, env) \
+ ((operation->ops)->get_modules (operation, env))
-#define AXIS2_OPERATION_GET_COMPONENT_PROPERTY(operation, env, key) \
- ((operation->ops)->get_component_property (operation, env, key))
+#define AXIS2_OPERATION_GET_AXIS_SPECIFIC_MEP_CONSTANT(operation, env) \
+ ((operation->ops)->get_axis_specific_MEP_constant (operation, env))
-#define AXIS2_OPERATION_SET_COMPONENT_PROPERTY(operation, env, key, value) \
- ((operation->ops)->set_component_property (operation, env, key, value))
+#define AXIS2_OPERATION_GET_PHASES_IN_FAULT_FLOW(operation, env) \
+ ((operation->ops)->get_phases_in_fault_flow (operation, env))
-#define AXIS2_OPERATION_GET_STYLE(operation, env) \
- ((operation->ops)->get_style (operation, env))
+#define AXIS2_OPERATION_GET_PHASES_OUT_FAULT_FLOW(operation, env) \
+ ((operation->ops)->get_phases_out_fault_flow (operation, env))
+
+#define AXIS2_OPERATION_GET_PHASES_OUT_FLOW(operation, env) \
+ ((operation->ops)->get_phases_out_flow (operation, env))
-#define AXIS2_OPERATION_SET_STYLE(operation, env, style) \
- ((operation->ops)->set_style (operation, env, style))
+ #define AXIS2_OPERATION_SET_REMAINING_PHASES(operation, env) \
+ ((operation->ops)->set_remaining_phases_in_flow (operation, env))
+
+#define AXIS2_OPERATION_ADD_MODULE(operation, env, module_name) \
+ ((operation->ops)->add_module (operation, env, module_name))
+
+#define AXIS2_OPERATION_GET_MODULE_REFS(operation, env) \
+ ((operation->ops)->get_module_refs (operation, env))
+
+#define AXIS2_OPERATION_GET_INFAULTS(operation, env) \
+ ((operation->ops)->get_infaults (operation, env))
+
+#define AXIS2_OPERATION_SET_INFAULTS(operation, env) \
+ ((operation->ops)->set_infaults (operation, env, infaults))
+
+#define AXIS2_OPERATION_GET_INPUT_MSG(operation, env) \
+ ((operation->ops)->get_input_msg (operation, env))
+
+#define AXIS2_OPERATION_SET_INPUT_MSG(operation, env) \
+ ((operation->ops)->set_input_msg (operation, env, input_msg))
+
+#define AXIS2_OPERATION_GET_OUTFAULTS(operation, env) \
+ ((operation->ops)->get_outfaults (operation, env))
+
+#define AXIS2_OPERATION_SET_OUTFAULTS(operation, env) \
+ ((operation->ops)->set_outfaults (operation, env, outfaults))
+
+#define AXIS2_OPERATION_GET_OUTPUT_MSG(operation, env) \
+ ((operation->ops)->get_output_msg (operation, env))
+
+#define AXIS2_OPERATION_SET_OUTPUT_MSG(operation, env) \
+ ((operation->ops)->set_output_msg (operation, env, output_msg))
+
+#define AXIS2_OPERATION_IS_SAFE(operation, env) \
+ ((operation->ops)->is_safe (operation, env))
+
+#define AXIS2_OPERATION_SET_SAFETY(operation, env, safe) \
+ ((operation->ops)->set_safety (operation, env, safe))
+
+#define AXIS2_OPERATION_GET_TARGET_NAMESPACE(operation, env) \
+ ((operation->ops)->get_target_namespace (operation, env))
+
+#define AXIS2_OPERATION_ADD_INFAULT(operation, env, infault) \
+ ((operation->ops)->add_infault (operation, env, infault))
+
+#define AXIS2_OPERATION_ADD_OUTFAULT(operation, env, outfault) \
+ ((operation->ops)->add_outfault (operation, env, outfault))
+
+#define AXIS2_OPERATION_ADD_FEATURE(operation, env, feature) \
+ ((operation->ops)->add_feature (operation, env, feature))
+
+#define AXIS2_OPERATION_GET_FEATURES(operation, env) \
+ ((operation->ops)->get_features(operation, env))
+
+#define AXIS2_OPERATION_ADD_PROPERTY(operation, env, wsdl_property) \
+ ((operation->ops)->add_property (operation, env, wsdl_property))
+
+#define AXIS2_OPERATION_GET_PROPERTIES(operation, env) \
+ ((operation->ops)->get_properties (operation, env, properties))
+
+#define AXIS2_OPERATION_SET_WSDL_OPERATION(operation, env) \
+ ((operation->ops)->set_wsdl_opeartion (operation, env))
/************************** End of function macros ****************************/
Modified: webservices/axis2/trunk/c/include/axis2_svc.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_svc.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_svc.h (original)
+++ webservices/axis2/trunk/c/include/axis2_svc.h Sun Nov 20 19:19:08 2005
@@ -24,6 +24,7 @@
#include <axis2_core.h>
#include <axis2_param_container.h>
+#include <axis2_flow_container.h>
#include <axis2_wsdl_svc.h>
#include <axis2_operation.h>
#include <axis2_svc_grp.h>
@@ -42,7 +43,11 @@
*/
struct axis2_svc_grp;
-struct axis2_operation;
+struct axis2_operation;
+struct axis2_flow_container;
+struct axis2_param_container;
+struct axis2_wsdl_svc;
+struct axis2_wsdl_interface;
typedef struct axis2_svc_ops axis2_svc_ops_t;
typedef struct axis2_svc axis2_svc_t;
@@ -99,26 +104,12 @@
axis2_bool_t (AXIS2_CALL *is_param_locked) (axis2_svc_t *svc,
axis2_env_t **env,
const axis2_char_t *param_name);
+
+ axis2_status_t (AXIS2_CALL *
+ set_svc_interface) (axis2_svc_t *svc,
+ axis2_env_t **env,
+ struct axis2_wsdl_interface *svc_interface);
- axis2_hash_t * (AXIS2_CALL *get_component_properties) (
- axis2_svc_t *svc,
- axis2_env_t **env);
-
- axis2_status_t (AXIS2_CALL *set_component_properties) (
- axis2_svc_t *svc,
- axis2_env_t **env,
- axis2_hash_t *properties);
-
- axis2_wsdl_component_t * (AXIS2_CALL *get_component_property) (
- axis2_svc_t *svc,
- axis2_env_t **env,
- const axis2_char_t *key);
-
- axis2_status_t (AXIS2_CALL *set_component_property) (
- axis2_svc_t *svc,
- axis2_env_t **env,
- const void *key,
- void *value);
};
/**
@@ -127,7 +118,10 @@
*/
struct axis2_svc
{
- axis2_svc_ops_t *ops;
+ axis2_svc_ops_t *ops;
+ struct axis2_param_container *param_container;
+ struct axis2_flow_container *flow_container;
+ struct axis2_wsdl_svc *wsdl_svc;
};
@@ -154,7 +148,7 @@
*/
axis2_svc_t * AXIS2_CALL
axis2_svc_create_with_wsdl_svc (axis2_env_t **env,
- axis2_wsdl_svc_t *wsdl_svc);
+ struct axis2_wsdl_svc *wsdl_svc);
/**************************** Start of function macros ************************/
@@ -188,18 +182,9 @@
#define AXIS2_SVC_IS_PARAM_LOCKED(svc, env, param_name) \
(svc->ops->is_param_locked(svc, env, param_name))
-
-#define AXIS2_SVC_GET_COMPONENT_PROPERTIES(svc, env) \
- ((svc->ops)->get_component_properties(svc, env))
-
-#define AXIS2_SVC_SET_COMPONENT_PROPERTIES(svc, env, properties) \
- ((svc->ops)->set_component_properties(svc, env, properties))
-
-#define AXIS2_SVC_GET_COMPONENT_PROPERTY(svc, env, key) \
- ((svc->ops)->get_component_property(svc, env, key))
-#define AXIS2_SVC_SET_COMPONENT_PROPERTY(svc, env, key, value) \
- ((svc->ops)->set_component_property(svc, env, key, value))
+#define AXIS2_SVC_SET_SVC_INTERFACE(svc, env, svc_interface) \
+ (svc->ops->set_svc_interface(svc, env, svc_interface))
/**************************** End of function macros **************************/
Modified: webservices/axis2/trunk/c/include/axis2_svc_grp.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_svc_grp.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_svc_grp.h (original)
+++ webservices/axis2/trunk/c/include/axis2_svc_grp.h Sun Nov 20 19:19:08 2005
@@ -37,14 +37,14 @@
*/
struct axis2_svc_s;
-typedef struct axis2_svc_grp_ops_s axis2_svc_grp_ops_t;
-typedef struct axis2_svc_grp_s axis2_svc_grp_t;
+typedef struct axis2_svc_grp_ops axis2_svc_grp_ops_t;
+typedef struct axis2_svc_grp axis2_svc_grp_t;
/**
* @brief Service group operations struct
* Encapsulator struct for operations of axis2_svc_grp
*/
-struct axis2_svc_grp_ops_s
+struct axis2_svc_grp_ops
{
/**
* Deallocate memory
@@ -109,7 +109,7 @@
* @brief Service group struct
* Axis2 Service group
*/
-struct axis2_svc_grp_s
+struct axis2_svc_grp
{
axis2_svc_grp_ops_t *ops;
Added: webservices/axis2/trunk/c/include/axis2_transport_in_desc.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_transport_in_desc.h?rev=345818&view=auto
==============================================================================
(empty)
Added: webservices/axis2/trunk/c/include/axis2_transport_out_desc.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_transport_out_desc.h?rev=345818&view=auto
==============================================================================
(empty)
Added: webservices/axis2/trunk/c/include/axis2_wsdl_binding.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl_binding.h?rev=345818&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_binding.h (added)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_binding.h Sun Nov 20 19:19:08 2005
@@ -0,0 +1,259 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2_WSDL_BINDING_H
+#define AXIS2_WSDL_BINDING_H
+
+/**
+ * @file axis2_wsdl_binding.h
+ * @brief Axis2 Wsdl binding interface
+ */
+
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+#include <axis2_hash.h>
+#include <axis2_wsdl_binding_operation.h>
+#include <axis2_wsdl_binding_fault.h>
+#include <axis2_qname.h>
+#include <axis2_wsdl_interface.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct axis2_wsdl_interface;
+struct axis2_wsdl_binding_operation;
+typedef struct axis2_wsdl_binding axis2_wsdl_binding_t;
+typedef struct axis2_wsdl_binding_ops axis2_wsdl_binding_ops_t;
+
+/** @defgroup axis2_wsdl_binding Wsdl Binding
+ * @ingroup axis2_wsdl
+ * @{
+ */
+
+/**
+ * @brief Wsdl Binding operations struct
+ * Encapsulator struct for operations of axis2_wsdl_binding
+ */
+AXIS2_DECLARE_DATA struct axis2_wsdl_binding_ops
+{
+ /** De-allocate memory
+ * @return status code
+ */
+ axis2_status_t (AXIS2_CALL *
+ free)(axis2_wsdl_binding_t *wsdl_binding,
+ axis2_env_t **env);
+
+ /**
+ * Method getBoundInterface
+ *
+ * @return WSDLInterface
+ */
+ struct axis2_wsdl_interface * (AXIS2_CALL *
+ get_bound_interface) (axis2_wsdl_binding_t *binding,
+ axis2_env_t **env);
+
+ /**
+ * Method setBoundInterface
+ *
+ * @param boundInterface
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_bound_interface) (axis2_wsdl_binding_t *binding,
+ axis2_env_t **env,
+ struct axis2_wsdl_interface *bound_interface);
+
+ /**
+ * Method getName
+ *
+ * @return QName
+ */
+ axis2_qname_t * (AXIS2_CALL *
+ get_name) (axis2_wsdl_binding_t *binding,
+ axis2_env_t **env);
+
+ /**
+ * Method setName
+ *
+ * @param name
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_name) (axis2_wsdl_binding_t *binding,
+ axis2_env_t **env,
+ axis2_qname_t *qname);
+
+ /**
+ * Method getTargetNameSpace
+ *
+ * @return String
+ */
+ axis2_char_t * (AXIS2_CALL *
+ get_target_namespace) (axis2_wsdl_binding_t *binding,
+ axis2_env_t **env);
+
+ /**
+ * Method getBindingFaults
+ *
+ * @return Hashmap
+ */
+ axis2_hash_t * (AXIS2_CALL *
+ get_binding_faults) (axis2_wsdl_binding_t *binding,
+ axis2_env_t **env);
+
+ /**
+ * Method setBindingFaults
+ *
+ * @param bindingFaults
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_binding_faults) (axis2_wsdl_binding_t *binding,
+ axis2_env_t **env,
+ axis2_hash_t *binding_faults);
+
+ /**
+ * Method getBindingOperations
+ *
+ * @return Hashmap
+ */
+ axis2_hash_t * (AXIS2_CALL *
+ get_binding_operations) (axis2_wsdl_binding_t *binding,
+ axis2_env_t **env);
+
+ /**
+ * Method setBindingOperations
+ *
+ * @param bindingOperations
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_binding_operations) (axis2_wsdl_binding_t *binding,
+ axis2_env_t **env,
+ axis2_hash_t *binding_operations);
+
+ /**
+ * Method addBindingOperation
+ *
+ * @param bindingOperation
+ */
+ axis2_status_t (AXIS2_CALL *
+ add_binding_operation) (
+ axis2_wsdl_binding_t *binding,
+ axis2_env_t **env,
+ struct axis2_wsdl_binding_operation *binding_operation);
+
+ /**
+ * Method getBindingOperation
+ *
+ * @param qName
+ * @return WSDLBindingOperation
+ */
+ struct axis2_wsdl_binding_operation *(AXIS2_CALL *
+ get_binding_operation) (axis2_wsdl_binding_t *binding,
+ axis2_env_t **env,
+ axis2_qname_t *qName);
+
+ /**
+ * Method addBindingFaults
+ *
+ * @param bindingFault
+ */
+ axis2_status_t (AXIS2_CALL *
+ add_binding_fault) (axis2_wsdl_binding_t *binding,
+ axis2_env_t **env,
+ axis2_wsdl_binding_fault_t *binding_fault);
+
+ /**
+ * Method getBindingFault
+ *
+ * @param ref
+ * @return WSDLBindingFault
+ */
+ axis2_wsdl_binding_fault_t * (AXIS2_CALL *
+ get_binding_fault) (axis2_wsdl_binding_t *binding,
+ axis2_env_t **env,
+ axis2_qname_t *ref);
+
+};
+
+/**
+ * @brief Wsdl binding struct
+ */
+AXIS2_DECLARE_DATA struct axis2_wsdl_binding
+{
+ axis2_wsdl_binding_ops_t *ops;
+ axis2_wsdl_extensible_component_t *extensible_component;
+};
+
+/**
+ * Creates wsdl binding struct
+ * @return pointer to newly created wsdl binding
+ */
+AXIS2_DECLARE(axis2_wsdl_binding_t *) axis2_wsdl_binding_create (axis2_env_t **env);
+
+/*************************** Function macros **********************************/
+
+#define AXIS2_WSDL_BINDING_FREE(wsdl_binding, env) \
+ ((wsdl_binding->ops)->free (wsdl_binding, env))
+
+#define AXIS2_WSDL_BINDING_GET_BOUND_INTERFACE(wsdl_binding, env) \
+ ((wsdl_binding->ops)->get_bound_interface (wsdl_binding, env))
+
+#define AXIS2_WSDL_BINDING_SET_BOUND_INTERFACE(wsdl_binding, env, interface) \
+ ((wsdl_binding->ops)->set_bound_interface (wsdl_binding, env, interface))
+
+#define AXIS2_WSDL_BINDING_GET_NAME(wsdl_binding, env) \
+ ((wsdl_binding->ops)->get_name (wsdl_binding, env))
+
+#define AXIS2_WSDL_BINDING_SET_NAME(wsdl_binding, env, qname) \
+ ((wsdl_binding->ops)->set_name (wsdl_binding, env, qname))
+
+#define AXIS2_WSDL_BINDING_GET_TARGET_NAMESPACE(wsdl_binding, env) \
+ ((wsdl_binding->ops)->get_target_namespace (wsdl_binding, env))
+
+#define AXIS2_WSDL_BINDING_GET_BINDING_FAULTS(wsdl_binding, env) \
+ ((wsdl_binding->ops)->get_binding_faults (wsdl_binding, env))
+
+#define AXIS2_WSDL_BINDING_SET_BINDING_FAULTS(wsdl_binding, env, faults) \
+ ((wsdl_binding->ops)->set_binding_faults (wsdl_binding, env, faults))
+
+#define AXIS2_WSDL_BINDING_GET_BINDING_OPERATIONS(wsdl_binding, env) \
+ ((wsdl_binding->ops)->get_binding_operations (wsdl_binding, env))
+
+#define AXIS2_WSDL_BINDING_SET_BINDING_OPERATIONS(wsdl_binding, env, operations) \
+ ((wsdl_binding->ops)->set_binding_operations (wsdl_binding, env, operations))
+
+#define AXIS2_WSDL_BINDING_ADD_BINDING_OPERATION(wsdl_binding, env, operation) \
+ ((wsdl_binding->ops)->add_binding_operation (wsdl_binding, env, operation))
+
+#define AXIS2_WSDL_BINDING_GET_BINDING_OPERATION(wsdl_binding, env) \
+ ((wsdl_binding->ops)->get_binding_operation (wsdl_binding, env))
+
+#define AXIS2_WSDL_BINDING_ADD_BINDING_FAULT(wsdl_binding, env, operation) \
+ ((wsdl_binding->ops)->add_binding_fault (wsdl_binding, env, fault))
+
+#define AXIS2_WSDL_BINDING_GET_BINDING_FAULT(wsdl_binding, env) \
+ ((wsdl_binding->ops)->get_binding_fault (wsdl_binding, env))
+/*************************** End of function macros ***************************/
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* AXIS2_WSDL_BINDING_H */
Modified: webservices/axis2/trunk/c/include/axis2_wsdl_binding_fault.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl_binding_fault.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_binding_fault.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_binding_fault.h Sun Nov 20 19:19:08 2005
@@ -28,14 +28,15 @@
#include <axis2_env.h>
#include <axis2_allocator.h>
#include <axis2_qname.h>
+#include <axis2_wsdl_extensible_component.h>
#ifdef __cplusplus
extern "C"
{
#endif
-typedef struct axis2_binding_fault_s axis2_binding_fault_t;
-typedef struct axis2_binding_fault_ops_s axis2_binding_fault_ops_t;
+typedef struct axis2_wsdl_binding_fault axis2_wsdl_binding_fault_t;
+typedef struct axis2_wsdl_binding_fault_ops axis2_wsdl_binding_fault_ops_t;
/** @defgroup axis2_binding_fault Wsdl Binding Fault
* @ingroup axis2_wsdl
@@ -46,13 +47,13 @@
* @brief Wsdl Binding Fault operations struct
* Encapsulator struct for operations of axis2_binding_fault
*/
-AXIS2_DECLARE_DATA struct axis2_binding_fault_ops_s
+AXIS2_DECLARE_DATA struct axis2_wsdl_binding_fault_ops
{
/** De-allocate memory
* @return status code
*/
axis2_status_t (AXIS2_CALL *
- free)(axis2_binding_fault_t *binding_fault,
+ free)(axis2_wsdl_binding_fault_t *binding_fault,
axis2_env_t **env);
/**
@@ -61,7 +62,7 @@
* @return
*/
axis2_qname_t *(AXIS2_CALL *
- get_ref) (axis2_binding_fault_t *binding_fault,
+ get_ref) (axis2_wsdl_binding_fault_t *binding_fault,
axis2_env_t **env);
/**
@@ -70,7 +71,7 @@
* @param ref
*/
axis2_status_t (AXIS2_CALL *
- set_ref)(axis2_binding_fault_t *binding_fault,
+ set_ref)(axis2_wsdl_binding_fault_t *binding_fault,
axis2_env_t **env,
axis2_qname_t *ref);
};
@@ -78,27 +79,28 @@
/**
* @brief Wsdl binding fault struct
*/
-AXIS2_DECLARE_DATA struct axis2_binding_fault_s
+AXIS2_DECLARE_DATA struct axis2_wsdl_binding_fault
{
- axis2_binding_fault_ops_t *ops;
+ axis2_wsdl_binding_fault_ops_t *ops;
+ axis2_wsdl_extensible_component_t *extensible_component;
};
/**
* Creates wsdl binding fault struct
* @return pointer to newly created wsdl binding fault
*/
-AXIS2_DECLARE(axis2_binding_fault_t *)
+AXIS2_DECLARE(axis2_wsdl_binding_fault_t *)
axis2_binding_fault_create (axis2_env_t **env);
/*************************** Function macros **********************************/
-#define AXIS2_BINDING_FAULT_FREE(binding_fault, env) \
+#define AXIS2_WSDL_BINDING_FAULT_FREE(binding_fault, env) \
((binding_fault->ops)->free (binding_fault, env))
-#define AXIS2_BINDING_FAULT_GET_REF(binding_fault, env) \
+#define AXIS2_WSDL_BINDING_FAULT_GET_REF(binding_fault, env) \
((binding_fault->ops)->get_ref (binding_fault, env))
-#define AXIS2_BINDING_FAULT_SET_REF(binding_fault, env, ref) \
+#define AXIS2_WSDL_BINDING_FAULT_SET_REF(binding_fault, env, ref) \
((binding_fault->ops)->set_ref (binding_fault, env, ref))
/*************************** End of function macros ***************************/
Added: webservices/axis2/trunk/c/include/axis2_wsdl_binding_msg_ref.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl_binding_msg_ref.h?rev=345818&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_binding_msg_ref.h (added)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_binding_msg_ref.h Sun Nov 20 19:19:08 2005
@@ -0,0 +1,138 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2_WSDL_BINDING_MSG_REF_H
+#define AXIS2_WSDL_BINDING_MSG_REF_H
+
+/**
+ * @file axis2_wsdl_binding_msg_ref.h
+ * @brief Axis2 Wsdl bindig message reference interface
+ */
+
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+#include <axis2_qname.h>
+#include <axis2_wsdl_extensible_component.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+typedef struct axis2_wsdl_binding_msg_ref axis2_wsdl_binding_msg_ref_t;
+typedef struct axis2_wsdl_binding_msg_ref_ops axis2_wsdl_binding_msg_ref_ops_t;
+
+/** @defgroup axis2_wsdl_binding_msg_ref Wsdl Binding Fault
+ * @ingroup axis2_wsdl
+ * @{
+ */
+
+/**
+ * @brief Wsdl Binding Message Reference operations struct
+ * Encapsulator struct for operations of axis2_wsdl_binding_msg_ref
+ */
+AXIS2_DECLARE_DATA struct axis2_wsdl_binding_msg_ref_ops
+{
+ /** De-allocate memory
+ * @return status code
+ */
+ axis2_status_t (AXIS2_CALL *
+ free)(axis2_wsdl_binding_msg_ref_t *wsdl_binding_msg_ref,
+ axis2_env_t **env);
+
+ /**
+ * Method getDirection
+ *
+ * @return
+ */
+ axis2_char_t * (AXIS2_CALL *
+ get_direction) (axis2_wsdl_binding_msg_ref_t *binding_msg_ref,
+ axis2_env_t **env);
+
+ /**
+ * Method setDirection
+ *
+ * @param direction
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_direction) (axis2_wsdl_binding_msg_ref_t *binding_msg_ref,
+ axis2_env_t **env,
+ axis2_char_t *direction);
+
+ /**
+ * Method getMessageLabel
+ *
+ * @return
+ */
+ axis2_char_t * (AXIS2_CALL *
+ get_msg_label) (axis2_wsdl_binding_msg_ref_t *binding_msg_ref,
+ axis2_env_t **env);
+
+ /**
+ * Method setMessageLabel
+ *
+ * @param messageLabel
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_msg_label) (axis2_wsdl_binding_msg_ref_t *binding_msg_ref,
+ axis2_env_t **env,
+ axis2_char_t *msg_label);
+};
+
+/**
+ * @brief Wsdl binding message reference struct
+ */
+AXIS2_DECLARE_DATA struct axis2_wsdl_binding_msg_ref
+{
+ axis2_wsdl_binding_msg_ref_ops_t *ops;
+ axis2_wsdl_extensible_component_t *extensible_component;
+};
+
+/**
+ * Creates wsdl binding message reference struct
+ * @return pointer to newly created wsdl binding message reference
+ */
+AXIS2_DECLARE(axis2_wsdl_binding_msg_ref_t *)
+axis2_wsdl_binding_msg_ref_create (axis2_env_t **env);
+
+/*************************** Function macros **********************************/
+
+#define AXIS2_WSDL_BINDING_MSG_REF_FREE(wsdl_binding_msg_ref, env) \
+ ((wsdl_binding_msg_ref->ops)->free (wsdl_binding_msg_ref, env))
+
+#define AXIS2_WSDL_BINDING_MSG_REF_GET_DIRECTION(wsdl_binding_msg_ref, env) \
+ ((wsdl_binding_msg_ref->ops)->get_direction (wsdl_binding_msg_ref, env))
+
+#define AXIS2_WSDL_BINDING_MSG_REF_SET_DIRECTION(wsdl_binding_msg_ref, env, ref) \
+ ((wsdl_binding_msg_ref->ops)->set_direction (wsdl_binding_msg_ref, env, direction))
+
+#define AXIS2_WSDL_BINDING_MSG_REF_GET_MSG_LABEL(wsdl_binding_msg_ref, env) \
+ ((wsdl_binding_msg_ref->ops)->get_msg_label (wsdl_binding_msg_ref, env))
+
+#define AXIS2_WSDL_BINDING_MSG_REF_SET_MSG_LABEL(wsdl_binding_msg_ref, env, ref) \
+ ((wsdl_binding_msg_ref->ops)->set_msg_label (wsdl_binding_msg_ref, env, msg_label))
+
+/*************************** End of function macros ***************************/
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* AXIS2_WSDL_BINDING_MSG_REF_H */
Added: webservices/axis2/trunk/c/include/axis2_wsdl_binding_operation.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl_binding_operation.h?rev=345818&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_binding_operation.h (added)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_binding_operation.h Sun Nov 20 19:19:08 2005
@@ -0,0 +1,237 @@
+#ifndef AXIS2_WSDL_BINDING_OPERATION_H
+#define AXIS2_WSDL_BINDING_OPERATION_H
+
+/**
+ * @file axis2_wsdl_binding_operation.h
+ * @brief axis2 wsdl binding_operation interface.
+ */
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+#include <axis2_string.h>
+#include <axis2_hash.h>
+#include <axis2_linked_list.h>
+#include <axis2_qname.h>
+#include <axis2_wsdl_extensible_component.h>
+#include <axis2_wsdl_binding_msg_ref.h>
+#include <axis2_wsdl_operation.h>
+#include <axis2_wsdl_binding_fault.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct axis2_wsdl_binding_msg_ref;
+typedef struct axis2_wsdl_binding_operation_ops axis2_wsdl_binding_operation_ops_t;
+typedef struct axis2_wsdl_binding_operation axis2_wsdl_binding_operation_t;
+
+/** @defgroup axis2_wsdl_binding_operation Wsdl Binding Operation
+ * @ingroup axis2_wsdl
+ * @{
+ */
+
+/**
+ * @brief Wsdl Binding Operation operations struct
+ * Encapsulator struct for operations of axis2_wsdl_binding_operation
+ */
+struct axis2_wsdl_binding_operation_ops
+{
+ /** Deallocate memory
+ * @return status code
+ */
+ axis2_status_t (AXIS2_CALL *
+ free) (axis2_wsdl_binding_operation_t *wsdl_binding_operation,
+ axis2_env_t **env);
+
+ /**
+ * Method getInput
+ *
+ * @return message reference
+ */
+ struct axis2_wsdl_binding_msg_ref * (AXIS2_CALL *
+ get_input) (axis2_wsdl_binding_operation_t *binding_operation,
+ axis2_env_t **env);
+
+
+ /**
+ * Method setInput
+ *
+ * @param input
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_input) (axis2_wsdl_binding_operation_t *binding_operation,
+ axis2_env_t **env,
+ struct axis2_wsdl_binding_msg_ref *input);
+
+ /**
+ * Method getOperation
+ *
+ * @return operation
+ */
+ struct axis2_wsdl_operation *(AXIS2_CALL *
+ get_operation) (axis2_wsdl_binding_operation_t *binding_operation,
+ axis2_env_t **env);
+
+ /**
+ * Method setOperation
+ *
+ * @param operation
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_operation)(axis2_wsdl_binding_operation_t *binding_operation,
+ axis2_env_t **env,
+ struct axis2_wsdl_operation *operation);
+
+ /**
+ * Method getOutput
+ *
+ * @return message reference
+ */
+ struct axis2_wsdl_binding_msg_ref * (AXIS2_CALL *
+ get_output)(axis2_wsdl_binding_operation_t *binding_operation,
+ axis2_env_t **env);
+
+ /**
+ * Method setOutput
+ *
+ * @param output
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_output) (axis2_wsdl_binding_operation_t *binding_operation,
+ axis2_env_t **env,
+ struct axis2_wsdl_binding_msg_ref *output);
+
+ /**
+ * Method getName
+ *
+ * @return QName
+ */
+ axis2_qname_t *(AXIS2_CALL *
+ get_qname) (axis2_wsdl_binding_operation_t *binding_operation,
+ axis2_env_t **env);
+
+ /**
+ * Method setName
+ *
+ * @param name
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_qname) (axis2_wsdl_binding_operation_t *binding_operation,
+ axis2_env_t **env,
+ axis2_qname_t *qname);
+
+ /**
+ * Add the InFault to the Components InFaults
+ *
+ * @param inFault
+ */
+ axis2_status_t (AXIS2_CALL *
+ add_infault) (axis2_wsdl_binding_operation_t *binding_operation,
+ axis2_env_t **env,
+ axis2_wsdl_binding_fault_t *infault);
+
+ /**
+ * Add the OutFault to the Component OutFaults
+ *
+ * @param outFault
+ */
+ axis2_status_t (AXIS2_CALL *
+ add_outfault) (axis2_wsdl_binding_operation_t *binding_operation,
+ axis2_env_t **env,
+ axis2_wsdl_binding_fault_t *outfault);
+
+ axis2_linked_list_t * (AXIS2_CALL *
+ get_infaults) (axis2_wsdl_binding_operation_t *binding_operation,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_infaults) (axis2_wsdl_binding_operation_t *binding_operation,
+ axis2_env_t **env,
+ axis2_linked_list_t *infaults);
+
+ axis2_linked_list_t * (AXIS2_CALL *
+ get_outfaults) (axis2_wsdl_binding_operation_t *binding_operation,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_outfaults) (axis2_wsdl_binding_operation_t *binding_operation,
+ axis2_env_t **env,
+ axis2_linked_list_t *outfaults);
+};
+
+/**
+ * @brief Wsdl Binding Operation struct
+ * Axis2 Wsdl Binding Operation
+ * Binding Operation is used to hold wsdl_binding_operation properties
+ */
+struct axis2_wsdl_binding_operation
+{
+ axis2_wsdl_binding_operation_ops_t *ops;
+ axis2_wsdl_extensible_component_t *extensible_component;
+};
+
+/** create Wsdl Binding Operation struct
+ * @return pointer to newly created wsdl wsdl_binding_operation
+ */
+AXIS2_DECLARE(axis2_wsdl_binding_operation_t *)
+axis2_wsdl_binding_operation_create (axis2_env_t **env);
+
+/**************************** Start of function macros ************************/
+
+#define AXIS2_WSDL_BINDING_OPERATION_FREE(wsdl_binding_operation, env) \
+ ((wsdl_binding_operation->ops)->free (wsdl_binding_operation, env))
+
+#define AXIS2_WSDL_BINDING_OPERATION_SET_INPUT(wsdl_binding_operation, env, \
+ inut) \
+ ((wsdl_binding_operation->ops)->set_input(wsdl_binding_operation , env, \
+ input)
+
+#define AXIS2_WSDL_BINDING_OPERATION_GET_OPERATION(wsdl_binding_operation, env) \
+ ((wsdl_binding_operation->ops)->get_operation(wsdl_binding_operation, env))
+
+#define AXIS2_WSDL_BINDING_OPERATION_SET_OPERATION(wsdl_binding_operation, env, \
+ key, operation) \
+ ((wsdl_binding_operation->ops)->set_operation(wsdl_binding_operation, env,\
+ key, operation))
+
+#define AXIS2_WSDL_BINDING_OPERATION_GET_OUTPUT(wsdl_binding_operation, env) \
+ ((wsdl_binding_operation->ops)->get_output(wsdl_binding_operation, env))
+
+#define AXIS2_WSDL_BINDING_OPERATION_SET_OUTPUT(wsdl_binding_operation, env, output) \
+ ((wsdl_binding_operation->ops)->set_output(wsdl_binding_operation, env, output))
+
+#define AXIS2_WSDL_BINDING_OPERATION_GET_QNAME(wsdl_binding_operation, env) \
+ ((wsdl_binding_operation->ops)->get_qname(wsdl_binding_operation, env))
+
+#define AXIS2_WSDL_BINDING_OPERATION_SET_QNAME(wsdl_binding_operation, env, qname) \
+ ((wsdl_binding_operation->ops)->set_qname(wsdl_binding_operation, env, qname))
+
+#define AXIS2_WSDL_BINDING_OPERATION_ADD_INFAULT(wsdl_binding_operation, env, infault) \
+ ((wsdl_binding_operation->ops)->add_infault(wsdl_binding_operation, env, infault))
+
+#define AXIS2_WSDL_BINDING_OPERATION_ADD_OUTFAULT(wsdl_binding_operation, env, outfault) \
+ ((wsdl_binding_operation->ops)->add_outfault(wsdl_binding_operation, env, outfault))
+
+#define AXIS2_WSDL_BINDING_OPERATION_GET_INFAULTS(wsdl_binding_operation, env) \
+ ((wsdl_binding_operation->ops)->get_infaults(wsdl_binding_operation, env))
+
+#define AXIS2_WSDL_BINDING_OPERATION_SET_INFAULTS(wsdl_binding_operation, env, infaults) \
+ ((wsdl_binding_operation->ops)->set_infaults(wsdl_binding_operation, env, infaults))
+
+#define AXIS2_WSDL_BINDING_OPERATION_GET_OUTFAULTS(wsdl_binding_operation, env) \
+ ((wsdl_binding_operation->ops)->get_outfaults(wsdl_binding_operation, env))
+
+#define AXIS2_WSDL_BINDING_OPERATION_SET_OUTFAULTS(wsdl_binding_operation, env, outfaults) \
+ ((wsdl_binding_operation->ops)->set_outfaults(wsdl_binding_operation, env, outfaults))
+
+/**************************** End of function macros **************************/
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif /*AXIS2_WSDL_BINDING_OPERATION_H*/
Modified: webservices/axis2/trunk/c/include/axis2_wsdl_component.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl_component.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_component.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_component.h Sun Nov 20 19:19:08 2005
@@ -18,8 +18,8 @@
{
#endif
-typedef struct axis2_wsdl_component_ops_s axis2_wsdl_component_ops_t;
-typedef struct axis2_wsdl_component_s axis2_wsdl_component_t;
+typedef struct axis2_wsdl_component_ops axis2_wsdl_component_ops_t;
+typedef struct axis2_wsdl_component axis2_wsdl_component_t;
/** @defgroup axis2_wsdl_component Wsdl Component
* @ingroup axis2_wsdl
@@ -30,7 +30,7 @@
* @brief Wsdl Component operations struct
* Encapsulator struct for operations of axis2_wsdl_component
*/
-struct axis2_wsdl_component_ops_s
+struct axis2_wsdl_component_ops
{
/** Deallocate memory
* @return status code
@@ -85,7 +85,7 @@
* Axis2 Wsdl Component
* Component is used to hold component properties
*/
-struct axis2_wsdl_component_s
+struct axis2_wsdl_component
{
axis2_wsdl_component_ops_t *ops;
};
Added: webservices/axis2/trunk/c/include/axis2_wsdl_endpoint.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl_endpoint.h?rev=345818&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_endpoint.h (added)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_endpoint.h Sun Nov 20 19:19:08 2005
@@ -0,0 +1,142 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2_WSDL_ENDPOINT_H
+#define AXIS2_WSDL_ENDPOINT_H
+
+/**
+ * @file axis2_wsdl_endpoint.h
+ * @brief Axis2 Wsdl endpoint interface
+ */
+
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+#include <axis2_wsdl_component.h>
+#include <axis2_qname.h>
+#include <axis2_wsdl_binding.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct axis2_wsdl_binding;
+typedef struct axis2_wsdl_endpoint axis2_wsdl_endpoint_t;
+typedef struct axis2_wsdl_endpoint_ops axis2_wsdl_endpoint_ops_t;
+
+/** @defgroup axis2_wsdl_endpoint Wsdl Feature
+ * @ingroup axis2_wsdl
+ * @{
+ */
+
+/**
+ * @brief Wsdl End point operations struct
+ * Encapsulator struct for operations of axis2_wsdl_endpoint
+ */
+AXIS2_DECLARE_DATA struct axis2_wsdl_endpoint_ops
+{
+ /** De-allocate memory
+ * @return status code
+ */
+ axis2_status_t (AXIS2_CALL *free)(axis2_wsdl_endpoint_t *wsdl_endpoint,
+ axis2_env_t **env);
+
+ /**
+ * Method getName
+ *
+ * @return
+ */
+ axis2_qname_t *(AXIS2_CALL *
+ get_name) (axis2_wsdl_endpoint_t *wsdl_endpoint,
+ axis2_env_t **env);
+
+ /**
+ * Method setName
+ *
+ * @param qname
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_name) (axis2_wsdl_endpoint_t *wsdl_endpoint,
+ axis2_env_t **env,
+ axis2_qname_t *qname);
+
+
+ /**
+ * Method get_binding
+ *
+ * @return
+ */
+ struct axis2_wsdl_binding *(AXIS2_CALL *
+ get_binding) (axis2_wsdl_endpoint_t *wsdl_endpoint,
+ axis2_env_t **env);
+
+ /**
+ * Method set_binding
+ *
+ * @param wsdl_binding
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_binding) (axis2_wsdl_endpoint_t *wsdl_endpoint,
+ axis2_env_t **env,
+ struct axis2_wsdl_binding *wsdl_binding);
+
+
+};
+
+/**
+ * @brief Wsdl endpoint struct
+ */
+AXIS2_DECLARE_DATA struct axis2_wsdl_endpoint
+{
+ axis2_wsdl_endpoint_ops_t *ops;
+ axis2_wsdl_component_t *wsdl_component;
+};
+
+/**
+ * Creates wsdl endpoint struct
+ * @return pointer to newly created wsdl endpoint
+ */
+AXIS2_DECLARE(axis2_wsdl_endpoint_t *)
+axis2_wsdl_endpoint_create (axis2_env_t **env);
+
+/*************************** Function macros **********************************/
+
+#define AXIS2_WSDL_ENDPOINT_FREE(wsdl_endpoint, env) \
+ ((wsdl_endpoint->ops)->free (wsdl_endpoint, env))
+
+#define AXIS2_WSDL_ENDPOINT_GET_NAME(wsdl_endpoint, env) \
+ ((wsdl_endpoint->ops)->get_name (wsdl_endpoint, env))
+
+#define AXIS2_WSDL_ENDPOINT_SET_NAME(wsdl_endpoint, env, qname) \
+ ((wsdl_endpoint->ops)->set_name (wsdl_endpoint, env, qname))
+
+#define AXIS2_WSDL_ENDPOINT_GET_BINDING(wsdl_endpoint, env) \
+ ((wsdl_endpoint->ops)->get_binding (wsdl_endpoint, env))
+
+#define AXIS2_WSDL_ENDPOINT_SET_BINDING(wsdl_endpoint, env, wsdl_binding) \
+ ((wsdl_endpoint->ops)->set_binding (wsdl_endpoint, env, wsdl_binding))
+
+/*************************** End of function macros ***************************/
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* AXIS2_WSDL_ENDPOINT_H */
Modified: webservices/axis2/trunk/c/include/axis2_wsdl_extensible_component.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl_extensible_component.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_extensible_component.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_extensible_component.h Sun Nov 20 19:19:08 2005
@@ -30,14 +30,15 @@
#include <axis2_linked_list.h>
#include <axis2_wsdl_feature.h>
#include <axis2_wsdl_property.h>
+#include <axis2_wsdl_component.h>
#ifdef __cplusplus
extern "C"
{
#endif
-typedef struct axis2_wsdl_extensible_component_s axis2_wsdl_extensible_component_t;
-typedef struct axis2_wsdl_extensible_component_ops_s axis2_wsdl_extensible_component_ops_t;
+typedef struct axis2_wsdl_extensible_component axis2_wsdl_extensible_component_t;
+typedef struct axis2_wsdl_extensible_component_ops axis2_wsdl_extensible_component_ops_t;
/** @defgroup axis2_wsdl_extensible_component Wsdl Extensible Component
* @ingroup axis2_wsdl
@@ -48,7 +49,7 @@
* @brief Wsdl Extensible Component operations struct
* Encapsulator struct for operations of axis2_wsdl_extensible_component
*/
-AXIS2_DECLARE_DATA struct axis2_wsdl_extensible_component_ops_s
+AXIS2_DECLARE_DATA struct axis2_wsdl_extensible_component_ops
{
/** De-allocate memory
* @return status code
@@ -104,9 +105,10 @@
* @brief Wsdl container struct
* Property for params
*/
-AXIS2_DECLARE_DATA struct axis2_wsdl_extensible_component_s
+AXIS2_DECLARE_DATA struct axis2_wsdl_extensible_component
{
axis2_wsdl_extensible_component_ops_t *ops;
+ axis2_wsdl_component_t *wsdl_component;
};
/**
Added: webservices/axis2/trunk/c/include/axis2_wsdl_fault_ref.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl_fault_ref.h?rev=345818&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_fault_ref.h (added)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_fault_ref.h Sun Nov 20 19:19:08 2005
@@ -0,0 +1,163 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2_WSDL_FAULT_REF_H
+#define AXIS2_WSDL_FAULT_REF_H
+
+/**
+ * @file axis2_wsdl_fault_ref.h
+ * @brief Axis2 Wsdl bindig message reference interface
+ */
+
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+#include <axis2_qname.h>
+#include <axis2_wsdl_component.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+typedef struct axis2_wsdl_fault_ref axis2_wsdl_fault_ref_t;
+typedef struct axis2_wsdl_fault_ref_ops axis2_wsdl_fault_ref_ops_t;
+
+/** @defgroup axis2_wsdl_fault_ref Wsdl Binding Fault
+ * @ingroup axis2_wsdl
+ * @{
+ */
+
+/**
+ * @brief Wsdl Binding Message Reference operations struct
+ * Encapsulator struct for operations of axis2_wsdl_fault_ref
+ */
+AXIS2_DECLARE_DATA struct axis2_wsdl_fault_ref_ops
+{
+ /** De-allocate memory
+ * @return status code
+ */
+ axis2_status_t (AXIS2_CALL *
+ free)(axis2_wsdl_fault_ref_t *wsdl_fault_ref,
+ axis2_env_t **env);
+
+ /**
+ * Returns the direction of the Fault according the MEP
+ *
+ * @return
+ */
+ axis2_char_t * (AXIS2_CALL *
+ get_direction) (axis2_wsdl_fault_ref_t *fault_ref,
+ axis2_env_t **env);
+
+ /**
+ * Sets the direction of the Fault.
+ *
+ * @param direction
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_direction) (axis2_wsdl_fault_ref_t *fault_ref,
+ axis2_env_t **env,
+ axis2_char_t *direction);
+
+ /**
+ * Method getMessageLabel
+ *
+ * @return
+ */
+ axis2_char_t * (AXIS2_CALL *
+ get_msg_label) (axis2_wsdl_fault_ref_t *fault_ref,
+ axis2_env_t **env);
+
+ /**
+ * Method setMessageLabel
+ *
+ * @param messageLabel
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_msg_label) (axis2_wsdl_fault_ref_t *fault_ref,
+ axis2_env_t **env,
+ axis2_char_t *msg_label);
+
+ /**
+ * Returns the Fault reference.
+ *
+ * @return
+ */
+ axis2_qname_t * (AXIS2_CALL *
+ get_ref) (axis2_wsdl_fault_ref_t *fault_ref,
+ axis2_env_t **env);
+
+ /**
+ * Sets the Fault reference.
+ *
+ * @param ref
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_ref) (axis2_wsdl_fault_ref_t *fault_ref,
+ axis2_env_t **env,
+ axis2_qname_t *ref);
+};
+
+/**
+ * @brief Wsdl message reference struct
+ */
+AXIS2_DECLARE_DATA struct axis2_wsdl_fault_ref
+{
+ axis2_wsdl_fault_ref_ops_t *ops;
+ axis2_wsdl_component_t *wsdl_component;
+};
+
+/**
+ * Creates wsdl message reference struct
+ * @return pointer to newly created wsdl message reference
+ */
+AXIS2_DECLARE(axis2_wsdl_fault_ref_t *)
+axis2_wsdl_fault_ref_create (axis2_env_t **env);
+
+/*************************** Function macros **********************************/
+
+#define AXIS2_WSDL_FAULT_REF_FREE(wsdl_fault_ref, env) \
+ ((wsdl_fault_ref->ops)->free (wsdl_fault_ref, env))
+
+#define AXIS2_WSDL_FAULT_REF_GET_DIRECTION(wsdl_fault_ref, env) \
+ ((wsdl_fault_ref->ops)->get_direction (wsdl_fault_ref, env))
+
+#define AXIS2_WSDL_FAULT_REF_SET_DIRECTION(wsdl_fault_ref, env, direction) \
+ ((wsdl_fault_ref->ops)->set_direction (wsdl_fault_ref, env, direction))
+
+#define AXIS2_WSDL_FAULT_REF_GET_MSG_LABEL(wsdl_fault_ref, env) \
+ ((wsdl_fault_ref->ops)->get_msg_label (wsdl_fault_ref, env))
+
+#define AXIS2_WSDL_FAULT_REF_SET_MSG_LABEL(wsdl_fault_ref, env, msg_label) \
+ ((wsdl_fault_ref->ops)->set_msg_label (wsdl_fault_ref, env, msg_label))
+
+#define AXIS2_WSDL_FAULT_REF_GET_REF(wsdl_fault_ref, env) \
+ ((wsdl_fault_ref->ops)->get_ref (wsdl_fault_ref, env))
+
+#define AXIS2_WSDL_FAULT_REF_SET_REF(wsdl_fault_ref, env, ref) \
+ ((wsdl_fault_ref->ops)->set_ref (wsdl_fault_ref, env, ref))
+
+/*************************** End of function macros ***************************/
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* AXIS2_WSDL_FAULT_REF_H */
Modified: webservices/axis2/trunk/c/include/axis2_wsdl_feature.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl_feature.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_feature.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_feature.h Sun Nov 20 19:19:08 2005
@@ -27,14 +27,15 @@
#include <axis2_defines.h>
#include <axis2_env.h>
#include <axis2_allocator.h>
+#include <axis2_wsdl_component.h>
#ifdef __cplusplus
extern "C"
{
#endif
-typedef struct axis2_wsdl_feature_s axis2_wsdl_feature_t;
-typedef struct axis2_wsdl_feature_ops_s axis2_wsdl_feature_ops_t;
+typedef struct axis2_wsdl_feature axis2_wsdl_feature_t;
+typedef struct axis2_wsdl_feature_ops axis2_wsdl_feature_ops_t;
/** @defgroup axis2_wsdl_feature Wsdl Feature
* @ingroup axis2_wsdl
@@ -45,7 +46,7 @@
* @brief Wsdl Feature operations struct
* Encapsulator struct for operations of axis2_wsdl_feature
*/
-AXIS2_DECLARE_DATA struct axis2_wsdl_feature_ops_s
+AXIS2_DECLARE_DATA struct axis2_wsdl_feature_ops
{
/** De-allocate memory
* @return status code
@@ -99,9 +100,10 @@
* @brief Wsdl container struct
* Property for params
*/
-AXIS2_DECLARE_DATA struct axis2_wsdl_feature_s
+AXIS2_DECLARE_DATA struct axis2_wsdl_feature
{
axis2_wsdl_feature_ops_t *ops;
+ axis2_wsdl_component_t *wsdl_component;
};
/**
Modified: webservices/axis2/trunk/c/include/axis2_wsdl_interface.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl_interface.h?rev=345818&r1=345817&r2=345818&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_interface.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_interface.h Sun Nov 20 19:19:08 2005
@@ -29,15 +29,20 @@
#include <axis2_allocator.h>
#include <axis2_hash.h>
#include <axis2_wsdl_operation.h>
+#include <axis2_operation.h>
#include <axis2_linked_list.h>
+#include <axis2_wsdl_extensible_component.h>
#ifdef __cplusplus
extern "C"
{
#endif
-typedef struct axis2_wsdl_interface_s axis2_wsdl_interface_t;
-typedef struct axis2_wsdl_interface_ops_s axis2_wsdl_interface_ops_t;
+struct axis2_wsdl_operation;
+struct axis2_operation;
+struct axis2_wsdl_extensible_component;
+typedef struct axis2_wsdl_interface axis2_wsdl_interface_t;
+typedef struct axis2_wsdl_interface_ops axis2_wsdl_interface_ops_t;
/** @defgroup axis2_wsdl_interface Wsdl Interface
* @ingroup axis2_wsdl
@@ -48,7 +53,7 @@
* @brief Wsdl Interface operations struct
* Encapsulator struct for operations of axis2_wsdl_interface
*/
-AXIS2_DECLARE_DATA struct axis2_wsdl_interface_ops_s
+AXIS2_DECLARE_DATA struct axis2_wsdl_interface_ops
{
/** De-allocate memory
* @return status code
@@ -93,7 +98,7 @@
* @param nCName
* @return
*/
- axis2_wsdl_operation_t *(AXIS2_CALL *
+ struct axis2_operation *(AXIS2_CALL *
get_operation) (axis2_wsdl_interface_t *wsdl_interface,
axis2_env_t **env,
axis2_char_t *nc_name);
@@ -160,7 +165,7 @@
axis2_status_t (AXIS2_CALL *
set_operation) (axis2_wsdl_interface_t *wsdl_interface,
axis2_env_t **env,
- axis2_wsdl_operation_t *operation);
+ struct axis2_operation *operation);
/**
* @param list
@@ -207,9 +212,10 @@
* @brief Wsdl container struct
* Property for params
*/
-AXIS2_DECLARE_DATA struct axis2_wsdl_interface_s
+AXIS2_DECLARE_DATA struct axis2_wsdl_interface
{
axis2_wsdl_interface_ops_t *ops;
+ struct axis2_wsdl_extensible_component *extensible_component;
};
/**
Added: webservices/axis2/trunk/c/include/axis2_wsdl_msg_ref.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl_msg_ref.h?rev=345818&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_msg_ref.h (added)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_msg_ref.h Sun Nov 20 19:19:08 2005
@@ -0,0 +1,164 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2_WSDL_MSG_REF_H
+#define AXIS2_WSDL_MSG_REF_H
+
+/**
+ * @file axis2_wsdl_msg_ref.h
+ * @brief Axis2 Wsdl bindig message reference interface
+ */
+
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+#include <axis2_qname.h>
+#include <axis2_wsdl_extensible_component.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+typedef struct axis2_wsdl_msg_ref axis2_wsdl_msg_ref_t;
+typedef struct axis2_wsdl_msg_ref_ops axis2_wsdl_msg_ref_ops_t;
+
+/** @defgroup axis2_wsdl_msg_ref Wsdl Binding Fault
+ * @ingroup axis2_wsdl
+ * @{
+ */
+
+/**
+ * @brief Wsdl Binding Message Reference operations struct
+ * Encapsulator struct for operations of axis2_wsdl_msg_ref
+ */
+AXIS2_DECLARE_DATA struct axis2_wsdl_msg_ref_ops
+{
+ /** De-allocate memory
+ * @return status code
+ */
+ axis2_status_t (AXIS2_CALL *
+ free)(axis2_wsdl_msg_ref_t *wsdl_msg_ref,
+ axis2_env_t **env);
+
+ /**
+ * Method getDirection
+ *
+ * @return
+ */
+ axis2_char_t * (AXIS2_CALL *
+ get_direction) (axis2_wsdl_msg_ref_t *msg_ref,
+ axis2_env_t **env);
+
+ /**
+ * Method setDirection
+ *
+ * @param direction
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_direction) (axis2_wsdl_msg_ref_t *msg_ref,
+ axis2_env_t **env,
+ axis2_char_t *direction);
+
+ /**
+ * Method getMessageLabel
+ *
+ * @return
+ */
+ axis2_char_t * (AXIS2_CALL *
+ get_msg_label) (axis2_wsdl_msg_ref_t *msg_ref,
+ axis2_env_t **env);
+
+ /**
+ * Method setMessageLabel
+ *
+ * @param messageLabel
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_msg_label) (axis2_wsdl_msg_ref_t *msg_ref,
+ axis2_env_t **env,
+ axis2_char_t *msg_label);
+
+ /**
+ * Returns an Element which refers to the actual message that will get
+ *transported. This Element Abstracts all the Message Parts that was defined in
+ * the WSDL 1.1.
+ * @return
+ */
+ axis2_qname_t * (AXIS2_CALL *
+ get_element) (axis2_wsdl_msg_ref_t *msg_ref,
+ axis2_env_t **env);
+
+ /**
+ * Sets the Element that will Abstract the actual message. All the parts defined
+ * in WSDL 1.1 per message should be Encapsulated in this Element.
+ * @param element
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_element) (axis2_wsdl_msg_ref_t *msg_ref,
+ axis2_env_t **env,
+ axis2_qname_t *element);
+};
+
+/**
+ * @brief Wsdl message reference struct
+ */
+AXIS2_DECLARE_DATA struct axis2_wsdl_msg_ref
+{
+ axis2_wsdl_msg_ref_ops_t *ops;
+ axis2_wsdl_extensible_component_t *extensible_component;
+};
+
+/**
+ * Creates wsdl message reference struct
+ * @return pointer to newly created wsdl message reference
+ */
+AXIS2_DECLARE(axis2_wsdl_msg_ref_t *)
+axis2_wsdl_msg_ref_create (axis2_env_t **env);
+
+/*************************** Function macros **********************************/
+
+#define AXIS2_WSDL_MSG_REF_FREE(wsdl_msg_ref, env) \
+ ((wsdl_msg_ref->ops)->free (wsdl_msg_ref, env))
+
+#define AXIS2_WSDL_MSG_REF_GET_DIRECTION(wsdl_msg_ref, env) \
+ ((wsdl_msg_ref->ops)->get_direction (wsdl_msg_ref, env))
+
+#define AXIS2_WSDL_MSG_REF_SET_DIRECTION(wsdl_msg_ref, env, direction) \
+ ((wsdl_msg_ref->ops)->set_direction (wsdl_msg_ref, env, direction))
+
+#define AXIS2_WSDL_MSG_REF_GET_MSG_LABEL(wsdl_msg_ref, env) \
+ ((wsdl_msg_ref->ops)->get_msg_label (wsdl_msg_ref, env))
+
+#define AXIS2_WSDL_MSG_REF_SET_MSG_LABEL(wsdl_msg_ref, env, msg_label) \
+ ((wsdl_msg_ref->ops)->set_msg_label (wsdl_msg_ref, env, msg_label))
+
+#define AXIS2_WSDL_MSG_REF_GET_ELEMENT(wsdl_msg_ref, env) \
+ ((wsdl_msg_ref->ops)->get_element (wsdl_msg_ref, env))
+
+#define AXIS2_WSDL_MSG_REF_SET_ELEMENT(wsdl_msg_ref, env, element) \
+ ((wsdl_msg_ref->ops)->set_element (wsdl_msg_ref, env, element))
+
+/*************************** End of function macros ***************************/
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* AXIS2_WSDL_MSG_REF_H */