axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r328595 - in /webservices/axis2/trunk/c: ./ modules/ modules/wsdl/ modules/wsdl/src/ modules/wsdl/test/
Date Wed, 26 Oct 2005 08:56:52 GMT
Author: damitha
Date: Wed Oct 26 01:56:36 2005
New Revision: 328595

URL: http://svn.apache.org/viewcvs?rev=328595&view=rev
Log:
Added builder files for wsdl module and some code

Added:
    webservices/axis2/trunk/c/modules/wsdl/
    webservices/axis2/trunk/c/modules/wsdl/Makefile.am
    webservices/axis2/trunk/c/modules/wsdl/src/
    webservices/axis2/trunk/c/modules/wsdl/src/Makefile.am
    webservices/axis2/trunk/c/modules/wsdl/src/axis2_wsdl_operation.c
    webservices/axis2/trunk/c/modules/wsdl/src/axis2_wsdl_service.c
    webservices/axis2/trunk/c/modules/wsdl/test/
    webservices/axis2/trunk/c/modules/wsdl/test/Makefile.am
Modified:
    webservices/axis2/trunk/c/configure
    webservices/axis2/trunk/c/configure.ac
    webservices/axis2/trunk/c/modules/Makefile.am
    webservices/axis2/trunk/c/modules/Makefile.in

Modified: webservices/axis2/trunk/c/configure
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/configure?rev=328595&r1=328594&r2=328595&view=diff
==============================================================================
--- webservices/axis2/trunk/c/configure (original)
+++ webservices/axis2/trunk/c/configure Wed Oct 26 01:56:36 2005
@@ -22948,7 +22948,7 @@
 fi
 
 
-                                                                                        
                                                                                         
                                                                                         
           ac_config_files="$ac_config_files Makefile modules/Makefile modules/core/Makefile
modules/core/context/Makefile modules/core/context/src/Makefile modules/core/description/Makefile
modules/core/description/src/Makefile modules/core/engine/Makefile modules/core/engine/src/Makefile
modules/xml/Makefile modules/xml/guththila/Makefile modules/xml/guththila/src/Makefile modules/xml/soap/Makefile
modules/xml/soap/src/Makefile modules/xml/om/Makefile modules/xml/om/src/Makefile modules/common/Makefile
modules/common/src/Makefile modules/common/test/Makefile modules/util/Makefile modules/util/src/Makefile
modules/util/test/Makefile modules/test/Makefile modules/test/om/Makefile modules/test/om/src/Makefile
modules/test/common/Makefile modules/test/util/Makefile modules/test/unit/Makefile"
+                                                                                        
                                                                                         
                                                                                         
                                         ac_config_files="$ac_config_files Makefile modules/Makefile
modules/core/Makefile modules/core/context/Makefile modules/core/context/src/Makefile modules/core/description/Makefile
modules/core/description/src/Makefile modules/core/engine/Makefile modules/core/engine/src/Makefile
modules/xml/Makefile modules/xml/guththila/Makefile modules/xml/guththila/src/Makefile modules/xml/soap/Makefile
modules/xml/soap/src/Makefile modules/xml/om/Makefile modules/xml/om/src/Makefile modules/common/Makefile
modules/common/src/Makefile modules/common/test/Makefile modules/util/Makefile modules/util/src/Makefile
modules/util/test/Makefile modules/wsdl/Makefile modules/wsdl/src/Makefile modules/wsdl/test/Makefile
modules/test/Makefile modules/test/om/Makefile modules/test/om/src/Makefile modules/test/common/Makefile
modules/test/util/Makefile modules/test/unit/Makefile"
 
 
 cat >confcache <<\_ACEOF
@@ -23571,6 +23571,9 @@
   "modules/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/util/Makefile" ;;
   "modules/util/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/util/src/Makefile" ;;
   "modules/util/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/util/test/Makefile"
;;
+  "modules/wsdl/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/wsdl/Makefile" ;;
+  "modules/wsdl/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/wsdl/src/Makefile" ;;
+  "modules/wsdl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/wsdl/test/Makefile"
;;
   "modules/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/test/Makefile" ;;
   "modules/test/om/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/test/om/Makefile" ;;
   "modules/test/om/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/test/om/src/Makefile"
;;

Modified: webservices/axis2/trunk/c/configure.ac
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/configure.ac?rev=328595&r1=328594&r2=328595&view=diff
==============================================================================
--- webservices/axis2/trunk/c/configure.ac (original)
+++ webservices/axis2/trunk/c/configure.ac Wed Oct 26 01:56:36 2005
@@ -108,6 +108,9 @@
     modules/util/Makefile \
     modules/util/src/Makefile \
     modules/util/test/Makefile \
