axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r408621 - in /webservices/axis2/trunk/c/woden: ./ include/woden/types/ include/woden/wsdl20/xml/ src/ src/schema/ src/types/ src/util/ src/wsdl20/ src/wsdl20/extensions/ src/wsdl20/xml/ src/xml/
Date Mon, 22 May 2006 09:44:21 GMT
Author: damitha
Date: Mon May 22 02:44:15 2006
New Revision: 408621

URL: http://svn.apache.org/viewvc?rev=408621&view=rev
Log:
Added new files and more work done

Added:
    webservices/axis2/trunk/c/woden/include/woden/types/
    webservices/axis2/trunk/c/woden/include/woden/types/woden_nc_name.h
    webservices/axis2/trunk/c/woden/include/woden/types/woden_xml_char.h
    webservices/axis2/trunk/c/woden/include/woden/wsdl20/xml/axis2_woden_endpoint_element.h
    webservices/axis2/trunk/c/woden/src/types/
    webservices/axis2/trunk/c/woden/src/types/Makefile.am
    webservices/axis2/trunk/c/woden/src/types/nc_name.c
    webservices/axis2/trunk/c/woden/src/types/xml_char.c
    webservices/axis2/trunk/c/woden/src/wsdl20/xml/endpoint_element.c
Modified:
    webservices/axis2/trunk/c/woden/build.sh
    webservices/axis2/trunk/c/woden/configure.ac
    webservices/axis2/trunk/c/woden/include/woden/wsdl20/xml/axis2_woden_desc_element.h
    webservices/axis2/trunk/c/woden/src/Makefile.am
    webservices/axis2/trunk/c/woden/src/schema/Makefile.am
    webservices/axis2/trunk/c/woden/src/schema/schema.c
    webservices/axis2/trunk/c/woden/src/util/Makefile.am
    webservices/axis2/trunk/c/woden/src/wsdl20/Makefile.am
    webservices/axis2/trunk/c/woden/src/wsdl20/extensions/Makefile.am
    webservices/axis2/trunk/c/woden/src/wsdl20/xml/Makefile.am
    webservices/axis2/trunk/c/woden/src/wsdl20/xml/desc_element.c
    webservices/axis2/trunk/c/woden/src/xml/Makefile.am

Modified: webservices/axis2/trunk/c/woden/build.sh
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/build.sh?rev=408621&r1=408620&r2=408621&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/build.sh (original)
+++ webservices/axis2/trunk/c/woden/build.sh Mon May 22 02:44:15 2006
@@ -1,4 +1,4 @@
 #!/bin/bash
 ./autogen.sh
-./configure --enable-static=no
+./configure --enable-static=no --with-axis2_util=${AXIS2C_HOME}/include --with-axis2_axiom=${AXIS2C_HOME}/include --with-axis2_xml_schema=/home/damitha/projects/c/xml_schema/include
 make

Modified: webservices/axis2/trunk/c/woden/configure.ac
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/configure.ac?rev=408621&r1=408620&r2=408621&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/configure.ac (original)
+++ webservices/axis2/trunk/c/woden/configure.ac Mon May 22 02:44:15 2006
@@ -38,11 +38,90 @@
 AC_FUNC_REALLOC
 #AC_CHECK_FUNCS([memmove])
 
