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 2006/03/22 12:22:25 UTC

svn commit: r387834 - in /webservices/axis2/trunk/c/include: axis2_wsdl_ext_soap_body.h axis2_wsdl_ext_soap_header.h

Author: damitha
Date: Wed Mar 22 03:22:22 2006
New Revision: 387834

URL: http://svn.apache.org/viewcvs?rev=387834&view=rev
Log:
Added some soap extension files

Added:
    webservices/axis2/trunk/c/include/axis2_wsdl_ext_soap_body.h
    webservices/axis2/trunk/c/include/axis2_wsdl_ext_soap_header.h

Added: webservices/axis2/trunk/c/include/axis2_wsdl_ext_soap_body.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl_ext_soap_body.h?rev=387834&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_ext_soap_body.h (added)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_ext_soap_body.h Wed Mar 22 03:22:22 2006
@@ -0,0 +1,121 @@
+/*
+ * 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_EXT_SOAP_BODY_H
+#define AXIS2_WSDL_EXT_SOAP_BODY_H
+
+/**
+ * @file axis2_wsdl_ext_soap_body.h
+ * @brief Axis2 Wsdl ext_soap_body 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>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct axis2_wsdl_component;    
+typedef struct axis2_wsdl_ext_soap_body axis2_wsdl_ext_soap_body_t;
+typedef struct axis2_wsdl_ext_soap_body_ops axis2_wsdl_ext_soap_body_ops_t;
+
+/** @defgroup axis2_wsdl_ext_soap_body Wsdl Ext Soap Body
+ * @ingroup axis2_wsdl
+ * @{
+ */
+
+/** 
+ * @brief Wsdl Ext Soap Body ops struct
+ * Encapsulator struct for ops of axis2_wsdl_ext_soap_body
+ */
+AXIS2_DECLARE_DATA struct axis2_wsdl_ext_soap_body_ops
+{
+	/** De-allocate memory
+  	 * @return status code
+  	 */
+	axis2_status_t (AXIS2_CALL *
+    free)(axis2_wsdl_ext_soap_body_t *ext_soap_body,
+	        axis2_env_t **env);
+
+    axis2_char_t *(AXIS2_CALL *
+    get_use) (axis2_wsdl_ext_soap_body_t *ext_soap_body,
+                                    axis2_env_t **env);
+
+    axis2_status_t (AXIS2_CALL *
+    set_use) (axis2_wsdl_ext_soap_body_t *ext_soap_body,
+                                    axis2_env_t **env,
+                                    axis2_char_t *use);
+
+    axis2_char_t *(AXIS2_CALL *
+    get_namespc_uri) (axis2_wsdl_ext_soap_body_t *ext_soap_body,
+                                    axis2_env_t **env);
+
+    axis2_status_t (AXIS2_CALL *
+    set_namespc_uri) (axis2_wsdl_ext_soap_body_t *ext_soap_body,
+                                    axis2_env_t **env,
+                                    axis2_char_t *namespc_uri);
+     
+};
+
+/** 
+ * @brief Wsdl container struct
+ *	Property for params  
+ */  
+AXIS2_DECLARE_DATA struct axis2_wsdl_ext_soap_body
+{
+	axis2_wsdl_ext_soap_body_ops_t *ops;
+    struct axis2_wsdl_extensible_element *ext_element;
+};
+
+/**
+ * Creates wsdl ext_soap_body struct
+ * @return pointer to newly created wsdl ext_soap_body
+ */
+AXIS2_DECLARE(axis2_wsdl_ext_soap_body_t *) 
+axis2_wsdl_ext_soap_body_create (axis2_env_t **env,
+                                    axis2_qname_t *qtype);
+
+/*************************** Function macros **********************************/
+
+#define AXIS2_WSDL_EXT_SOAP_BODY_FREE(ext_soap_body, env) \
+		((ext_soap_body)->ops->free (ext_soap_body, env))
+
+#define AXIS2_WSDL_EXT_SOAP_BODY_GET_USE(ext_soap_body, env) \
+		((ext_soap_body)->ops->get_use (ext_soap_body, env))
+
+#define AXIS2_WSDL_EXT_SOAP_BODY_SET_USE(ext_soap_body, env, use) \
+		((ext_soap_body)->ops->set_use (ext_soap_body, env, use))
+        
+#define AXIS2_WSDL_EXT_SOAP_BODY_GET_NAMESPC_URI(ext_soap_body, env) \
+		((ext_soap_body)->ops->get_namespc_uri (ext_soap_body, env))
+
+#define AXIS2_WSDL_EXT_SOAP_BODY_SET_NAMESPC_URI(ext_soap_body, env, namespc_uri) \
+		((ext_soap_body)->ops->set_namespc_uri (wsdl_feature, env, namespc_uri))        
+
+/*************************** End of function macros ***************************/
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif  /* AXIS2_WSDL_EXT_SOAP_BODY_H */