+    modules/wsdl/Makefile \
+    modules/wsdl/src/Makefile \
+    modules/wsdl/test/Makefile \
     modules/test/Makefile \
     modules/test/om/Makefile \
     modules/test/om/src/Makefile \

Modified: webservices/axis2/trunk/c/modules/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/Makefile.am?rev=328595&r1=328594&r2=328595&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/Makefile.am (original)
+++ webservices/axis2/trunk/c/modules/Makefile.am Wed Oct 26 01:56:36 2005
@@ -8,6 +8,6 @@
   MAYBE_TEST = test
 endif
 
-#SUBDIRS = util common xml core test
+#SUBDIRS = util common xml core wsdl test
 SUBDIRS = util common $(MAYBE_XML) $(MAYBE_CORE)  $(MAYBE_TEST)
 #SUBDIRS = util common test

Modified: webservices/axis2/trunk/c/modules/Makefile.in
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/Makefile.in?rev=328595&r1=328594&r2=328595&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/Makefile.in (original)
+++ webservices/axis2/trunk/c/modules/Makefile.in Wed Oct 26 01:56:36 2005
@@ -173,7 +173,7 @@
 @COND_CORE_TRUE@MAYBE_CORE = core
 @COND_TEST_TRUE@MAYBE_TEST = test
 
-#SUBDIRS = util common xml core test
+#SUBDIRS = util common xml core wsdl test
 SUBDIRS = util common $(MAYBE_XML) $(MAYBE_CORE)  $(MAYBE_TEST)
 all: all-recursive
 

Added: webservices/axis2/trunk/c/modules/wsdl/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/Makefile.am?rev=328595&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/Makefile.am (added)
+++ webservices/axis2/trunk/c/modules/wsdl/Makefile.am Wed Oct 26 01:56:36 2005
@@ -0,0 +1 @@
+SUBDIRS = src test

Added: 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=328595&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/src/Makefile.am (added)
+++ webservices/axis2/trunk/c/modules/wsdl/src/Makefile.am Wed Oct 26 01:56:36 2005
@@ -0,0 +1,7 @@
+lib_LTLIBRARIES = libaxis2_wsdl.la
+AM_CPPFLAGS = $(CPPFLAGS)
+libaxis2_wsdl_la_SOURCES = axis2_wsdl_operation.c \
+                        axis2_wsdl_service.c
+
+libaxis2_wsdl_la_LIBADD = $(LDFLAGS)
+INCLUDES = -I$(top_builddir)/include -I${CUTEST_HOME}/include

Added: webservices/axis2/trunk/c/modules/wsdl/src/axis2_wsdl_operation.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/src/axis2_wsdl_operation.c?rev=328595&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/src/axis2_wsdl_operation.c (added)
+++ webservices/axis2/trunk/c/modules/wsdl/src/axis2_wsdl_operation.c Wed Oct 26 01:56:36
2005
@@ -0,0 +1,85 @@
+/*
+ * 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_operation.h>
+
+/** @struct axis2_wsdl_operation_s
+  * @brief WSDL operation
+  * This holds operations of wsdl operation
+  */
+struct axis2_wsdl_operation_s
+{
+	axis2_wsdl_operation_ops_t *ops;
+	
+};
+
+/***************************** Function headers *******************************/
+
+axis2_status_t axis2_wsdl_operation_ops_free(axis2_environment_t *env
+		, axis2_wsdl_operation_t *wsdl_opt);
+
+
+/***************************** End of function headers ************************/
+
+axis2_wsdl_operation_ops_t *axis2_wsdl_operation_get_ops
+		(axis2_environment_t *env
+		, axis2_wsdl_operation_t *wsdl_opt)
+{
+	if(!env || !wsdl_opt)
+	{
+		env->error->errorno = AXIS2_ERROR_INVALID_NULL_PARAMETER;
+		return NULL;
+	}
+	return wsdl_opt->ops;
+}
+
+axis2_wsdl_operation_t *axis2_wsdl_operation_create
+		(axis2_environment_t *env)
+{
+	axis2_wsdl_operation_t *wsdl_opt 
+		= (axis2_wsdl_operation_t *)
+		axis2_malloc (env->allocator, sizeof(axis2_wsdl_operation_t));
+	if(!wsdl_opt)
+	{
+		env->error->errorno = AXIS2_ERROR_NO_MEMORY;
+		return NULL;
+	}
+	axis2_wsdl_operation_ops_t *ops 
+		= (axis2_wsdl_operation_ops_t *)
+		axis2_malloc (env->allocator, sizeof(axis2_wsdl_operation_ops_t));
+	if(!ops)
+	{
+		env->error->errorno = AXIS2_ERROR_NO_MEMORY;
+		return NULL;	
+	}
+	ops->free = axis2_wsdl_operation_ops_free;
+	
+	
+	wsdl_opt->ops = ops;
+
+	return wsdl_opt;	
+}
+
+/******************************************************************************/
+
+axis2_status_t axis2_wsdl_operation_ops_free(axis2_environment_t *env
+		, axis2_wsdl_operation_t *wsdl_opt)
+{
+	if(!env || !wsdl_opt)
+		return AXIS2_ERROR_INVALID_NULL_PARAMETER;
+	axis2_free(env->allocator, wsdl_opt);
+	return AXIS2_SUCCESS;
+}

