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/10 07:17:17 UTC
svn commit: r367503 - in /webservices/axis2/trunk/c/include:
axis2_soap11_builder_helper.h axis2_soap12_builder_helper.h
axis2_soap_message.h axis2_soap_model_builder.h
Author: nandika
Date: Mon Jan 9 22:17:03 2006
New Revision: 367503
URL: http://svn.apache.org/viewcvs?rev=367503&view=rev
Log: (empty)
Added:
webservices/axis2/trunk/c/include/axis2_soap11_builder_helper.h
webservices/axis2/trunk/c/include/axis2_soap12_builder_helper.h
Modified:
webservices/axis2/trunk/c/include/axis2_soap_message.h
webservices/axis2/trunk/c/include/axis2_soap_model_builder.h
Added: webservices/axis2/trunk/c/include/axis2_soap11_builder_helper.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_soap11_builder_helper.h?rev=367503&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_soap11_builder_helper.h (added)
+++ webservices/axis2/trunk/c/include/axis2_soap11_builder_helper.h Mon Jan 9 22:17:03 2006
@@ -0,0 +1,91 @@
+/*
+ * 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_SOAP11_BUILDER_HELPER_H
+#define AXIS2_SOAP11_BUILDER_HELPER_H
+
+
+/**
+ * @file axis2_soap_11_builder_helper.h
+ * @brief axis2_soap11_builder_helper
+ */
+#include <axis2_soap_model_builder.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+
+typedef struct axis2_soap11_builder_helper axis2_soap11_builder_helper_t;
+typedef struct axis2_soap11_builder_helper_ops axis2_soap11_builder_helper_ops_t;
+
+/**
+ * @defgroup axis2_soap11_builder_helper
+ * @ingroup axis2_soap
+ * @{
+ */
+
+/**
+ * \brief axis2_soap11_builder_helper operations ops struct
+ */
+
+ AXIS2_DECLARE_DATA struct axis2_soap11_builder_helper_ops
+ {
+ axis2_status_t (AXIS2_CALL *free_fn)
+ (axis2_soap11_builder_helper_t *builder_helper,
+ axis2_env_t **env);
+
+ axis2_om_node_t* (AXIS2_CALL *handle_event)
+ (axis2_soap11_builder_helper_t *builder_helper,
+ axis2_env_t **env,
+ axis2_om_stax_builder_t *om_builder,
+ int element_level);
+ };
+
+ /**
+ * \brief soap_11_builder_helper struct
+ */
+struct axis2_soap11_builder_helper
+{
+ axis2_soap11_builder_helper_ops_t *ops;
+};
+
+ /**
+ * creates a soap11_builder_helper_create
+ * @param env Environment. MUST NOT be NULL
+ */
+AXIS2_DECLARE(axis2_soap11_builder_helper_t*)
+axis2_soap11_builder_helper_create(axis2_env_t **env,
+ axis2_soap_model_builder_t *soap_builder);
+
+/******************** Macros **************************************************/
+
+/** free soap_body */
+#define AXIS2_SOAP11_BUILDER_HELPER_FREE(builder_helper, env) \
+ ((builder_helper)->ops->free(builder_helper, env))
+
+#define AXIS2_SOAP11_BUILDER_HELPER_HANDLE_EVENT(builder_helper, \
+ env, element_level) \
+ ((builder_helper)->ops->handle_event(builder_helper, \
+ env, om_builder, element_level))
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* AXIS2_SOAP11_BUILDER_HELPER_H */
Added: webservices/axis2/trunk/c/include/axis2_soap12_builder_helper.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_soap12_builder_helper.h?rev=367503&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_soap12_builder_helper.h (added)
+++ webservices/axis2/trunk/c/include/axis2_soap12_builder_helper.h Mon Jan 9 22:17:03 2006
@@ -0,0 +1,92 @@
+/*
+ * 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_SOAP12_BUILDER_HELPER_H
+#define AXIS2_SOAP12_BUILDER_HELPER_H
+
+ #include <axis2_soap_model_builder.h>
+/**
+ * @file axis2_soap_12_builder_helper.h
+ * @brief axis2_soap12_builder_helper
+ */
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+
+typedef struct axis2_soap12_builder_helper axis2_soap12_builder_helper_t;
+typedef struct axis2_soap12_builder_helper_ops axis2_soap12_builder_helper_ops_t;
+
+/**
+ * @defgroup axis2_soap12_builder_helper
+ * @ingroup axis2_soap
+ * @{
+ */
+
+/**
+ * \brief axis2_soap12_builder_helper operations ops struct
+ */
+
+ AXIS2_DECLARE_DATA struct axis2_soap12_builder_helper_ops
+ {
+ axis2_status_t (AXIS2_CALL *free_fn)
+ (axis2_soap12_builder_helper_t *builder_helper,
+ axis2_env_t **env);
+
+ axis2_om_node_t* (AXIS2_CALL *handle_event)
+ (axis2_soap12_builder_helper_t *builder_helper,
+ axis2_env_t **env,
+ axis2_om_stax_builder_t *om_builder,
+ int element_level);
+ };
+
+ /**
+ * \brief soap_12_builder_helper struct
+ */
+struct axis2_soap12_builder_helper
+{
+ axis2_soap12_builder_helper_ops_t *ops;
+};
+
+ /**
+ * creates a soap12_builder_helper_create
+ * @param env Environment. MUST NOT be NULL
+ */
+AXIS2_DECLARE(axis2_soap12_builder_helper_t*)
+axis2_soap12_builder_helper_create(axis2_env_t **env,
+ axis2_soap_model_builder_t *soap_builder);
+
+/******************** Macros **************************************************/
+
+/** free soap_body */
+#define AXIS2_SOAP12_BUILDER_HELPER_FREE(builder_helper, env) \
+ ((builder_helper)->ops->free(builder_helper, env))
+
+#define AXIS2_SOAP12_BUILDER_HELPER_HANDLE_EVENT(builder_helper, \
+ env, element_level) \
+ ((builder_helper)->ops->handle_event(builder_helper, \
+ env, om_builder, element_level))
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+
+
+ #endif AXIS2_SOAP11_BUILDER_HELPER_H
+
\ No newline at end of file
Modified: webservices/axis2/trunk/c/include/axis2_soap_message.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_soap_message.h?rev=367503&r1=367502&r2=367503&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_soap_message.h (original)
+++ webservices/axis2/trunk/c/include/axis2_soap_message.h Mon Jan 9 22:17:03 2006
@@ -24,7 +24,7 @@
*/
#include <axis2_env.h>
#include <axis2_soap_envelope.h>
-#include <axis2_om_document.h>
+#include <axis2_soap_model_builder.h>
#ifdef __cplusplus
extern "C"
@@ -90,7 +90,7 @@
*/
AXIS2_DECLARE(axis2_soap_message_t *)
axis2_soap_message_create(axis2_env_t **env,
- axis2_om_document_t *om_document);
+ axis2_soap_model_builder_t *soap_builder);
/******************** Macros **************************************************/
Modified: webservices/axis2/trunk/c/include/axis2_soap_model_builder.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_soap_model_builder.h?rev=367503&r1=367502&r2=367503&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_soap_model_builder.h (original)
+++ webservices/axis2/trunk/c/include/axis2_soap_model_builder.h Mon Jan 9 22:17:03 2006
@@ -63,8 +63,7 @@
axis2_om_node_t* (AXIS2_CALL *get_document_element)
(axis2_soap_model_builder_t *builder,
- axis2_env_t **env);
-
+ axis2_env_t **env);
};
@@ -104,6 +103,9 @@
#define AXIS2_SOAP_MODEL_BUILDER_GET_DOCUMENT(builder, env) \
((builder)->ops->get_document(builder, env))
+
+#define AXIS2_SOAP_MODEL_BUILDER_NEXT(builder, env) \
+ ((builder)->ops->next(builder, env))
/** @} */
#ifdef __cplusplus