+AC_MSG_CHECKING(To Use Axis2 C AXIOM. This is a compulsory module to build Axis2 C)
+AC_ARG_WITH(axiom,
+[  --with-axiom[=PATH]      use axiom.],
+[ case "$withval" in
+  no)
+    AC_MSG_RESULT(no)
+    ;;
+  *)
+    AC_MSG_RESULT(yes)
+    dnl Find axiom include dir in the path
+    if test -d $withval; then
+        axiominc="-I$withval"
+    dnl else find the axiom include dir in $(AXIS2C_HOME)/include
+    elif test -d '$(AXIS2C_HOME)/include'; then
+        axiominc="-I$(AXIS2C_HOME)/include"
+    else
+        AC_MSG_ERROR(could not find axiom. stop)
+    fi
+    ;;
+  esac ],
+  AC_MSG_RESULT(no)
+)
+
+AC_MSG_CHECKING(To Use Axis2 C Util. This is a compulsory module to build Axis2 C)
+AC_ARG_WITH(axis2_util,
+[  --with-axis2_util[=PATH]      use axis2_util.],
+[ case "$withval" in
+  no)
+    AC_MSG_RESULT(no)
+    ;;
+  *)
+    AC_MSG_RESULT(yes)
+    dnl Find axis2_util include dir in the path
+    if test -d $withval; then
+        axis2_utilinc="-I$withval"
+    dnl else find the axis2_util include dir in $(AXIS2C_HOME)/include
+    elif test -d '$(AXIS2C_HOME)/include'; then
+        axis2_utilinc="-I$(AXIS2C_HOME)/include"
+    else
+        AC_MSG_ERROR(could not find axis2_util. stop)
+    fi
+    ;;
+  esac ],
+  AC_MSG_RESULT(no)
+)
+
+AC_MSG_CHECKING(To Use Xml Schema. This is a compulsory module to build Woden C)
+AC_ARG_WITH(axis2_xml_schema,
+[  --with-axis2_xml_schema[=PATH]      use axis2_xml_schema.],
+[ case "$withval" in
+  no)
+    AC_MSG_RESULT(no)
+    ;;
+  *)
+    AC_MSG_RESULT(yes)
+    dnl Find axis2_xml_schema include dir in the path
+    if test -d $withval; then
+        axis2_xml_schemainc="-I$withval"
+    dnl else find the axis2_xml_schema include dir in $(AXIS2C_HOME)/include
+    elif test -d '$(AXIS2C_HOME)/include'; then
+        axis2_xml_schemainc="-I$(AXIS2C_HOME)/include"
+    else
+        AC_MSG_ERROR(could not find axis2_xml_schema. stop)
+    fi
+    ;;
+  esac ],
+  AC_MSG_RESULT(no)
+)
+
+
+AXIOMINC=$axiominc
+UTILINC=$axis2_utilinc
+XMLSCHEMAINC=$axis2_xml_schemainc
+
+AC_SUBST(AXIOMINC)
+AC_SUBST(UTILINC)
+AC_SUBST(XMLSCHEMAINC)
+
 AC_CONFIG_FILES([Makefile \
     src/Makefile \
     src/util/Makefile \
     src/schema/Makefile \
     src/xml/Makefile \
+    src/types/Makefile \
     src/wsdl20/Makefile \
     src/wsdl20/xml/Makefile \
     src/wsdl20/extensions/Makefile

Added: webservices/axis2/trunk/c/woden/include/woden/types/woden_nc_name.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/include/woden/types/woden_nc_name.h?rev=408621&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/include/woden/types/woden_nc_name.h (added)
+++ webservices/axis2/trunk/c/woden/include/woden/types/woden_nc_name.h Mon May 22 02:44:15 2006
@@ -0,0 +1,116 @@
+/*
+ * 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 WODEN_NC_NAME_H
+#define WODEN_NC_NAME_H
+
+/**
+ * @file woden_nc_name.h
+ * @brief Axis2 NC Name Interface
+ * This class represents the data type NCName use for XML non-colonized names.
+ * It is based on the class of the same name in Apache Axis.
+ * 
+ */
+
+#include <axis2_allocator.h>
+#include <axis2_env.h>
+#include <axis2_error.h>
+#include <axis2_string.h>
+#include <axis2_const.h>
+#include <axis2_hash.h>
+#include <axis2_url.h>
+#include <woden/axis2_woden.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+typedef struct woden_nc_name woden_nc_name_t;
+typedef struct woden_nc_name_ops woden_nc_name_ops_t;
+struct axis2_xml_nc_name;
+
+/** @defgroup woden_nc_name NC Name
+  * @ingroup axis2_wsdl
+  * @{
+  */
+
+struct woden_nc_name_ops
+{
+	/** 
+     * Deallocate memory
+     * @return status code
+     */
+    axis2_status_t (AXIS2_CALL *
+    free) (
+            void *nc_name,
+            axis2_env_t **env);
+ 
+    axis2_bool_t (AXIS2_CALL *
+    is_valid) (
+            void *nc_name,
+            axis2_env_t **env,
+            axis2_char_t *st_value);
+
+    /**
+     * 
+     * @param value String representing an NCName
+     */
+    axis2_status_t (AXIS2_CALL *
+    set_value) (
+            void *nc_name,
+            axis2_env_t **env,
+            axis2_char_t *value);
+
+    axis2_char_t *(AXIS2_CALL *
+    to_string) (
+            void *nc_name,
+            axis2_env_t **env);
+
+   
+};
+
+struct woden_nc_name
+{
+    woden_nc_name_ops_t *ops;
+};
+
+AXIS2_DECLARE(woden_nc_name_t *)
+woden_nc_name_create(
+        axis2_env_t **env,
+        axis2_char_t *value);
+
+#define WODEN_NC_NAME_FREE(nc_name, env) \
+		(((woden_nc_name_t *) nc_name)->ops->free (nc_name, env))
+
+#define WODEN_NC_NAME_IS_VALID(nc_name, env, st_value) \
+		(((woden_nc_name_t *) nc_name)->ops-> \
+         is_valid (nc_name, env, st_value))
+
+#define WODEN_NC_NAME_SET_VALUE(nc_name, env, value) \
+		(((woden_nc_name_t *) nc_name)->ops-> \
+         set_value (nc_name, env, value))
+
+#define WODEN_NC_NAME_TO_STRING(nc_name, env) \
+		(((woden_nc_name_t *) nc_name)->ops-> \
+         to_string (nc_name, env))
+
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+#endif /* WODEN_NC_NAME_H */

Added: webservices/axis2/trunk/c/woden/include/woden/types/woden_xml_char.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/include/woden/types/woden_xml_char.h?rev=408621&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/include/woden/types/woden_xml_char.h (added)
+++ webservices/axis2/trunk/c/woden/include/woden/types/woden_xml_char.h Mon May 22 02:44:15 2006
@@ -0,0 +1,284 @@
+/*
+ * 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 WODEN_XML_CHAR_H
+#define WODEN_XML_CHAR_H
+
+/**
+ * @file woden_xml_char.h
+ * @brief Axis2 Xml Char Interface
+ * This class has been turned into C from Axis into Woden to support the NCName class.
+ * 
+ * This class defines the basic XML character properties. The data
+ * in this class can be used to verify that a character is a valid
+ * XML character or if the character is a space, name start, or name
+ * character.
+ * <p>
+ * A series of convenience methods are supplied to ease the burden
+ * of the developer. Because inlining the checks can improve per
+ * character performance, the tables of character properties are
+ * public. Using the character as an index into the <code>CHARS</code>
+ * array and applying the appropriate mask flag (e.g.
+ * <code>MASK_VALID</code>), yields the same results as calling the
+ * convenience methods. There is one exception: check the comments
+ * for the <code>isValid</code> method for details.
+ *
+ */
+
+#include <axis2_allocator.h>
+#include <axis2_env.h>
+#include <axis2_error.h>
+#include <axis2_string.h>
+#include <axis2_utils.h>
+#include <axis2_hash.h>
+#include <axis2_url.h>
+#include <woden/axis2_woden.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/** @defgroup woden_xml_char Xml Char
+  * @ingroup axis2_wsdl
+  * @{
+  */
+
+/**
+ * Returns AXIS2_TRUE if the specified character is a supplemental character.
+ *
+ * @param c The character to check.
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_supplemental(
+        int c); 
+
+/**
+ * Returns AXIS2_TRUE the supplemental character corresponding to the given
+ * surrogates.
+ *
+ * @param h The high surrogate.
+ * @param l The low surrogate.
+ */
+int AXIS2_CALL 
+woden_xml_char_supplemental(
+        char h, 
+        char l); 
+
+/**
+ * Returns the high surrogate of a supplemental character
+ *
+ * @param c The supplemental character to "split".
+ */
+axis2_char_t AXIS2_CALL 
+woden_xml_char_high_surrogate(
+        int c); 
+
+/**
+ * Returns the low surrogate of a supplemental character
+ *
+ * @param c The supplemental character to "split".
+ */
+axis2_char_t AXIS2_CALL 
+woden_xml_char_low_surrogate(
+        int c); 
+
+/**
+ * Returns whether the given character is a high surrogate
+ *
+ * @param c The character to check.
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_high_surrogate(
+        int c); 
+
+/**
+ * Returns whether the given character is a low surrogate
+ *
+ * @param c The character to check.
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_low_surrogate(
+        int c); 
+
+
+/**
+ * Returns AXIS2_TRUE if the specified character is valid. This method
+ * also checks the surrogate character range from 0x10000 to 0x10FFFF.
+ * <p>
+ * If the program chooses to apply the mask directly to the
+ * <code>xml_char_impl->CHARS</code> array, then they are responsible for checking
+ * the surrogate character range.
+ *
+ * @param c The character to check.
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_valid(
+        int c); 
+
+/**
+ * Returns AXIS2_TRUE if the specified character is invalid.
+ *
+ * @param c The character to check.
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_invalid(
+        int c); 
+
+/**
+ * Returns AXIS2_TRUE if the specified character can be considered content.
+ *
+ * @param c The character to check.
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_content(
+        int c); 
+
+/**
+ * Returns AXIS2_TRUE if the specified character can be considered markup.
+ * Markup characters include '&lt;', '&amp;', and '%'.
+ *
+ * @param c The character to check.
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_markup(
+        int c); 
+
+/**
+ * Returns AXIS2_TRUE if the specified character is a space character
+ * as defined by production [3] in the XML 1.0 specification.
+ *
+ * @param c The character to check.
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_space(
+        int c); 
+
+/**
+ * Returns AXIS2_TRUE if the specified character is a space character
+ * as amdended in the XML 1.1 specification.
+ *
+ * @param c The character to check.
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_xml11_space(
+        int c); 
+
+/**
+ * Returns AXIS2_TRUE if the specified character is a valid name start
+ * character as defined by production [5] in the XML 1.0
+ * specification.
+ *
+ * @param c The character to check.
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_name_start(
+        int c); 
+
+/**
+ * Returns AXIS2_TRUE if the specified character is a valid name
+ * character as defined by production [4] in the XML 1.0
+ * specification.
+ *
+ * @param c The character to check.
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_name(
+        int c); 
+
+/**
+ * Returns AXIS2_TRUE if the specified character is a valid nc_name start
+ * character as defined by production [4] in Namespaces in XML
+ * recommendation.
+ *
+ * @param c The character to check.
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_nc_name_start(
+        int c); 
+
+/**
+ * Returns AXIS2_TRUE if the specified character is a valid NCName
+ * character as defined by production [5] in Namespaces in XML
+ * recommendation.
+ *
+ * @param c The character to check.
+ */
+axis2_bool_t AXIS2_CALL
+woden_xml_char_is_nc_name(
+        int c); 
+
+/**
+ * Returns AXIS2_TRUE if the specified character is a valid Pubid
+ * character as defined by production [13] in the XML 1.0
+ * specification.
+ *
+ * @param c The character to check.
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_pubid(
+        int c);
+
+/*
+ * [5] Name ::= (Letter | '_' | ':'(NameChar)*
+ */
+/**
+ * Check to see if a string is a valid Name according to [5]
+ * in the XML 1.0 Recommendation
+ *
+ * @param name string to check
+ * @return AXIS2_TRUE if name is a valid Name
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_valid_name(
+        axis2_char_t *name);
+
+
+/*
+ * from the namespace rec
+ * [4] NCName ::= (Letter | '_'(NCNameChar)*
+ */
+/**
+ * Check to see if a string is a valid NCName according to [4]
+ * from the XML Namespaces 1.0 Recommendation
+ *
+ * @param nc_name string to check
+ * @return AXIS2_TRUE if name is a valid NCName
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_valid_nc_name(
+        axis2_char_t * nc_name);
+
+/*
+ * [7] Nmtoken ::= (NameChar)+
+ */
+/**
+ * Check to see if a string is a valid Nmtoken according to [7]
+ * in the XML 1.0 Recommendation
+ *
+ * @param nmtoken string to check
+ * @return AXIS2_TRUE if nmtoken is a valid nmtoken
+ */
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_valid_nmtoken(
+        axis2_char_t * nmtoken);
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+#endif /* WODEN_XML_CHAR_H */
+

Modified: webservices/axis2/trunk/c/woden/include/woden/wsdl20/xml/axis2_woden_desc_element.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/include/woden/wsdl20/xml/axis2_woden_desc_element.h?rev=408621&r1=408620&r2=408621&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/include/woden/wsdl20/xml/axis2_woden_desc_element.h (original)
+++ webservices/axis2/trunk/c/woden/include/woden/wsdl20/xml/axis2_woden_desc_element.h Mon May 22 02:44:15 2006
@@ -65,16 +65,16 @@
      */
     axis2_status_t (AXIS2_CALL *
     free) (
-            void *doc_el,
+            void *desc_el,
             axis2_env_t **env);
     
     axis2_status_t (AXIS2_CALL *
     to_desc_element_free) (
-            void *doc_el,
+            void *desc_el,
             axis2_env_t **env);
     
     axis2_woden_obj_types_t (AXIS2_CALL *
-    type) (void *doc_el,
+    type) (void *desc_el,
             axis2_env_t **env);
     
     axis2_status_t (AXIS2_CALL *
@@ -314,7 +314,7 @@
             axis2_env_t **env);
 
     axis2_status_t (AXIS2_CALL *
-    add_extension_registry) (
+    set_extension_registry) (
             void *desc_ele,
             axis2_env_t **env,
             void *ext_reg);
@@ -349,33 +349,182 @@
         axis2_hash_t *methods);
 /************************End of Woden C Internal Methods***********************/
 
-#define AXIS2_WODEN_DESC_ELEMENT_FREE(doc_el, env) \
-		(((axis2_woden_desc_element_t *) doc_el)->ops->\
-         free (doc_el, env))
-
-#define AXIS2_WODEN_DESC_ELEMENT_TO_DESC_ELEMENT_FREE(doc_el, env) \
-		(((axis2_woden_desc_element_t *) doc_el)->ops->\
-         to_desc_element_free (doc_el, env))
-
-#define AXIS2_WODEN_DESC_ELEMENT_TYPE(doc_el, env) \
-		(((axis2_woden_desc_element_t *) doc_el)->ops->\
-         type (doc_el, env))
-
-#define AXIS2_WODEN_DESC_ELEMENT_SET_REF(doc_el, env, uri) \
-		(((axis2_woden_desc_element_t *) doc_el)->ops->\
-         set_ref(doc_el, env, uri))
-
-#define AXIS2_WODEN_DESC_ELEMENT_GET_REF(doc_el, env) \
-		(((axis2_woden_desc_element_t *) doc_el)->ops->\
-         get_ref(doc_el, env))
-
-#define AXIS2_WODEN_DESC_ELEMENT_SET_REQUIRED(doc_el, env, required) \
-		(((axis2_woden_desc_element_t *) doc_el)->ops->\
-         set_required(doc_el, env, required))
-
-#define AXIS2_WODEN_DESC_ELEMENT_IS_REQUIRED(doc_el, env) \
-		(((axis2_woden_desc_element_t *) doc_el)->ops->\
-         is_required(doc_el, env))
+#define AXIS2_WODEN_DESC_ELEMENT_FREE(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+         free (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_TO_DESC_ELEMENT_FREE(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+         to_desc_element_free (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_TYPE(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+         type (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_SET_DOCUMENT_BASE_URI(desc_el, env, document_base_uri) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+         set_document_base_uri(desc_el, env, document_base_uri))
+
+#define AXIS2_WODEN_DESC_ELEMENT_GET_DOCUMENT_BASE_UTI(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+         get_document_base_uri(desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_SET_TARGET_NAMESPACE(desc_el, env, namespc_uri) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+         set_target_namespace(desc_el, env, namespc_uri))
+
+#define AXIS2_WODEN_DESC_ELEMENT_GET_TARGET_NAMESPACE(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+         get_target_namespace(desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_ADD_NAMESPACE(desc_el, env, namespc) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        add_namespace (desc_el, env, namespc))
+
+#define AXIS2_WODEN_DESC_ELEMENT_REMOVE_NAMESPACE(desc_el, env, prefix) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        remove_namespace (desc_el, env, prefix))
+
+#define AXIS2_WODEN_DESC_ELEMENT_GET_NAMESPACE(desc_el, env, prefix) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        get_namespace (desc_el, env, prefix))
+
+#define AXIS2_WODEN_DESC_ELEMENT_GET_NAMESPACES(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        get_namespaces (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_DOCUMENTATION_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_documentation_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_IMPORT_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_import_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_INCLUDE_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_include_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATET_TYPES_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_types_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_INTERFACE_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_interface_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_INTERFACE_FAULT_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_interface_fault_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_INTERFACE_OP_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_interace_op_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_INTERFACE_FAULT_REF_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        craete_interface_fault_ref_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_INTERFACE_MSG_REF_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_interface_msg_ref_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_BINDING_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_binding_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_BINDING_FAULT_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_binding_fault_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_BINDING_OP_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_binding_op_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_BINDING_FAULT_REF_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_binding_fault_ref_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_BINDING_MSG_REF_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_binding_msg_ref_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_FEATURE_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_feature_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_SVC_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_svc_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_ENDPOINT_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_endpoint_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_CREATE_PROPERTY_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        create_property_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_ADD_IMPORT_ELEMENT(desc_el, env, import_el) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        add_import_element (desc_el, env, import_el))
+
+#define AXIS2_WODEN_DESC_ELEMENT_GET_IMPORT_ELEMENTS(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        get_import_elements (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_ADD_INCLUDE_ELEMENT(desc_el, env, include_el) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        add_include_element (desc_el, env, include_el))
+
+#define AXIS2_WODEN_DESC_ELEMENT_GET_INCLUDE_ELEMENTS(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        get_include_elements (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_SET_TYPES_ELEMENT(desc_el, env, types_el) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        set_types_element (desc_el, env, types_el))
+
+#define AXIS2_WODEN_DESC_ELEMENT_GET_TYPES_ELEMENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        get_types_element (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_ADD_INTERFACE_ELEMENT(desc_el, env, interface_el) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        add_interface_element (desc_el, env, interface_el))
+
+#define AXIS2_WODEN_DESC_ELEMENT_GET_INTERFACE_ELEMENTS(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        get_interface_elements (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_ADD_BINDING_ELEMENT(desc_el, env, binding_el) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        add_binding_element (desc_el, env, binding_el))
+
+#define AXIS2_WODEN_DESC_ELEMENT_GET_BINDING_ELEMENTS(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        get_svc_elements (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_ADD_SVC_ELEMENT(desc_el, env, svc_el) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        add_svc_element (desc_el, env, svc_el))
+
+#define AXIS2_WODEN_DESC_ELEMENT_GET_SVC_ELEMENTS(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        get_svc_elements (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_SET_EXTENSION_REGISTRY(desc_el, env, ext_reg) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        set_extension_registry (desc_el, env, ext_reg))
+
+#define AXIS2_WODEN_DESC_ELEMENT_GET_EXTENSION_REGISTRY(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        get_extension_registry (desc_el, env))
+
+#define AXIS2_WODEN_DESC_ELEMENT_TO_COMPONENT(desc_el, env) \
+		(((axis2_woden_desc_element_t *) desc_el)->ops->\
+        to_component (desc_el, env))
+
 
 /** @} */
 #ifdef __cplusplus

Added: webservices/axis2/trunk/c/woden/include/woden/wsdl20/xml/axis2_woden_endpoint_element.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/include/woden/wsdl20/xml/axis2_woden_endpoint_element.h?rev=408621&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/include/woden/wsdl20/xml/axis2_woden_endpoint_element.h (added)
+++ webservices/axis2/trunk/c/woden/include/woden/wsdl20/xml/axis2_woden_endpoint_element.h Mon May 22 02:44:15 2006
@@ -0,0 +1,182 @@
+/*
+ * 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_WODEN_FEATURE_ELEMENT_H
+#define AXIS2_WODEN_FEATURE_ELEMENT_H
+
+/**
+ * @file axis2_woden_endpoint_element.h
+ * @brief Axis2 Feature Element Interface
+ * This interface represents an &lt;endpoint&gt; element 
+ * information item, a child element of WSDL &lt;service&gt;.
+ *
+ */
+
+#include <axis2_allocator.h>
+#include <axis2_env.h>
+#include <axis2_error.h>
+#include <axis2_string.h>
+#include <axis2_const.h>
+#include <axis2_hash.h>
+#include <axis2_qname.h>
+#include <axis2_url.h>
+#include <woden/axis2_woden.h>
+#include <woden/wsdl20/xml/axis2_woden_documentable_element.h>
+#include <woden/wsdl20/xml/axis2_woden_configurable_element.h>
+#include <woden/wsdl20/xml/axis2_woden_nested_element.h>
+#include <woden/types/woden_nc_name.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+typedef struct axis2_woden_endpoint_element axis2_woden_endpoint_element_t;
+typedef struct axis2_woden_endpoint_element_ops axis2_woden_endpoint_element_ops_t;
+typedef union axis2_woden_endpoint_element_base axis2_woden_endpoint_element_base_t;
+
+/** @defgroup axis2_woden_endpoint_element Feature Element
+  * @ingroup axis2_wsdl
+  * @{
+  */
+
+struct axis2_woden_endpoint_element_ops
+{
+	/** 
+     * Deallocate memory
+     * @return status code
+     */
+    axis2_status_t (AXIS2_CALL *
+    free) (
+            void *endpoint_el,
+            axis2_env_t **env);
+    
+    axis2_status_t (AXIS2_CALL *
+    to_endpoint_element_free) (
+            void *endpoint_el,
+            axis2_env_t **env);
+    
+    axis2_woden_obj_types_t (AXIS2_CALL *
+    type) (
+            void *endpoint_el,
+            axis2_env_t **env);
+    
+    axis2_status_t (AXIS2_CALL *
+    set_name) (
+            void *endpoint_el,
+            axis2_env_t **env,
+            woden_nc_name_t *name);
+
+    woden_nc_name_t *(AXIS2_CALL *
+    get_name) (
+            void *endpoint_el,
+            axis2_env_t **env);
+
+    axis2_status_t (AXIS2_CALL *
+    set_binding_qname) (
+            void *endpoint_el,
+            axis2_env_t **env,
+            axis2_qname_t *qname);
+
+    axis2_qname_t *(AXIS2_CALL *
+    get_binding_qname) (
+            void *endpoint_el,
+            axis2_env_t **env);
+
+    void *(AXIS2_CALL *
+    get_binding_element) (
+            void *endpoint_el,
+            axis2_env_t **env);
+
+    axis2_status_t (AXIS2_CALL *
+    set_address) (
+            void *endpoint_el,
+            axis2_env_t **env,
+            axis2_url_t *uri);
+
+    axis2_url_t *(AXIS2_CALL *
+    get_address) (
+            void *endpoint_el,
+            axis2_env_t **env);
+
+};
+
+union axis2_woden_endpoint_element_base
+{
+    axis2_woden_documentable_element_t documentable_element;
+    axis2_woden_configurable_element_t configurable_element;
+    axis2_woden_nested_element_t nested_element;
+};
+
+struct axis2_woden_endpoint_element
+{
+    axis2_woden_endpoint_element_base_t base;
+    axis2_woden_endpoint_element_ops_t *ops;
+};
+
+/************************Woden C Internal Methods******************************/
+axis2_status_t AXIS2_CALL
+axis2_woden_endpoint_element_resolve_methods(
+        axis2_woden_endpoint_element_t *endpoint_element,
+        axis2_env_t **env,
+        axis2_hash_t *methods);
+/************************End of Woden C Internal Methods***********************/
+
+#define AXIS2_WODEN_FEATURE_ELEMENT_FREE(endpoint_el, env) \
+		(((axis2_woden_endpoint_element_t *) endpoint_el)->ops->\
+         free (endpoint_el, env))
+
+#define AXIS2_WODEN_FEATURE_ELEMENT_TO_FEATURE_ELEMENT_FREE(endpoint_el, env) \
+		(((axis2_woden_endpoint_element_t *) endpoint_el)->ops->\
+         to_endpoint_element_free (endpoint_el, env))
+
+#define AXIS2_WODEN_FEATURE_ELEMENT_TYPE(endpoint_el, env) \
+		(((axis2_woden_endpoint_element_t *) endpoint_el)->ops->\
+         type (endpoint_el, env))
+
+#define AXIS2_WODEN_FEATURE_ELEMENT_SET_NAME(endpoint_el, env, name) \
+		(((axis2_woden_endpoint_element_t *) endpoint_el)->ops->\
+         set_ref(endpoint_el, env, name))
+
+#define AXIS2_WODEN_FEATURE_ELEMENT_GET_NAME(endpoint_el, env) \
+		(((axis2_woden_endpoint_element_t *) endpoint_el)->ops->\
+         get_ref(endpoint_el, env))
+
+#define AXIS2_WODEN_FEATURE_ELEMENT_SET_BINDING_QNAME(endpoint_el, env, qname) \
+		(((axis2_woden_endpoint_element_t *) endpoint_el)->ops->\
+         set_required(endpoint_el, env, qname))
+
+#define AXIS2_WODEN_FEATURE_ELEMENT_GET_BINDING_QNAME(endpoint_el, env) \
+		(((axis2_woden_endpoint_element_t *) endpoint_el)->ops->\
+         is_required(endpoint_el, env))
+
+#define AXIS2_WODEN_FEATURE_ELEMENT_GET_BINDING_ELEMENT(endpoint_el, env) \
+		(((axis2_woden_endpoint_element_t *) endpoint_el)->ops->\
+         is_required(endpoint_el, env))
+
+#define AXIS2_WODEN_FEATURE_ELEMENT_SET_ADDRESS(endpoint_el, env, uri) \
+		(((axis2_woden_endpoint_element_t *) endpoint_el)->ops->\
+         set_ref(endpoint_el, env, uri))
+
+#define AXIS2_WODEN_FEATURE_ELEMENT_GET_ADDRESS(endpoint_el, env) \
+		(((axis2_woden_endpoint_element_t *) endpoint_el)->ops->\
+         get_ref(endpoint_el, env))
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+#endif /* AXIS2_WODEN_FEATURE_ELEMENT_H */

Modified: webservices/axis2/trunk/c/woden/src/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/Makefile.am?rev=408621&r1=408620&r2=408621&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/Makefile.am (original)
+++ webservices/axis2/trunk/c/woden/src/Makefile.am Mon May 22 02:44:15 2006
@@ -1 +1 @@
-SUBDIRS = util schema xml wsdl20
+SUBDIRS = util types schema xml wsdl20

Modified: webservices/axis2/trunk/c/woden/src/schema/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/schema/Makefile.am?rev=408621&r1=408620&r2=408621&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/schema/Makefile.am (original)
+++ webservices/axis2/trunk/c/woden/src/schema/Makefile.am Mon May 22 02:44:15 2006
@@ -6,5 +6,6 @@
 							inlined_schema.c
 
 INCLUDES = -I$(top_builddir)/include \
-            -I$(AXIS2C_HOME)/include \
-            -I$(XML_SCHEMA)/include
+			@AXIOMINC@ \
+			@UTILINC@ \
+			@XMLSCHEMAINC@

Modified: webservices/axis2/trunk/c/woden/src/schema/schema.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/schema/schema.c?rev=408621&r1=408620&r2=408621&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/schema/schema.c (original)
+++ webservices/axis2/trunk/c/woden/src/schema/schema.c Mon May 22 02:44:15 2006
@@ -120,7 +120,7 @@
 
     if(schema_impl->f_namespc)
     {
-        AXIS2_URI_FREE((*env)->allocator, schema_impl->f_namespc);
+        AXIS2_URI_FREE(schema_impl->f_namespc, env);
         schema_impl->f_namespc = NULL;
     }
     

Added: webservices/axis2/trunk/c/woden/src/types/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/types/Makefile.am?rev=408621&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/types/Makefile.am (added)
+++ webservices/axis2/trunk/c/woden/src/types/Makefile.am Mon May 22 02:44:15 2006
@@ -0,0 +1,10 @@
+noinst_LTLIBRARIES = libaxis2_woden_types.la
+
+libaxis2_woden_types_la_SOURCES = \
+							xml_char.c \
+							nc_name.c
+
+INCLUDES = -I$(top_builddir)/include \
+			@AXIOMINC@ \
+			@UTILINC@ \
+			@XMLSCHEMAINC@

Added: webservices/axis2/trunk/c/woden/src/types/nc_name.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/types/nc_name.c?rev=408621&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/types/nc_name.c (added)
+++ webservices/axis2/trunk/c/woden/src/types/nc_name.c Mon May 22 02:44:15 2006
@@ -0,0 +1,175 @@
+/*
+ * 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 <woden/types/woden_nc_name.h>
+#include <woden/types/woden_xml_char.h>
+
+typedef struct woden_nc_name_impl woden_nc_name_impl_t;
+
+/** 
+ * @brief NC Name Struct Impl
+ *	Axis2 NC Name  
+ */ 
+struct woden_nc_name_impl
+{
+    woden_nc_name_t nc_name;
+    axis2_char_t *f_value;
+};
+
+#define INTF_TO_IMPL(nc_name) ((woden_nc_name_impl_t *) nc_name)
+
+axis2_status_t AXIS2_CALL 
+woden_nc_name_free(
+        void *nc_name,
+        axis2_env_t **envv);
+
+axis2_bool_t AXIS2_CALL
+woden_nc_name_is_valid(
+        void *nc_name,
+        axis2_env_t **env,
+        axis2_char_t *st_value);
+
+axis2_status_t AXIS2_CALL
+woden_nc_name_set_value(
+        void *nc_name,
+        axis2_env_t **env,
+        axis2_char_t *value);
+
+axis2_char_t *AXIS2_CALL
+woden_nc_name_to_string(
+        void *nc_name,
+        axis2_env_t **env);
+
+AXIS2_DECLARE(woden_nc_name_t *)
+woden_nc_name_create(
+        axis2_env_t **env,
+        axis2_char_t *value)
+{
+    woden_nc_name_impl_t *nc_name_impl = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    nc_name_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(woden_nc_name_impl_t));
+
+    nc_name_impl->f_value = NULL;
+
+    nc_name_impl->nc_name.ops = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(woden_nc_name_ops_t)); 
+    
+    nc_name_impl->nc_name.ops->free = woden_nc_name_free;
+    nc_name_impl->nc_name.ops->is_valid = woden_nc_name_is_valid;
+    nc_name_impl->nc_name.ops->set_value = woden_nc_name_set_value;
+    nc_name_impl->nc_name.ops->to_string = woden_nc_name_to_string;
+   
+    woden_nc_name_set_value(&(nc_name_impl->nc_name), env, value);
+
+    return &(nc_name_impl->nc_name);
+}
+
+axis2_status_t AXIS2_CALL
+woden_nc_name_free(
+        void *nc_name,
+        axis2_env_t **env)
+{
+    woden_nc_name_impl_t *nc_name_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    nc_name_impl = INTF_TO_IMPL(nc_name);
+
+    if(nc_name_impl->f_value)
+    {
+        AXIS2_FREE((*env)->allocator, nc_name_impl->f_value);
+        nc_name_impl->f_value = NULL;
+    }
+    
+    if((&(nc_name_impl->nc_name))->ops)
+    {
+        AXIS2_FREE((*env)->allocator, (&(nc_name_impl->nc_name))->ops);
+        (&(nc_name_impl->nc_name))->ops = NULL;
+    }
+
+    if(nc_name_impl)
+    {
+        AXIS2_FREE((*env)->allocator, nc_name_impl);
+        nc_name_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_bool_t AXIS2_CALL
+woden_nc_name_is_valid(
+        void *nc_name,
+        axis2_env_t **env,
+        axis2_char_t *st_value)
+{
+    woden_nc_name_impl_t *nc_name_impl = NULL;
+    int scan = 0;
+    axis2_bool_t b_valid = AXIS2_TRUE;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    nc_name_impl = INTF_TO_IMPL(nc_name);
+
+    for (scan=0; scan < AXIS2_STRLEN(st_value); scan++) 
+    {
+        if (scan == 0)
+          b_valid = woden_xml_char_is_nc_name_start (st_value[scan]);
+        else
+          b_valid = woden_xml_char_is_nc_name(st_value[scan]);
+        if (b_valid == AXIS2_FALSE)
+          break;
+    }
+    return b_valid;
+}
+
+axis2_status_t AXIS2_CALL
+woden_nc_name_set_value(
+        void *nc_name,
+        axis2_env_t **env,
+        axis2_char_t *value)
+{
+    woden_nc_name_impl_t *nc_name_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    nc_name_impl = INTF_TO_IMPL(nc_name);
+
+    if(AXIS2_TRUE != woden_nc_name_is_valid(nc_name, env, value))
+    {
+        AXIS2_ERROR_SET((*env)->error, STRING_DOES_NOT_REPRESENT_A_VALID_NC_NAME, 
+                AXIS2_FAILURE);
+    }
+    if(nc_name_impl->f_value)
+    {
+        AXIS2_FREE((*env)->allocator, nc_name_impl->f_value);
+        nc_name_impl->f_value = NULL;
+    }
+    nc_name_impl->f_value = AXIS2_STRDUP(value, env);
+
+    return AXIS2_SUCCESS;
+}
+
+axis2_char_t *AXIS2_CALL
+woden_nc_name_to_string(
+        void *nc_name,
+        axis2_env_t **env)
+{
+    woden_nc_name_impl_t *nc_name_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    nc_name_impl = INTF_TO_IMPL(nc_name);
+
+    return nc_name_impl->f_value;
+}
+

Added: webservices/axis2/trunk/c/woden/src/types/xml_char.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/types/xml_char.c?rev=408621&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/types/xml_char.c (added)
+++ webservices/axis2/trunk/c/woden/src/types/xml_char.c Mon May 22 02:44:15 2006
@@ -0,0 +1,524 @@
+/*
+ * 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 <woden/types/woden_xml_char.h>
+ 
+/** Character flags. */
+static axis2_char_t CHARS[1 << 16];
+
+/** Valid character mask. */
+static int MASK_VALID = 0x01;
+
+/** Space character mask. */
+static int MASK_SPACE = 0x02;
+
+/** Name start character mask. */
+static int MASK_NAME_START = 0x04;
+
+/** Name character mask. */
+static int MASK_NAME = 0x08;
+
+/** Pubid character mask. */
+static int MASK_PUBID = 0x10;
+
+/**
+ * Content character mask. Special characters are those that can
+ * be considered the start of markup, such as '&lt;' and '&amp;'.
+ * The various newline characters are considered special as well.
+ * All other valid XML characters can be considered content.
+ * <p>
+ * This is an optimization for the inner loop of character scanning.
+ */
+static int MASK_CONTENT = 0x20;
+
+/** NCName start character mask. */
+static int MASK_NCNAME_START = 0x40;
+
+/** NCName character mask. */
+static int MASK_NCNAME = 0x80;
+
+/*
+ *
+ * [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] |
+ *              [#xE000-#xFFFD] | [#x10000-#x10FFFF]
+ *
+ */
+static int char_range_len = 8;
+static int char_range[] = {
+    0x0009, 0x000A, 0x000D, 0x000D, 0x0020, 0xD7FF, 0xE000, 0xFFFD,
+};
+
+/*
+ *
+ * [3] S ::= (#x20 | #x9 | #xD | #xA)+
+ *
+ */
+static int space_char_len = 4;
+static int space_char[] = {
+    0x0020, 0x0009, 0x000D, 0x000A,
+};
+
+/*
+ * [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' |
+ *                  CombiningChar | Extender
+ */
+static int name_char_len = 2;
+static int name_char[] = {
+    0x002D, 0x002E, /* '-' and '.' */
+};
+
+/*
+ * [5] Name ::= (Letter | '_' | ':') (NameChar)*
+ */
+static int name_start_char_len = 2;
+static int name_start_char[] = {
+    0x003A, 0x005F, /* ':' and '_' */
+};
+
+/*
+ * [13] PubidChar ::= #x20 | 0xD | 0xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%]
+ */
+static int pubid_char_len = 9;
+static int pubid_char[] = {
+    0x000A, 0x000D, 0x0020, 0x0021, 0x0023, 0x0024, 0x0025, 0x003D,
+    0x005F
+};
+
+static int pubid_range_len = 6;
+static int pubid_range[] = {
+    0x0027, 0x003B, 0x003F, 0x005A, 0x0061, 0x007A
+};
+
+/*
+ * [84] Letter ::= BaseChar | Ideographic
+ */
+static int letter_range_len = 298; 
+static int letter_range[] = {
+    /* BaseChar */
+    0x0041, 0x005A, 0x0061, 0x007A, 0x00C0, 0x00D6, 0x00D8, 0x00F6,
+    0x00F8, 0x0131, 0x0134, 0x013E, 0x0141, 0x0148, 0x014A, 0x017E,
+    0x0180, 0x01C3, 0x01CD, 0x01F0, 0x01F4, 0x01F5, 0x01FA, 0x0217,
+    0x0250, 0x02A8, 0x02BB, 0x02C1, 0x0388, 0x038A, 0x038E, 0x03A1,
+    0x03A3, 0x03CE, 0x03D0, 0x03D6, 0x03E2, 0x03F3, 0x0401, 0x040C,
+    0x040E, 0x044F, 0x0451, 0x045C, 0x045E, 0x0481, 0x0490, 0x04C4,
+    0x04C7, 0x04C8, 0x04CB, 0x04CC, 0x04D0, 0x04EB, 0x04EE, 0x04F5,
+    0x04F8, 0x04F9, 0x0531, 0x0556, 0x0561, 0x0586, 0x05D0, 0x05EA,
+    0x05F0, 0x05F2, 0x0621, 0x063A, 0x0641, 0x064A, 0x0671, 0x06B7,
+    0x06BA, 0x06BE, 0x06C0, 0x06CE, 0x06D0, 0x06D3, 0x06E5, 0x06E6,
+    0x0905, 0x0939, 0x0958, 0x0961, 0x0985, 0x098C, 0x098F, 0x0990,
+    0x0993, 0x09A8, 0x09AA, 0x09B0, 0x09B6, 0x09B9, 0x09DC, 0x09DD,
+    0x09DF, 0x09E1, 0x09F0, 0x09F1, 0x0A05, 0x0A0A, 0x0A0F, 0x0A10,
+    0x0A13, 0x0A28, 0x0A2A, 0x0A30, 0x0A32, 0x0A33, 0x0A35, 0x0A36,
+    0x0A38, 0x0A39, 0x0A59, 0x0A5C, 0x0A72, 0x0A74, 0x0A85, 0x0A8B,
+    0x0A8F, 0x0A91, 0x0A93, 0x0AA8, 0x0AAA, 0x0AB0, 0x0AB2, 0x0AB3,
+    0x0AB5, 0x0AB9, 0x0B05, 0x0B0C, 0x0B0F, 0x0B10, 0x0B13, 0x0B28,
+    0x0B2A, 0x0B30, 0x0B32, 0x0B33, 0x0B36, 0x0B39, 0x0B5C, 0x0B5D,
+    0x0B5F, 0x0B61, 0x0B85, 0x0B8A, 0x0B8E, 0x0B90, 0x0B92, 0x0B95,
+    0x0B99, 0x0B9A, 0x0B9E, 0x0B9F, 0x0BA3, 0x0BA4, 0x0BA8, 0x0BAA,
+    0x0BAE, 0x0BB5, 0x0BB7, 0x0BB9, 0x0C05, 0x0C0C, 0x0C0E, 0x0C10,
+    0x0C12, 0x0C28, 0x0C2A, 0x0C33, 0x0C35, 0x0C39, 0x0C60, 0x0C61,
+    0x0C85, 0x0C8C, 0x0C8E, 0x0C90, 0x0C92, 0x0CA8, 0x0CAA, 0x0CB3,
+    0x0CB5, 0x0CB9, 0x0CE0, 0x0CE1, 0x0D05, 0x0D0C, 0x0D0E, 0x0D10,
+    0x0D12, 0x0D28, 0x0D2A, 0x0D39, 0x0D60, 0x0D61, 0x0E01, 0x0E2E,
+    0x0E32, 0x0E33, 0x0E40, 0x0E45, 0x0E81, 0x0E82, 0x0E87, 0x0E88,
+    0x0E94, 0x0E97, 0x0E99, 0x0E9F, 0x0EA1, 0x0EA3, 0x0EAA, 0x0EAB,
+    0x0EAD, 0x0EAE, 0x0EB2, 0x0EB3, 0x0EC0, 0x0EC4, 0x0F40, 0x0F47,
+    0x0F49, 0x0F69, 0x10A0, 0x10C5, 0x10D0, 0x10F6, 0x1102, 0x1103,
+    0x1105, 0x1107, 0x110B, 0x110C, 0x110E, 0x1112, 0x1154, 0x1155,
+    0x115F, 0x1161, 0x116D, 0x116E, 0x1172, 0x1173, 0x11AE, 0x11AF,
+    0x11B7, 0x11B8, 0x11BC, 0x11C2, 0x1E00, 0x1E9B, 0x1EA0, 0x1EF9,
+    0x1F00, 0x1F15, 0x1F18, 0x1F1D, 0x1F20, 0x1F45, 0x1F48, 0x1F4D,
+    0x1F50, 0x1F57, 0x1F5F, 0x1F7D, 0x1F80, 0x1FB4, 0x1FB6, 0x1FBC,
+    0x1FC2, 0x1FC4, 0x1FC6, 0x1FCC, 0x1FD0, 0x1FD3, 0x1FD6, 0x1FDB,
+    0x1FE0, 0x1FEC, 0x1FF2, 0x1FF4, 0x1FF6, 0x1FFC, 0x212A, 0x212B,
+    0x2180, 0x2182, 0x3041, 0x3094, 0x30A1, 0x30FA, 0x3105, 0x312C,
+    0xAC00, 0xD7A3,
+    /* Ideographic */
+    0x3021, 0x3029, 0x4E00, 0x9FA5,
+};
+
+static int letter_char_len = 52; 
+static int letter_char[] = {
+    /* BaseChar */
+    0x0386, 0x038C, 0x03DA, 0x03DC, 0x03DE, 0x03E0, 0x0559, 0x06D5,
+    0x093D, 0x09B2, 0x0A5E, 0x0A8D, 0x0ABD, 0x0AE0, 0x0B3D, 0x0B9C,
+    0x0CDE, 0x0E30, 0x0E84, 0x0E8A, 0x0E8D, 0x0EA5, 0x0EA7, 0x0EB0,
+    0x0EBD, 0x1100, 0x1109, 0x113C, 0x113E, 0x1140, 0x114C, 0x114E,
+    0x1150, 0x1159, 0x1163, 0x1165, 0x1167, 0x1169, 0x1175, 0x119E,
+    0x11A8, 0x11AB, 0x11BA, 0x11EB, 0x11F0, 0x11F9, 0x1F59, 0x1F5B,
+    0x1F5D, 0x1FBE, 0x2126, 0x212E,
+    /* Ideographic */
+    0x3007,
+};
+
+/*
+ * [87] CombiningChar ::= ...
+ */
+static int combining_char_range_len = 130;
+static int combining_char_range[] = {
+    0x0300, 0x0345, 0x0360, 0x0361, 0x0483, 0x0486, 0x0591, 0x05A1,
+    0x05A3, 0x05B9, 0x05BB, 0x05BD, 0x05C1, 0x05C2, 0x064B, 0x0652,
+    0x06D6, 0x06DC, 0x06DD, 0x06DF, 0x06E0, 0x06E4, 0x06E7, 0x06E8,
+    0x06EA, 0x06ED, 0x0901, 0x0903, 0x093E, 0x094C, 0x0951, 0x0954,
+    0x0962, 0x0963, 0x0981, 0x0983, 0x09C0, 0x09C4, 0x09C7, 0x09C8,
+    0x09CB, 0x09CD, 0x09E2, 0x09E3, 0x0A40, 0x0A42, 0x0A47, 0x0A48,
+    0x0A4B, 0x0A4D, 0x0A70, 0x0A71, 0x0A81, 0x0A83, 0x0ABE, 0x0AC5,
+    0x0AC7, 0x0AC9, 0x0ACB, 0x0ACD, 0x0B01, 0x0B03, 0x0B3E, 0x0B43,
+    0x0B47, 0x0B48, 0x0B4B, 0x0B4D, 0x0B56, 0x0B57, 0x0B82, 0x0B83,
+    0x0BBE, 0x0BC2, 0x0BC6, 0x0BC8, 0x0BCA, 0x0BCD, 0x0C01, 0x0C03,
+    0x0C3E, 0x0C44, 0x0C46, 0x0C48, 0x0C4A, 0x0C4D, 0x0C55, 0x0C56,
+    0x0C82, 0x0C83, 0x0CBE, 0x0CC4, 0x0CC6, 0x0CC8, 0x0CCA, 0x0CCD,
+    0x0CD5, 0x0CD6, 0x0D02, 0x0D03, 0x0D3E, 0x0D43, 0x0D46, 0x0D48,
+    0x0D4A, 0x0D4D, 0x0E34, 0x0E3A, 0x0E47, 0x0E4E, 0x0EB4, 0x0EB9,
+    0x0EBB, 0x0EBC, 0x0EC8, 0x0ECD, 0x0F18, 0x0F19, 0x0F71, 0x0F84,
+    0x0F86, 0x0F8B, 0x0F90, 0x0F95, 0x0F99, 0x0FAD, 0x0FB1, 0x0FB7,
+    0x20D0, 0x20DC, 0x302A, 0x302F,
+};
+
+static int combining_char_char_len = 29;
+static int combining_char_char[] = {
+    0x05BF, 0x05C4, 0x0670, 0x093C, 0x094D, 0x09BC, 0x09BE, 0x09BF,
+    0x09D7, 0x0A02, 0x0A3C, 0x0A3E, 0x0A3F, 0x0ABC, 0x0B3C, 0x0BD7,
+    0x0D57, 0x0E31, 0x0EB1, 0x0F35, 0x0F37, 0x0F39, 0x0F3E, 0x0F3F,
+    0x0F97, 0x0FB9, 0x20E1, 0x3099, 0x309A,
+};
+
+/*
+ * [88] Digit ::= ...
+ */
+static int digit_range_len = 30;
+static int digit_range[] = {
+    0x0030, 0x0039, 0x0660, 0x0669, 0x06F0, 0x06F9, 0x0966, 0x096F,
+    0x09E6, 0x09EF, 0x0A66, 0x0A6F, 0x0AE6, 0x0AEF, 0x0B66, 0x0B6F,
+    0x0BE7, 0x0BEF, 0x0C66, 0x0C6F, 0x0CE6, 0x0CEF, 0x0D66, 0x0D6F,
+    0x0E50, 0x0E59, 0x0ED0, 0x0ED9, 0x0F20, 0x0F29,
+};
+
+/*
+ * [89] Extender ::= ...
+ */
+static int extender_range_len = 6;
+static int extender_range[] = {
+    0x3031, 0x3035, 0x309D, 0x309E, 0x30FC, 0x30FE,
+};
+
+static int extender_char_len = 8;
+static int extender_char[] = {
+    0x00B7, 0x02D0, 0x02D1, 0x0387, 0x0640, 0x0E46, 0x0EC6, 0x3005,
+};
+
+/*
+ * SpecialChar ::= '<', '&', '\n', '\r', ']'
+ */
+static int special_char_len = 5;
+static int special_char[] = {
+    '<', '&', '\n', '\r', ']',
+};
+
+/*
+ * Initialize
+ */
+axis2_status_t AXIS2_CALL 
+woden_xml_char_init()
+{
+    int i = 0;
+    int j = 0;
+
+    /* set valid characters */
+    for (i = 0; i < char_range_len; i += 2) 
+    {
+        for (j = char_range[i]; j <= char_range[i + 1]; j++) 
+        {
+            CHARS[j] |= MASK_VALID | MASK_CONTENT;
+        }
+    }
+
+    /* remove special characters */
+    for (i = 0; i < special_char_len; i++) 
+    {
+        CHARS[special_char[i]] = (char)(CHARS[special_char[i]] & ~MASK_CONTENT);
+    }
+
+    /* set space characters */
+    for (i = 0; i < space_char_len; i++) 
+    {
+        CHARS[space_char[i]] |= MASK_SPACE;
+    }
+
+    /* set name start characters */
+    for (i = 0; i < name_start_char_len; i++) 
+    {
+        CHARS[name_start_char[i]] |= MASK_NAME_START | MASK_NAME |
+                                   MASK_NCNAME_START | MASK_NCNAME;
+    }
+    for (i = 0; i < letter_range_len; i += 2) 
+    {
+        for (j = letter_range[i]; j <= letter_range[i + 1]; j++) 
+        {
+            CHARS[j] |= MASK_NAME_START | MASK_NAME |
+                        MASK_NCNAME_START | MASK_NCNAME;
+        }
+    }
+    for (i = 0; i < letter_char_len; i++) 
+    {
+        CHARS[letter_char[i]] |= MASK_NAME_START | MASK_NAME |
+                                MASK_NCNAME_START | MASK_NCNAME;
+    }
+
+    /* set name characters */
+    for (i = 0; i < name_char_len; i++) 
+    {
+        CHARS[name_char[i]] |= MASK_NAME | MASK_NCNAME;
+    }
+    for (i = 0; i < digit_range_len; i += 2) 
+    {
+        for (j = digit_range[i]; j <= digit_range[i + 1]; j++) 
+        {
+            CHARS[j] |= MASK_NAME | MASK_NCNAME;
+        }
+    }
+    for (i = 0; i < combining_char_range_len; i += 2) 
+    {
+        for (j = combining_char_range[i]; j <= combining_char_range[i + 1]; j++) 
+        {
+            CHARS[j] |= MASK_NAME | MASK_NCNAME;
+        }
+    }
+    for (i = 0; i < combining_char_char_len; i++) 
+    {
+        CHARS[combining_char_char[i]] |= MASK_NAME | MASK_NCNAME;
+    }
+    for (i = 0; i < extender_range_len; i += 2) 
+    {
+        for (j = extender_range[i]; j <= extender_range[i + 1]; j++) 
+        {
+            CHARS[j] |= MASK_NAME | MASK_NCNAME;
+        }
+    }
+    for (i = 0; i < extender_char_len; i++) 
+    {
+        CHARS[extender_char[i]] |= MASK_NAME | MASK_NCNAME;
+    }
+
+    /* remove ':' from allowable MASK_NCNAME_START and MASK_NCNAME chars */
+    CHARS[':'] &= ~(MASK_NCNAME_START | MASK_NCNAME);
+
+    /* set Pubid characters */
+    for (i = 0; i < pubid_char_len; i++) 
+    {
+        CHARS[pubid_char[i]] |= MASK_PUBID;
+    }
+    for (i = 0; i < pubid_range_len; i += 2) 
+    {
+        for (j = pubid_range[i]; j <= pubid_range[i + 1]; j++) 
+        {
+            CHARS[j] |= MASK_PUBID;
+        }
+    }
+
+    return AXIS2_SUCCESS;
+} 
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_supplemental(
+        int c) 
+{
+    return (c >= 0x10000 && c <= 0x10FFFF);
+}
+
+int AXIS2_CALL 
+woden_xml_char_supplemental(
+        char h, 
+        char l) 
+{
+    return (h - 0xD800) * 0x400 + (l - 0xDC00) + 0x10000;
+}
+
+axis2_char_t AXIS2_CALL 
+woden_xml_char_high_surrogate(
+        int c) 
+{
+    return (char) (((c - 0x00010000) >> 10) + 0xD800);
+}
+
+axis2_char_t AXIS2_CALL 
+woden_xml_char_low_surrogate(
+        int c) 
+{
+    return (char) (((c - 0x00010000) & 0x3FF) + 0xDC00);
+}
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_high_surrogate(
+        int c) 
+{
+    return (0xD800 <= c && c <= 0xDBFF);
+}
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_low_surrogate(
+        int c) 
+{
+    return (0xDC00 <= c && c <= 0xDFFF);
+}
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_valid(
+        int c) 
+{
+    return (c < 0x10000 && (CHARS[c] & MASK_VALID) != 0) ||
+           (0x10000 <= c && c <= 0x10FFFF);
+} 
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_invalid(
+        int c) 
+{
+    return !woden_xml_char_is_valid(c);
+} 
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_content(
+        int c) 
+{
+    return (c < 0x10000 && (CHARS[c] & MASK_CONTENT) != 0) ||
+           (0x10000 <= c && c <= 0x10FFFF);
+} 
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_markup(
+        int c) 
+{
+    return c == '<' || c == '&' || c == '%';
+} 
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_space(
+        int c) 
+{
+    return c < 0x10000 && (CHARS[c] & MASK_SPACE) != 0;
+} 
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_xml11_space(
+        int c) 
+{
+    return (c < 0x10000 && (CHARS[c] & MASK_SPACE) != 0) ||
+        c == 0x85 || c == 0x2028;
+} 
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_name_start(
+        int c) 
+{
+    return c < 0x10000 && (CHARS[c] & MASK_NAME_START) != 0;
+} 
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_name(
+        int c) 
+{
+    return c < 0x10000 && (CHARS[c] & MASK_NAME) != 0;
+} 
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_nc_name_start(
+        int c) 
+{
+    return c < 0x10000 && (CHARS[c] & MASK_NCNAME_START) != 0;
+} 
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_nc_name(
+        int c) 
+{
+    return c < 0x10000 && (CHARS[c] & MASK_NCNAME) != 0;
+} 
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_pubid(
+        int c) 
+{
+    return c < 0x10000 && (CHARS[c] & MASK_PUBID) != 0;
+} 
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_valid_name(
+        axis2_char_t *name) 
+{
+    axis2_char_t ch = 0;
+    int i = 0;
+
+    if (AXIS2_STRLEN(name) == 0)
+        return AXIS2_FALSE;
+    ch = name[0];
+    if( woden_xml_char_is_name_start(ch) == AXIS2_FALSE)
+       return AXIS2_FALSE;
+    for (i = 1; i < AXIS2_STRLEN(name); i++ ) 
+    {
+       ch = name[i];
+       if( woden_xml_char_is_name( ch ) == AXIS2_FALSE )
+       {
+          return AXIS2_FALSE;
+       }
+    }
+    return AXIS2_TRUE;
+} 
+
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_valid_nc_name(
+        axis2_char_t * nc_name) 
+{
+    axis2_char_t ch = 0;
+    int i = 0;
+
+    if (AXIS2_STRLEN(nc_name) == 0)
+        return AXIS2_FALSE;
+    ch = nc_name[0];
+    if( woden_xml_char_is_nc_name_start(ch) == AXIS2_FALSE)
+       return AXIS2_FALSE;
+    for (i = 1; i < AXIS2_STRLEN(nc_name); i++ ) 
+    {
+       ch = nc_name[i];
+       if( woden_xml_char_is_nc_name( ch ) == AXIS2_FALSE )
+       {
+          return AXIS2_FALSE;
+       }
+    }
+    return AXIS2_TRUE;
+} 
+
+axis2_bool_t AXIS2_CALL 
+woden_xml_char_is_valid_nmtoken(
+        axis2_char_t * nmtoken) 
+{
+    axis2_char_t ch = 0;
+    int i = 0;
+
+    if (AXIS2_STRLEN(nmtoken) == 0)
+        return AXIS2_FALSE;
+    for (i = 0; i < AXIS2_STRLEN(nmtoken); i++ ) 
+    {
+       ch = nmtoken[i];
+       if(  ! woden_xml_char_is_name( ch ) )
+       {
+          return AXIS2_FALSE;
+       }
+    }
+    return AXIS2_TRUE;
+} 
+

Modified: webservices/axis2/trunk/c/woden/src/util/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/util/Makefile.am?rev=408621&r1=408620&r2=408621&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/util/Makefile.am (original)
+++ webservices/axis2/trunk/c/woden/src/util/Makefile.am Mon May 22 02:44:15 2006
@@ -6,4 +6,4 @@
 								 generic_obj.c
 
 INCLUDES = -I$(top_builddir)/include \
-            -I$(AXIS2C_HOME)/include
+			@UTILINC@

Modified: webservices/axis2/trunk/c/woden/src/wsdl20/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/Makefile.am?rev=408621&r1=408620&r2=408621&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/Makefile.am (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/Makefile.am Mon May 22 02:44:15 2006
@@ -27,5 +27,6 @@
 							binding_op.c
 
 INCLUDES = -I$(top_builddir)/include \
-            -I$(AXIS2C_HOME)/include \
-            -I$(XML_SCHEMA)/include
+			@AXIOMINC@ \
+			@UTILINC@ \
+			@XMLSCHEMAINC@

Modified: webservices/axis2/trunk/c/woden/src/wsdl20/extensions/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/extensions/Makefile.am?rev=408621&r1=408620&r2=408621&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/extensions/Makefile.am (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/extensions/Makefile.am Mon May 22 02:44:15 2006
@@ -6,4 +6,6 @@
 							component_exts.c
 
 INCLUDES = -I$(top_builddir)/include \
-            -I$(AXIS2C_HOME)/include
+			@AXIOMINC@ \
+			@UTILINC@ \
+			@XMLSCHEMAINC@

Modified: webservices/axis2/trunk/c/woden/src/wsdl20/xml/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/xml/Makefile.am?rev=408621&r1=408620&r2=408621&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/xml/Makefile.am (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/xml/Makefile.am Mon May 22 02:44:15 2006
@@ -21,8 +21,10 @@
 							include_element.c \
 							import_element.c \
 							fault_ref_element.c \
-							desc_element.c
+							desc_element.c \
+							endpoint_element.c
 
 INCLUDES = -I$(top_builddir)/include \
-            -I$(AXIS2C_HOME)/include \
-            -I$(XML_SCHEMA)/include
+			@AXIOMINC@ \
+			@UTILINC@ \
+			@XMLSCHEMAINC@

Modified: webservices/axis2/trunk/c/woden/src/wsdl20/xml/desc_element.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/xml/desc_element.c?rev=408621&r1=408620&r2=408621&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/xml/desc_element.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/xml/desc_element.c Mon May 22 02:44:15 2006
@@ -108,8 +108,8 @@
             "add_svc_element", AXIS2_HASH_KEY_STRING);
     desc_element->ops->get_svc_elements = axis2_hash_get(methods,
             "get_svc_elements", AXIS2_HASH_KEY_STRING);
-    desc_element->ops->add_extension_registry = axis2_hash_get(methods,
-            "add_extension_registry", AXIS2_HASH_KEY_STRING);
+    desc_element->ops->set_extension_registry = axis2_hash_get(methods,
+            "set_extension_registry", AXIS2_HASH_KEY_STRING);
     desc_element->ops->get_extension_registry = axis2_hash_get(methods,
             "get_extension_registry", AXIS2_HASH_KEY_STRING);
     desc_element->ops->to_component = axis2_hash_get(methods,

Added: webservices/axis2/trunk/c/woden/src/wsdl20/xml/endpoint_element.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/xml/endpoint_element.c?rev=408621&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/xml/endpoint_element.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/xml/endpoint_element.c Mon May 22 02:44:15 2006
@@ -0,0 +1,51 @@
+/*
+ * 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 <woden/wsdl20/xml/axis2_woden_endpoint_element.h>
+
+axis2_status_t AXIS2_CALL
+axis2_woden_endpoint_element_resolve_methods(
+        axis2_woden_endpoint_element_t *endpoint_element,
+        axis2_env_t **env,
+        axis2_hash_t *methods)
+{
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    
+    endpoint_element->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    endpoint_element->ops->to_endpoint_element_free = axis2_hash_get(methods, 
+            "to_endpoint_element_free", AXIS2_HASH_KEY_STRING);
+    endpoint_element->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    endpoint_element->ops->set_name = axis2_hash_get(methods,
+            "set_name", AXIS2_HASH_KEY_STRING);
+    endpoint_element->ops->get_name = axis2_hash_get(methods,
+            "get_name", AXIS2_HASH_KEY_STRING);
+    endpoint_element->ops->set_binding_qname = axis2_hash_get(methods,
+            "set_binding_qname", AXIS2_HASH_KEY_STRING);
+    endpoint_element->ops->get_binding_qname = axis2_hash_get(methods,
+            "get_binding_qname", AXIS2_HASH_KEY_STRING);
+    endpoint_element->ops->get_binding_element = axis2_hash_get(methods,
+            "get_binding_element", AXIS2_HASH_KEY_STRING);
+    endpoint_element->ops->set_address = axis2_hash_get(methods,
+            "set_address", AXIS2_HASH_KEY_STRING);
+    endpoint_element->ops->get_address = axis2_hash_get(methods,
+            "get_address", AXIS2_HASH_KEY_STRING);
+
+    return AXIS2_SUCCESS;    
+}
+

Modified: webservices/axis2/trunk/c/woden/src/xml/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/xml/Makefile.am?rev=408621&r1=408620&r2=408621&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/xml/Makefile.am (original)
+++ webservices/axis2/trunk/c/woden/src/xml/Makefile.am Mon May 22 02:44:15 2006
@@ -11,4 +11,6 @@
 							bool_attr.c
 
 INCLUDES = -I$(top_builddir)/include \
-            -I$(AXIS2C_HOME)/include
+			@AXIOMINC@ \
+			@UTILINC@ \
+			@XMLSCHEMAINC@



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message