Added: webservices/axis2/trunk/c/modules/wsdl/src/axis2_wsdl_service.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/src/axis2_wsdl_service.c?rev=328595&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/src/axis2_wsdl_service.c (added)
+++ webservices/axis2/trunk/c/modules/wsdl/src/axis2_wsdl_service.c Wed Oct 26 01:56:36 2005
@@ -0,0 +1,84 @@
+/*
+ * 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_service.h>
+
+/** @struct axis2_wsdl_service_s
+  * @brief WSDL service
+  * This holds operations of wsdl service
+  */
+struct axis2_wsdl_service_s
+{
+	axis2_wsdl_service_ops_t *ops;
+	
+};
+
+/***************************** Function headers *******************************/
+
+axis2_status_t axis2_wsdl_service_ops_free(axis2_environment_t *env
+		, axis2_wsdl_service_t *wsdl_srv);
+
+
+/***************************** End of function headers ************************/
+
+axis2_wsdl_service_ops_t *axis2_wsdl_service_get_ops
+		(axis2_environment_t *env
+		, axis2_wsdl_service_t *wsdl_srv)
+{
+	if(!env || !wsdl_srv)
+	{
+		env->error->errorno = AXIS2_ERROR_INVALID_NULL_PARAMETER;
+		return NULL;
+	}
+	return wsdl_srv->ops;
+}
+
+axis2_wsdl_service_t *axis2_wsdl_service_create
+		(axis2_environment_t *env)
+{
+	axis2_wsdl_service_t *wsdl_srv 
+		= (axis2_wsdl_service_t *)
+		axis2_malloc (env->allocator, sizeof(axis2_wsdl_service_t));
+	if(!wsdl_srv)
+	{
+		env->error->errorno = AXIS2_ERROR_NO_MEMORY;
+		return NULL;
+	}
+	axis2_wsdl_service_ops_t *ops 
+		= (axis2_wsdl_service_ops_t *)
+		axis2_malloc (env->allocator, sizeof(axis2_wsdl_service_ops_t));
+	if(!ops)
+	{
+		env->error->errorno = AXIS2_ERROR_NO_MEMORY;
+		return NULL;	
+	}
+	ops->free = axis2_wsdl_service_ops_free;
+	
+	wsdl_srv->ops = ops;
+	
+	return wsdl_srv;	
+}
+
+/******************************************************************************/
+
+axis2_status_t axis2_wsdl_service_ops_free(axis2_environment_t *env
+		, axis2_wsdl_service_t *wsdl_srv)
+{
+	if(!env || !wsdl_srv)
+		return AXIS2_ERROR_INVALID_NULL_PARAMETER;
+	axis2_free(env->allocator, wsdl_srv);
+	return AXIS2_SUCCESS;
+}

Added: webservices/axis2/trunk/c/modules/wsdl/test/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/test/Makefile.am?rev=328595&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/test/Makefile.am (added)
+++ webservices/axis2/trunk/c/modules/wsdl/test/Makefile.am Wed Oct 26 01:56:36 2005
@@ -0,0 +1,14 @@
+prgbindir=$(prefix)/bin/unit_test
+prglibdir=$(prefix)/lib/unit_test
+prglib_LTLIBRARIES = libtest_wsdl.la
+AM_CPPFLAGS = $(CPPFLAGS)
+libtest_wsdl_la_SOURCES =
+include_HEADERS=$(top_builddir)/modules/wsdl/test/*.h
+
+libtest_wsdl_la_LIBADD = $(LDFLAGS) $(top_builddir)/modules/wsdl/src/libaxis2_wsdl.la
+INCLUDES = -I$(top_builddir)/include -I${CUTEST_HOME}/include
+
+prgbin_PROGRAMS = wsdl_test
+wsdl_test_SOURCES = main.c
+wsdl_test_LDADD   =  $(LDFLAGS) libtest_wsdl.la  $(top_builddir)/modules/wsdl/src/libaxis2_wsdl.la
+



Mime
View raw message