Added: webservices/axis2/trunk/c/include/axis2_wsdl_ext_soap_header.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_wsdl_ext_soap_header.h?rev=387834&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_ext_soap_header.h (added)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_ext_soap_header.h Wed Mar 22 03:22:22 2006
@@ -0,0 +1,136 @@
+/*
+ * 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_EXT_SOAP_HEADER_H
+#define AXIS2_WSDL_EXT_SOAP_HEADER_H
+
+/**
+ * @file axis2_wsdl_ext_soap_header.h
+ * @brief Axis2 Wsdl ext_soap_header 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>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct axis2_wsdl_component;    
+typedef struct axis2_wsdl_ext_soap_header axis2_wsdl_ext_soap_header_t;
+typedef struct axis2_wsdl_ext_soap_header_ops axis2_wsdl_ext_soap_header_ops_t;
+
+/** @defgroup axis2_wsdl_ext_soap_header Wsdl Ext Soap Header
+ * @ingroup axis2_wsdl
+ * @{
+ */
+
+/** 
+ * @brief Wsdl Ext Soap Header ops struct
+ * Encapsulator struct for ops of axis2_wsdl_ext_soap_header
+ */
+AXIS2_DECLARE_DATA struct axis2_wsdl_ext_soap_header_ops
+{
+	/** De-allocate memory
+  	 * @return status code
+  	 */
+	axis2_status_t (AXIS2_CALL *
+    free)(axis2_wsdl_ext_soap_header_t *ext_soap_header,
+	        axis2_env_t **env);
+
+    axis2_char_t *(AXIS2_CALL *
+    get_part) (axis2_wsdl_ext_soap_header_t *ext_soap_header,
+                                    axis2_env_t **env);
+
+    axis2_status_t (AXIS2_CALL *
+    set_part) (axis2_wsdl_ext_soap_header_t *ext_soap_header,
+                                    axis2_env_t **env,
+                                    axis2_char_t *part);
+
+    axis2_qname_t *(AXIS2_CALL *
+    get_msg_qname) (axis2_wsdl_ext_soap_header_t *ext_soap_header,
+                                    axis2_env_t **env);
+
+    axis2_status_t (AXIS2_CALL *
+    set_msg_qname) (axis2_wsdl_ext_soap_header_t *ext_soap_header,
+                                    axis2_env_t **env,
+                                    axis2_qname_t *msg_qname);
+     
+    axis2_qname_t *(AXIS2_CALL *
+    get_qelement) (axis2_wsdl_ext_soap_header_t *ext_soap_header,
+                                    axis2_env_t **env);
+
+    axis2_status_t (AXIS2_CALL *
+    set_qelement) (axis2_wsdl_ext_soap_header_t *ext_soap_header,
+                                    axis2_env_t **env,
+                                    axis2_qname_t *qelement);
+     
+};
+
+/** 
+ * @brief Wsdl container struct
+ *	Property for params  
+ */  
+AXIS2_DECLARE_DATA struct axis2_wsdl_ext_soap_header
+{
+	axis2_wsdl_ext_soap_header_ops_t *ops;
+    struct axis2_wsdl_ext_soap_body *ext_soap_body;
+};
+
+/**
+ * Creates wsdl ext_soap_header struct
+ * @return pointer to newly created wsdl ext_soap_header
+ */
+AXIS2_DECLARE(axis2_wsdl_ext_soap_header_t *) 
+axis2_wsdl_ext_soap_header_create (axis2_env_t **env,
+                                    axis2_qname_t *qtype);
+
+/*************************** Function macros **********************************/
+
+#define AXIS2_WSDL_EXT_SOAP_HEADER_FREE(ext_soap_header, env) \
+		((ext_soap_header)->ops->free (ext_soap_header, env))
+
+#define AXIS2_WSDL_EXT_SOAP_HEADER_GET_PART(ext_soap_header, env) \
+		((ext_soap_header)->ops->get_part (ext_soap_header, env))
+
+#define AXIS2_WSDL_EXT_SOAP_HEADER_SET_PART(ext_soap_header, env, part) \
+		((ext_soap_header)->ops->set_part (ext_soap_header, env, part))
+        
+#define AXIS2_WSDL_EXT_SOAP_HEADER_GET_MSG_QNAME(ext_soap_header, env) \
+		((ext_soap_header)->ops->get_msg_qname (ext_soap_header, env))
+
+#define AXIS2_WSDL_EXT_SOAP_HEADER_SET_MSG_QNAME(ext_soap_header, env, msg_qname) \
+		((ext_soap_header)->ops->set_msg_qname (wsdl_feature, env, msg_qname))        
+
+#define AXIS2_WSDL_EXT_SOAP_HEADER_GET_QELEMENT(ext_soap_header, env) \
+		((ext_soap_header)->ops->get_qelement (ext_soap_header, env))
+
+#define AXIS2_WSDL_EXT_SOAP_HEADER_SET_QELEMENT(ext_soap_header, env, qelement) \
+		((ext_soap_header)->ops->set_qelement (wsdl_feature, env, qelement))        
+
+/*************************** End of function macros ***************************/
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif  /* AXIS2_WSDL_EXT_SOAP_HEADER_H */