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/16 05:49:23 UTC
svn commit: r344889 - in /webservices/axis2/trunk/c:
include/axis2_operation.h include/axis2_wsdl_binding_fault.h
modules/core/engine/src/engine_config.c modules/wsdl/src/Makefile.am
modules/wsdl/src/Makefile.in modules/wsdl/src/wsdl_binding_fault.c
Author: damitha
Date: Tue Nov 15 20:49:08 2005
New Revision: 344889
URL: http://svn.apache.org/viewcvs?rev=344889&view=rev
Log: (empty)
Added:
webservices/axis2/trunk/c/include/axis2_wsdl_binding_fault.h
webservices/axis2/trunk/c/modules/wsdl/src/wsdl_binding_fault.c
Modified:
webservices/axis2/trunk/c/include/axis2_operation.h
webservices/axis2/trunk/c/modules/core/engine/src/engine_config.c
webservices/axis2/trunk/c/modules/wsdl/src/Makefile.am
webservices/axis2/trunk/c/modules/wsdl/src/Makefile.in
Modified: webservices/axis2/trunk/c/include/axis2_operation.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_operation.h?rev=344889&r1=344888&r2=344889&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_operation.h (original)
+++ webservices/axis2/trunk/c/include/axis2_operation.h Tue Nov 15 20:49:08 2005
@@ -29,8 +29,6 @@
#include <axis2_msg_recv.h>
#include <axis2_array_list.h>
-#include "description.h"
-
#ifdef __cplusplus
extern "C"
{
Added: 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=344889&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_binding_fault.h (added)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_binding_fault.h Tue Nov 15 20:49:08 2005
@@ -0,0 +1,111 @@
+/*
+ * 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_BINDING_FAULT_H
+#define AXIS2_BINDING_FAULT_H
+
+/**
+ * @file axis2_binding_fault.h
+ * @brief Axis2 Wsdl property interface
+ */
+
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+#include <axis2_qname.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;
+
+/** @defgroup axis2_binding_fault Wsdl Binding Fault
+ * @ingroup axis2_wsdl
+ * @{
+ */
+
+/**
+ * @brief Wsdl Binding Fault operations struct
+ * Encapsulator struct for operations of axis2_binding_fault
+ */
+AXIS2_DECLARE_DATA struct axis2_binding_fault_ops_s
+{
+ /** De-allocate memory
+ * @return status code
+ */
+ axis2_status_t (AXIS2_CALL *
+ free)(axis2_binding_fault_t *binding_fault,
+ axis2_env_t **env);
+
+ /**
+ * Method getRef
+ *
+ * @return
+ */
+ axis2_qname_t *(AXIS2_CALL *
+ get_ref) (axis2_binding_fault_t *binding_fault,
+ axis2_env_t **env);
+
+ /**
+ * Method setRef
+ *
+ * @param ref
+ */
+ axis2_status_t (AXIS2_CALL *
+ set_ref)(axis2_binding_fault_t *binding_fault,
+ axis2_env_t **env,
+ axis2_qname_t *ref);
+};
+
+/**
+ * @brief Wsdl binding fault struct
+ */
+AXIS2_DECLARE_DATA struct axis2_binding_fault_s
+{
+ axis2_binding_fault_ops_t *ops;
+};
+
+/**
+ * Creates wsdl binding fault struct
+ * @return pointer to newly created wsdl binding fault
+ */
+AXIS2_DECLARE(axis2_binding_fault_t *)
+axis2_binding_fault_create (axis2_env_t **env);
+
+/*************************** Function macros **********************************/
+
+#define AXIS2_BINDING_FAULT_FREE(binding_fault, env) \
+ ((binding_fault->ops)->free (binding_fault, env))
+
+#define AXIS2_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) \
+ ((binding_fault->ops)->set_ref (binding_fault, env, ref))
+
+/*************************** End of function macros ***************************/
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* AXIS2_BINDING_FAULT_H */
Modified: webservices/axis2/trunk/c/modules/core/engine/src/engine_config.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/engine/src/engine_config.c?rev=344889&r1=344888&r2=344889&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/src/engine_config.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/src/engine_config.c Tue Nov 15 20:49:08 2005
@@ -318,15 +318,10 @@
AXIS2_ERROR_SET((*env)->error,
AXIS2_ERROR_INVALID_STATE_PARAM_CONTAINER, AXIS2_FAILURE);
}
-
- axis2_char_t *tempname = AXIS2_STRDUP(name, env);
- if(NULL == tempname)
- AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_INVALID_NULL_PARAM,
- AXIS2_FAILURE);
return (axis2_param_t *)(axis2_hash_get
(AXIS2_PARAM_CONTAINER_GET_PARAMS(AXIS2_INTF_TO_IMPL(engine_config)->
- param_container, env), tempname, AXIS2_HASH_KEY_STRING));
+ param_container, env), name, AXIS2_HASH_KEY_STRING));
}
Modified: webservices/axis2/trunk/c/modules/wsdl/src/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/src/Makefile.am?rev=344889&r1=344888&r2=344889&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/src/Makefile.am (original)
+++ webservices/axis2/trunk/c/modules/wsdl/src/Makefile.am Tue Nov 15 20:49:08 2005
@@ -6,7 +6,8 @@
wsdl_feature.c \
wsdl_property.c \
wsdl_extensible_component.c \
- wsdl_interface.c
+ wsdl_interface.c \
+ wsdl_binding_fault.c
libaxis2_wsdl_la_LIBADD = $(LDFLAGS)
INCLUDES = -I$(top_builddir)/include \
Modified: webservices/axis2/trunk/c/modules/wsdl/src/Makefile.in
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/src/Makefile.in?rev=344889&r1=344888&r2=344889&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/src/Makefile.in (original)
+++ webservices/axis2/trunk/c/modules/wsdl/src/Makefile.in Tue Nov 15 20:49:08 2005
@@ -65,7 +65,8 @@
libaxis2_wsdl_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
am_libaxis2_wsdl_la_OBJECTS = wsdl_operation.lo wsdl_svc.lo \
wsdl_component.lo wsdl_feature.lo wsdl_property.lo \
- wsdl_extensible_component.lo wsdl_interface.lo
+ wsdl_extensible_component.lo wsdl_interface.lo \
+ wsdl_binding_fault.lo
libaxis2_wsdl_la_OBJECTS = $(am_libaxis2_wsdl_la_OBJECTS)
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/conftools/depcomp
@@ -198,7 +199,8 @@
wsdl_feature.c \
wsdl_property.c \
wsdl_extensible_component.c \
- wsdl_interface.c
+ wsdl_interface.c \
+ wsdl_binding_fault.c
libaxis2_wsdl_la_LIBADD = $(LDFLAGS)
INCLUDES = -I$(top_builddir)/include \
@@ -274,6 +276,7 @@
distclean-compile:
-rm -f *.tab.c
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wsdl_binding_fault.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wsdl_component.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wsdl_extensible_component.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wsdl_feature.Plo@am__quote@
Added: webservices/axis2/trunk/c/modules/wsdl/src/wsdl_binding_fault.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/src/wsdl_binding_fault.c?rev=344889&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/src/wsdl_binding_fault.c (added)
+++ webservices/axis2/trunk/c/modules/wsdl/src/wsdl_binding_fault.c Tue Nov 15 20:49:08 2005
@@ -0,0 +1,134 @@
+/*
+ * 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.
+ */
+
+#include <axis2_wsdl_binding_fault.h>
+
+/**
+ * @brief Wsdl Binding Fault struct impl
+ * Wsdl Binding Fault
+ */
+typedef struct axis2_binding_fault_impl_s
+{
+ axis2_binding_fault_t binding_fault;
+ /**
+ * Field ref
+ */
+ axis2_qname_t *ref;
+
+} axis2_binding_fault_impl_t;
+
+#define AXIS2_INTF_TO_IMPL(binding_fault) \
+ ((axis2_binding_fault_impl_t *)binding_fault)
+
+/************************* Function prototypes ********************************/
+
+axis2_status_t AXIS2_CALL
+ axis2_binding_fault_free (axis2_binding_fault_t *binding_fault,
+ axis2_env_t **env);
+axis2_qname_t *AXIS2_CALL
+axis2_binding_fault_get_ref(axis2_binding_fault_t *binding_fault,
+ axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_binding_fault_set_ref(axis2_binding_fault_t *binding_fault,
+ axis2_env_t **env,
+ axis2_qname_t *ref);
+
+/************************** End of function prototypes ************************/
+
+axis2_binding_fault_t * AXIS2_CALL
+axis2_binding_fault_create (axis2_env_t **env)
+{
+ AXIS2_ENV_CHECK(env, NULL);
+
+ axis2_binding_fault_impl_t *binding_fault_impl =
+ (axis2_binding_fault_impl_t *) AXIS2_MALLOC((*env)->allocator,
+ sizeof(axis2_binding_fault_impl_t));
+
+
+ if(NULL == binding_fault_impl)
+ AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, NULL);
+
+ binding_fault_impl->binding_fault.ops =
+ AXIS2_MALLOC ((*env)->allocator, sizeof(axis2_binding_fault_ops_t));
+ if(NULL == binding_fault_impl->binding_fault.ops)
+ {
+ AXIS2_FREE((*env)->allocator, binding_fault_impl);
+ AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, NULL);
+ }
+
+ binding_fault_impl->binding_fault.ops->free = axis2_binding_fault_free;
+
+ binding_fault_impl->binding_fault.ops->get_ref =
+ axis2_binding_fault_get_ref;
+
+ binding_fault_impl->binding_fault.ops->set_ref =
+ axis2_binding_fault_set_ref;
+
+ binding_fault_impl->ref = NULL;
+
+ return &(binding_fault_impl->binding_fault);
+}
+
+/***************************Function implementation****************************/
+
+axis2_status_t AXIS2_CALL
+axis2_binding_fault_free (axis2_binding_fault_t *binding_fault,
+ axis2_env_t **env)
+{
+ AXIS2_FUNC_PARAM_CHECK(binding_fault, env, AXIS2_FAILURE);
+ if(NULL != binding_fault->ops)
+ AXIS2_FREE((*env)->allocator, binding_fault->ops);
+
+ if(NULL != AXIS2_INTF_TO_IMPL(binding_fault)->ref)
+ {
+ AXIS2_QNAME_FREE(AXIS2_INTF_TO_IMPL(binding_fault)->ref, env);
+ }
+
+ AXIS2_FREE((*env)->allocator, AXIS2_INTF_TO_IMPL(binding_fault));
+
+ return AXIS2_SUCCESS;
+}
+
+
+/**
+ * Method getRef
+ *
+ * @return
+ */
+axis2_qname_t *AXIS2_CALL
+axis2_binding_fault_get_ref(axis2_binding_fault_t *binding_fault,
+ axis2_env_t **env)
+{
+ AXIS2_FUNC_PARAM_CHECK(binding_fault, env, NULL);
+ return AXIS2_INTF_TO_IMPL(binding_fault)->ref;
+}
+
+/**
+ * Method setRef
+ *
+ * @param ref
+ */
+axis2_status_t AXIS2_CALL
+axis2_binding_fault_set_ref(axis2_binding_fault_t *binding_fault,
+ axis2_env_t **env,
+ axis2_qname_t *ref)
+{
+ AXIS2_FUNC_PARAM_CHECK(binding_fault, env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK((*env)->error, ref, AXIS2_FAILURE);
+ AXIS2_INTF_TO_IMPL(binding_fault)->ref = ref;
+ return AXIS2_SUCCESS;
+}