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/09/01 14:46:04 UTC

svn commit: r439295 [3/15] - in /webservices/axis2/trunk/c: tools/ tools/codegen/ tools/codegen/include/ tools/codegen/samples/ tools/codegen/samples/client/ tools/codegen/samples/client/calculator/ tools/codegen/samples/client/interop_test_svc/ tools/...

Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_writer_meta_info.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_writer_meta_info.h?rev=439295&view=auto
==============================================================================
--- webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_writer_meta_info.h (added)
+++ webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_writer_meta_info.h Fri Sep  1 05:45:57 2006
@@ -0,0 +1,1027 @@
+/*
+ * 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 W2C_SCHEMA_WRITER_META_INFO_H
+#define W2C_SCHEMA_WRITER_META_INFO_H
+
+/**
+ * @file w2c_schema_writer_meta_info.h
+ * @brief represent command line option
+ */
+
+#include <axis2_utils.h>
+#include <w2c_engine_configuration.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * @defgroup w2c_schema_writer_meta_info represent command line option
+ * @ingroup w2c_wsdl_utils
+ * @{
+ */
+
+typedef struct w2c_schema_writer_meta_info w2c_schema_writer_meta_info_t;
+typedef struct w2c_schema_writer_meta_info_ops w2c_schema_writer_meta_info_ops_t;
+
+AXIS2_DECLARE_DATA  struct w2c_schema_writer_meta_info_ops
+{
+   /**
+    * free w2c_schema_writer_meta_info.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @return status of the op. AXIS2_SUCCESS on success
+    *     else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    free)(w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+         const axis2_env_t *env);
+
+
+   /**
+    * setter for ordered.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  ordered value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_ordered)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_bool_t ordered);
+   /**
+    * getter for ordered.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @return value of the ordered
+    */ 
+    axis2_bool_t (AXIS2_CALL *
+    get_ordered)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+    /**
+     * setter for anonymous.
+     * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+     * @param  env Environment. MUST NOT be NULL
+     * @param  anonymous value to set
+     * @return status of the op. AXIS2_SUCCESS on success
+     *      else AXIS2_FAILURE
+     */
+    axis2_status_t (AXIS2_CALL *
+    set_anonymous)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_bool_t anonymous);
+
+   /**
+    * getter for anonymous.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @return value for the anonymous
+    */ 
+    axis2_bool_t (AXIS2_CALL *
+    get_anonymous)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for choice.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  choice value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_choice)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_bool_t choice);
+
+   /**
+    * getter for choice.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @return value for the choice
+    */ 
+    axis2_bool_t (AXIS2_CALL *
+    get_choice)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+   
+   /**
+    * setter for extension.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  extension value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_extension)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_bool_t extension);
+
+   /**
+    * getter for extension.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @return value for the extension
+    */
+    axis2_bool_t (AXIS2_CALL *
+    get_extension)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for restriction.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  restriction value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_restriction)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_bool_t restriction);
+
+   /**
+    * getter for restriction.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @return value for the restriction
+    */
+    axis2_bool_t (AXIS2_CALL *
+    get_restriction)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for extension_classname.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  extension_classname value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_extension_classname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_char_t *extension_classname);
+   /**
+    * getter for extension_classname.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the extension_classname
+    */
+    axis2_char_t *(AXIS2_CALL *
+    get_extension_classname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for restriction_classname.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  restriction_classname value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_restriction_classname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_char_t *restriction_classname);
+   /**
+    * getter for restriction_classname.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the restriction_classname
+    */
+    axis2_char_t *(AXIS2_CALL *
+    get_restriction_classname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for own_classname.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  own_classname value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_own_classname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_char_t *own_classname);
+   /**
+    * getter for own_classname.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the own_classname
+    */
+    axis2_char_t *(AXIS2_CALL *
+    get_own_classname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for enum_face.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  enum_face value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_enum_face)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_char_t *enum_face);
+   /**
+    * getter for enum_face.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the enum_face
+    */
+    axis2_char_t *(AXIS2_CALL *
+    get_enum_face)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for pattern_face.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  pattern_face value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_pattern_face)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_char_t *pattern_face);
+   /**
+    * getter for pattern_face.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the pattern_face
+    */
+    axis2_char_t *(AXIS2_CALL *
+    get_pattern_face)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for extension_basetype.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  extension_basetype value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_extension_basetype)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_qname_t *extension_basetype);
+   /**
+    * getter for extension_basetype.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the extension_basetype
+    */
+    axis2_qname_t *(AXIS2_CALL *
+    get_extension_basetype)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for restriction_basetype.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  restriction_basetype value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_restriction_basetype)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_qname_t *restriction_basetype);
+   /**
+    * getter for restriction_basetype.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the restriction_basetype
+    */
+    axis2_qname_t *(AXIS2_CALL *
+    get_restriction_basetype)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for ownqname.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  ownqname value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_ownqname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_qname_t *ownqname);
+   /**
+    * getter for ownqname.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the ownqname
+    */
+    axis2_qname_t *(AXIS2_CALL *
+    get_ownqname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for element2schema_qnamemap.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  element2schema_qnamemap value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_element2schema_qnamemap)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_hash_t *element2schema_qnamemap);
+   /**
+    * getter for element2schema_qnamemap.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the element2schema_qnamemap
+    */
+    axis2_hash_t *(AXIS2_CALL *
+    get_element2schema_qnamemap)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for element2classmap.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  element2classmap value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_element2classmap)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_hash_t *element2classmap);
+   /**
+    * getter for element2classmap.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the element2classmap
+    */
+    axis2_hash_t *(AXIS2_CALL *
+    get_element2classmap)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for specialtype_flagmap.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  specialtype_flagmap value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_specialtype_flagmap)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_hash_t *specialtype_flagmap);
+   /**
+    * getter for specialtype_flagmap.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the specialtype_flagmap
+    */
+    axis2_hash_t *(AXIS2_CALL *
+    get_specialtype_flagmap)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for qname_maxoccurs_countmap.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  qname_maxoccurs_countmap value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_qname_maxoccurs_countmap)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_hash_t *qname_maxoccurs_countmap);
+   /**
+    * getter for qname_maxoccurs_countmap.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the qname_maxoccurs_countmap
+    */
+    axis2_hash_t *(AXIS2_CALL *
+    get_qname_maxoccurs_countmap)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for qname_minoccurs_countmap.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  qname_minoccurs_countmap value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_qname_minoccurs_countmap)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_hash_t *qname_minoccurs_countmap);
+   /**
+    * getter for qname_minoccurs_countmap.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the qname_minoccurs_countmap
+    */
+    axis2_hash_t *(AXIS2_CALL *
+    get_qname_minoccurs_countmap)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for qname_orderlist.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  qname_orderlist value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_qname_orderlist)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            axis2_hash_t *qname_orderlist);
+   /**
+    * getter for qname_orderlist.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the qname_orderlist
+    */
+    axis2_hash_t *(AXIS2_CALL *
+    get_qname_orderlist)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for length_facet.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  length_facet value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_length_facet)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            long length_facet);
+   /**
+    * getter for length_facet.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the length_facet
+    */
+    long (AXIS2_CALL *
+    get_length_facet)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for maxexclusive_facet.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  maxexclusive_facet value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_maxexclusive_facet)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            long maxexclusive_facet);
+   /**
+    * getter for maxexclusive_facet.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the maxexclusive_facet
+    */
+    long (AXIS2_CALL *
+    get_maxexclusive_facet)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for minexclusive_facet.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  minexclusive_facet value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_minexclusive_facet)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            long minexclusive_facet);
+   /**
+    * getter for minexclusive_facet.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the minexclusive_facet
+    */
+    long (AXIS2_CALL *
+    get_minexclusive_facet)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for maxinclusive_facet.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  maxinclusive_facet value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_maxinclusive_facet)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            long maxinclusive_facet);
+   /**
+    * getter for maxinclusive_facet.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the maxinclusive_facet
+    */
+    long (AXIS2_CALL *
+    get_maxinclusive_facet)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for mininclusive_facet.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  mininclusive_facet value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_mininclusive_facet)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            long mininclusive_facet);
+   /**
+    * getter for mininclusive_facet.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the mininclusive_facet
+    */
+    long (AXIS2_CALL *
+    get_mininclusive_facet)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for maxlength_facet.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  maxlength_facet value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_maxlength_facet)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            long maxlength_facet);
+   /**
+    * getter for maxlength_facet.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the maxlength_facet
+    */
+    long (AXIS2_CALL *
+    get_maxlength_facet)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * setter for minlength_facet.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  minlength_facet value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_minlength_facet)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            long minlength_facet);
+   /**
+    * getter for minlength_facet.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  value for the minlength_facet
+    */
+    long (AXIS2_CALL *
+    get_minlength_facet)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+   /**
+    * setter for parent.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  parent value to set
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    set_parent)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env,
+                            w2c_schema_writer_meta_info_t *parent);
+   /**
+    * getter for parent.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @return value of the parent
+    */
+    w2c_schema_writer_meta_info_t *(AXIS2_CALL *
+    get_parent)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                            const axis2_env_t *env);
+
+   /**
+    * checks if it is a restriction base type.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  restriction_base_type vlaue to check
+    * return AXIS2_TRUE if it is a base type, AXIS2_FALSE otherwise
+    */
+    axis2_bool_t (AXIS2_CALL *
+    is_restriction_base_type)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                         const axis2_env_t *env,
+                         axis2_qname_t *restriction_base_type);
+
+   /**
+    * register nillable qname.
+    * @param  schema_writer_meta_info pointer to schema_writer_meta_info struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  qname qnamt to register
+    * @return status of the op. AXIS2_SUCCESS on success
+    *      else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    register_nillable_qname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                         const axis2_env_t *env,
+                         axis2_qname_t *qname);
+
+
+    axis2_status_t (AXIS2_CALL *
+    register_mapping)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                             const axis2_env_t *env,
+                             axis2_qname_t *qname,
+                             axis2_qname_t *schema_name,
+                             axis2_char_t *class_name,
+                             int type);
+
+    axis2_qname_t* (AXIS2_CALL *
+    get_schemaqname4qname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                             const axis2_env_t *env,
+                             axis2_qname_t *qname);
+
+
+    axis2_char_t* (AXIS2_CALL *
+    get_classname4qname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                             const axis2_env_t *env,
+                             axis2_qname_t *qname);
+
+
+    axis2_bool_t (AXIS2_CALL *
+    get_attri_status4qname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                             const axis2_env_t *env,
+                             axis2_qname_t *qname);
+
+    axis2_bool_t (AXIS2_CALL *
+    get_any_status4qname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                             const axis2_env_t *env,
+                             axis2_qname_t *qname);
+
+    axis2_bool_t (AXIS2_CALL *
+    get_array_status4qname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                             const axis2_env_t *env,
+                             axis2_qname_t *qname);
+
+    axis2_bool_t (AXIS2_CALL *
+    get_binary_status4qname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                             const axis2_env_t *env,
+                             axis2_qname_t *qname);
+
+    axis2_bool_t (AXIS2_CALL *
+    get_any_attri_status4qname)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                             const axis2_env_t *env,
+                             axis2_qname_t *qname);
+         
+    axis2_status_t (AXIS2_CALL *
+    add_min_occurs)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                             const axis2_env_t *env,
+                             axis2_qname_t *qname,
+                             long min_occurs);
+
+    axis2_status_t (AXIS2_CALL *
+    add_max_occurs)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                             const axis2_env_t *env,
+                             axis2_qname_t *qname,
+                             long max_occurs);
+
+    axis2_status_t (AXIS2_CALL *
+    register_qname_index)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                             const axis2_env_t *env,
+                             axis2_qname_t *qname,
+                             int index);
+
+    long (AXIS2_CALL *
+    get_min_occurs)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                             const axis2_env_t *env,
+                             axis2_qname_t *qname);
+
+    long (AXIS2_CALL *
+    get_max_occurs)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                             const axis2_env_t *env,
+                             axis2_qname_t *qname);
+
+    axis2_array_list_t* (AXIS2_CALL *
+    get_qname_array)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                              const axis2_env_t *env);
+
+    axis2_array_list_t* (AXIS2_CALL *
+    get_ordered_qname_array)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                              const axis2_env_t *env);
+
+    int (AXIS2_CALL *
+    get_order_start_point)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                              const axis2_env_t *env);
+
+
+    axis2_status_t (AXIS2_CALL *
+    add_status)( w2c_schema_writer_meta_info_t *schema_writer_meta_info,
+                             const axis2_env_t *env,
+                             axis2_qname_t *type,
+                             int mask);
+};
+
+AXIS2_DECLARE_DATA  struct w2c_schema_writer_meta_info
+{
+     struct w2c_schema_writer_meta_info_ops *ops;
+};
+
+
+/**
+ * create a schema_writer_meta_info obj.
+ * @param env Environment. MUST NOT be NULL
+ * @param parser user options parser
+ * @return newly created schema_writer_meta_info obj
+ */
+AXIS2_EXTERN w2c_schema_writer_meta_info_t* AXIS2_CALL
+w2c_schema_writer_meta_info_create( const axis2_env_t *env);
+
+/*************************** Function macros **********************************/
+
+#define W2C_SCHEMA_WRITER_META_INFO_FREE(schema_writer_meta_info, env) \
+      ((schema_writer_meta_info)->ops->free(schema_writer_meta_info, env)) 
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_ORDERED(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_ordered(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_ORDERED(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_ordered(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_ANONYMOUS(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_anonymous(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_ANONYMOUS(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_anonymous(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_CHOICE(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_choice(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_CHOICE(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_choice(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_EXTENSION(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_extension(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_EXTENSION(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_extension(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_RESTRICTION(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_restriction(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_RESTRICTION(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_restriction(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_EXTENSION_CLASSNAME(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_extension_classname(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_EXTENSION_CLASSNAME(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_extension_classname(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_RESTRICTION_CLASSNAME(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_restriction_classname(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_RESTRICTION_CLASSNAME(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_restriction_classname(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_OWN_CLASSNAME(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_own_classname(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_OWN_CLASSNAME(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_own_classname(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_ENUM_FACET(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_enum_facet(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_ENUM_FACET(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_enum_facet(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_PATTERN_FACET(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_pattern_facet(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_PATTERN_FACET(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_pattern_facet(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_EXTENSION_BASETYPE(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_extension_basetype(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_EXTENSION_BASETYPE(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_extension_basetype(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_RESTRICTION_BASETYPE(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_restriction_basetype(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_RESTRICTION_BASETYPE(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_restriction_basetype(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_OWNQNAME(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_ownqname(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_OWNQNAME(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_ownqname(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_ELEMENT2SCHEMA_QNAMEMAP(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_element2schema_qnamemap(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_ELEMENT2SCHEMA_QNAMEMAP(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_element2schema_qnamemap(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_ELEMENT2CLASSMAP(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_element2classmap(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_ELEMENT2CLASSMAP(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_element2classmap(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_SPECIALTYPE_FLAGMAP(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_specialtype_flagmap(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_SPECIALTYPE_FLAGMAP(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_specialtype_flagmap(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_QNAME_MAXOCCURS_COUNTMAP(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_qname_maxoccurs_countmap(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_QNAME_MAXOCCURS_COUNTMAP(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_qname_maxoccurs_countmap(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_QNAME_MINOCCURS_COUNTMAP(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_qname_minoccurs_countmap(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_QNAME_MINOCCURS_COUNTMAP(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_qname_minoccurs_countmap(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_QNAME_ORDERLIST(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_qname_orderlist(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_QNAME_ORDERLIST(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_qname_orderlist(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_LENGTH_FACET(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_length_facet(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_LENGTH_FACET(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_length_facet(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_MAXEXCLUSIVE_FACET(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_maxexclusive_facet(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_MAXEXCLUSIVE_FACET(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_maxexclusive_facet(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_MINEXCLUSIVE_FACET(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_minexclusive_facet(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_MINEXCLUSIVE_FACET(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_minexclusive_facet(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_MAXINCLUSIVE_FACET(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_maxinclusive_facet(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_MAXINCLUSIVE_FACET(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_maxinclusive_facet(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_MININCLUSIVE_FACET(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_mininclusive_facet(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_MININCLUSIVE_FACET(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_mininclusive_facet(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_MAXLENGTH_FACET(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_maxlength_facet(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_MAXLENGTH_FACET(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_maxlength_facet(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_MINLENGTH_FACET(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_minlength_facet(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_MINLENGTH_FACET(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_minlength_facet(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_NILLABLE_QNAMELIST(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_nillable_qnamelist(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_NILLABLE_QNAMELIST(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_nillable_qnamelist(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INFO_SET_PARENT(schema_writer_meta_info, env, value) \
+      ((schema_writer_meta_info)->ops->set_parent(schema_writer_meta_info, env, value))
+
+#define W2C_SCHEMA_WRITER_META_INFO_GET_PARENT(schema_writer_meta_info, env) \
+      ((schema_wrtier_meta_info)->ops->get_parent(schema_writer_meta_info, env))
+
+
+#define W2C_SCHEMA_WRITER_META_INOF_IS_RESTRICTION_BASE_TYPE(schema_writer_meta_info, env, type) \
+      ((schema_writer_meta_info)->ops->is_restriction_base_type(schema_writer_meta_info, env, type))
+
+#define W2C_SCHEMA_WRITER_META_INOF_REGISTER_NILLABLE_QNAME(schema_writer_meta_info, env, qname) \
+      ((schema_writer_meta_info)->ops->register_nillable_qname(schema_writer_meta_info, env, qname))
+
+#define W2C_SCHEMA_WRITER_META_INOF_REGISTER_MAPPING(schema_writer_meta_info, \
+                                       env, qname, schema_name, class_name, type) \
+      ((schema_writer_meta_info)->ops->register_mapping(schema_writer_meta_info, \
+                                       env, qname, schema_name, class_name, type)) 
+
+#define W2C_SCHEMA_WRITER_META_INOF_GET_SCHEMAQNAME4QNAME(schema_writer_meta_info, env, qname) \
+      ((schema_writer_meta_info)->ops->get_schemaqname4qname(schema_writer_meta_info, env, qname))
+
+#define W2C_SCHEMA_WRITER_META_INOF_GET_CLASSNAME4QNAME(schema_writer_meta_info, env, qname) \
+      ((schema_writer_meta_info)->ops->get_classname4qname(schema_writer_meta_info, env, qname))
+
+#define W2C_SCHEMA_WRITER_META_INOF_GET_ATTRI_STATUS4QNAME(schema_writer_meta_info, env, qname) \
+      ((schema_writer_meta_info)->ops->get_attri_status4qname(schema_writer_meta_info, env, qname))
+
+#define W2C_SCHEMA_WRITER_META_INOF_GET_ANY_STATUS4QNAME(schema_writer_meta_info, env, qname) \
+      ((schema_writer_meta_info)->ops->get_any_status4qname(schema_writer_meta_info, env, qname))
+
+#define W2C_SCHEMA_WRITER_META_INOF_GET_ARRAY_STATUS4QNAME(schema_writer_meta_info, env, qname) \
+      ((schema_writer_meta_info)->ops->get_array_status4qname(schema_writer_meta_info, env, qname))
+
+#define W2C_SCHEMA_WRITER_META_INOF_GET_BINARY_STATUS4QNAME(schema_writer_meta_info, env, qname) \
+      ((schema_writer_meta_info)->ops->get_binary_status4qname(schema_writer_meta_info, env, qname))
+
+#define W2C_SCHEMA_WRITER_META_INOF_GET_ANY_ATTRI_STATUS4QNAME(schema_writer_meta_info, env, qname) \
+      ((schema_writer_meta_info)->ops->get_any_attri_status4qname(schema_writer_meta_info, env, qname))
+
+#define W2C_SCHEMA_WRITER_META_INOF_ADD_MIN_OCCURS(schema_writer_meta_info, env, qname, min_occurs) \
+      ((schema_writer_meta_info)->ops->add_min_occurs(schema_writer_meta_info, env, qname, min_occurs))
+
+#define W2C_SCHEMA_WRITER_META_INOF_ADD_MAX_OCCURS(schema_writer_meta_info, env, qname, max_occurs) \
+      ((schema_writer_meta_info)->ops->add_max_occurs(schema_writer_meta_info, env, qname, max_occurs))
+
+#define W2C_SCHEMA_WRITER_META_INOF_REGISTER_QNAME_INDEX(schema_writer_meta_info, env, qname, index) \
+      ((schema_writer_meta_info)->ops->register_qname_index(schema_writer_meta_info, env, qname, index))
+
+#define W2C_SCHEMA_WRITER_META_INOF_GET_MIN_OCCURS(schema_writer_meta_info, env, qname) \
+      ((schema_writer_meta_info)->ops->get_min_occurs(schema_writer_meta_info, env, qname))
+
+#define W2C_SCHEMA_WRITER_META_INOF_GET_MAX_OCCURS(schema_writer_meta_info, env, qname) \
+      ((schema_writer_meta_info)->ops->get_max_occurs(schema_writer_meta_info, env, qname))
+
+#define W2C_SCHEMA_WRITER_META_INOF_GET_QNAME_ARRAY(schema_writer_meta_info, env) \
+      ((schema_writer_meta_info)->ops->get_qname_array(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INOF_GET_ORDERED_QNAME_ARRAY(schema_writer_meta_info, env) \
+      ((schema_writer_meta_info)->ops->get_ordered_qname_array(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INOF_GET_ORDER_START_POINT(schema_writer_meta_info, env) \
+      ((schema_writer_meta_info)->ops->get_order_start_point(schema_writer_meta_info, env))
+
+#define W2C_SCHEMA_WRITER_META_INOF_ADD_STATUS(schema_writer_meta_info, env, type, mask) \
+      ((schema_writer_meta_info)->ops->add_status(schema_writer_meta_info, env, type, mask))
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* W2C_SCHEMA_WRITER_META_INFO_H */

Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_string.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_string.h?rev=439295&view=auto
==============================================================================
--- webservices/axis2/trunk/c/tools/codegen/include/w2c_string.h (added)
+++ webservices/axis2/trunk/c/tools/codegen/include/w2c_string.h Fri Sep  1 05:45:57 2006
@@ -0,0 +1,98 @@
+/*
+ * 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 W2C_STRING_H
+#define W2C_STRING_H
+
+/**
+ * @file w2c_string.h
+ * @brief handles Axis2/C w2c handles string processing
+ */
+
+#include <stdio.h>
+#include <axis2_utils.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * @defgroup w2c_string handles string processing
+ * @ingroup w2c_utils
+ * @{
+ */    
+
+/**
+ * gives the index of the given axis2_char_tacter in its first occurrence.
+ * @param str		string operation apply
+ * @param c		character
+ * @return 		index of the first occurrence
+ */
+AXIS2_EXTERN int AXIS2_CALL
+w2c_string_indexof( axis2_char_t *str, axis2_char_t c );
+/**
+ * gives the index of the given axis2_char_tacters in its first occurrence.
+ * @param str		string operation apply
+ * @param cs		characters
+ * @return 		index of the first occurrence
+ */
+AXIS2_EXTERN int AXIS2_CALL
+w2c_string_indexof_cs( axis2_char_t *str, axis2_char_t *cs );
+
+/**
+ * if string1 is NULL new string created
+ * otherwise add string2 to string1.
+ * @param env pointer to the environment. MUST NOT be NULL
+ * @param string1	string
+ * @param string2	string
+ * @return		added string
+ */
+AXIS2_EXTERN axis2_char_t*
+w2c_string_add_string ( axis2_char_t *string1, axis2_char_t *string2,
+                   const axis2_env_t *env );
+
+/**
+ * convert given name to an axis2/c convension
+ * ie whenver the case change '_' is placed between
+ * all letters convert to simple.
+ * @param name name to convert
+ * @param env pointer to the environment. MUST NOT be NULL
+ */
+AXIS2_EXTERN axis2_char_t*
+w2c_string_make_c_simple_name( axis2_char_t *name,
+                               const axis2_env_t *env);
+
+/**
+ * convert given name to an axis2/c convension macro name
+ * ie whenver the case change '_' is placed between
+ * all letters convert to capital.
+ * @param name name to convert
+ * @param env pointer to the environment. MUST NOT be NULL
+ */
+AXIS2_EXTERN axis2_char_t*
+w2c_string_make_c_macro_name(axis2_char_t *name,
+                               const axis2_env_t *env);
+
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* W2C_STRING_H */

Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_typemapper.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_typemapper.h?rev=439295&view=auto
==============================================================================
--- webservices/axis2/trunk/c/tools/codegen/include/w2c_typemapper.h (added)
+++ webservices/axis2/trunk/c/tools/codegen/include/w2c_typemapper.h Fri Sep  1 05:45:57 2006
@@ -0,0 +1,162 @@
+/*
+ * 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 W2C_TYPEMAPPER_H
+#define W2C_TYPEMAPPER_H
+
+/**
+ * @file w2c_typemapper.h
+ * @brief represent command line option
+ */
+
+#include <axis2_utils.h>
+#include <axis2_array_list.h>
+#include <axis2_hash.h>
+#include <axis2_qname.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#define W2C_TYPEMAPPER_MAPPING_PATH "/conf/typemappers/"
+/**
+ * @defgroup w2c_typemapper represent command line option
+ * @ingroup w2c_wsdl_utils
+ * @{
+ */
+
+typedef struct w2c_typemapper w2c_typemapper_t;
+typedef struct w2c_typemapper_ops w2c_typemapper_ops_t;
+
+AXIS2_DECLARE_DATA  struct w2c_typemapper_ops
+{
+   /**
+    * free w2c_typemapper.
+    * @param  typemapper pointer to typemapper struct
+    * @param  env Environment. MUST NOT be NULL
+    * @return status of the op. AXIS2_SUCCESS on success
+    *     else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    free)(w2c_typemapper_t *typemapper,
+         const axis2_env_t *env);
+
+   /**
+    * retrieve the parameter name to the given qname in wsdl
+    * parameter would hold the value of the corrosponding type.
+    * @param  typemapper pointer to typemapper struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  qname qname in wsdl to find the mapping
+    * @return langauge type name
+    */   
+    axis2_char_t* (AXIS2_CALL *
+    get_parameter_name)(w2c_typemapper_t *typemapper,
+          const axis2_env_t *env,
+          axis2_qname_t *qname);
+
+   /**
+    * retrieve the language type name to the given qname in wsdl.
+    * @param  typemapper pointer to typemapper struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  qname qname in wsdl to find the mapping
+    * @return langauge type name
+    */
+    axis2_char_t* (AXIS2_CALL *
+    get_type_name)(w2c_typemapper_t *typemapper,
+          const axis2_env_t *env,
+          axis2_qname_t *qname);
+
+   /**
+    * add a mapping to the list.
+    * @param  typemapper pointer to typemapper struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  qname qname in the wsdl 
+    * @param  name langauge specific type
+    * @return langauge type name
+    */
+    axis2_status_t (AXIS2_CALL *
+    add_typemapping_name)(w2c_typemapper_t *typemapper,
+          const axis2_env_t *env,
+          axis2_qname_t *qname,
+          axis2_char_t *name);
+
+   /**
+    * retrieve the language default type name.
+    * @param  typemapper pointer to typemapper struct
+    * @param  env Environment. MUST NOT be NULL
+    * @return the default mapping name ( langauge specific)
+    */
+    axis2_char_t* (AXIS2_CALL *
+    get_default_mapping_name)(w2c_typemapper_t *typemapper,
+          const axis2_env_t *env);
+
+   /**
+    * retrieve the default qname.
+    * @param  typemapper pointer to typemapper struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param the dafault qname ( defined in wsdl)
+    */
+    axis2_qname_t* (AXIS2_CALL *
+    get_default_qname)(w2c_typemapper_t *typemapper,
+          const axis2_env_t *env);
+
+};
+
+AXIS2_DECLARE_DATA  struct w2c_typemapper
+{
+     struct w2c_typemapper_ops *ops;
+};
+
+/**
+ * create a typemapper obj
+ * @param env Environment. MUST NOT be NULL
+ * @param filename filename to load the typemap
+ * @return newly created typemapper obj
+ */
+AXIS2_EXTERN w2c_typemapper_t* AXIS2_CALL
+w2c_typemapper_create_from_file( const axis2_env_t *env,
+                   axis2_char_t *filename);
+
+/*************************** Function macros **********************************/
+
+#define W2C_TYPEMAPPER_FREE(typemapper, env) \
+      ((typemapper)->ops->free (typemapper, env)) 
+
+#define W2C_TYPEMAPPER_GET_MAPPING_NAME(typemapper, env, qname)\
+      ((typemapper)->ops->get_mapping_name(typemapper, env, qname))
+    
+#define W2C_TYPEMAPPER_GET_PARAMETER_NAME(typemapper, env, qname)\
+      ((typemapper)->ops->get_parameter_name(typemapper, env, qname))
+    
+#define W2C_TYPEMAPPER_GET_TYPE_NAME(typemapper, env, qname)\
+      ((typemapper)->ops->get_type_name(typemapper, env, qname))
+
+#define W2C_TYPEMAPPER_ADD_TYPEMAPPING_NAME(typemapper, env, qname, name)\
+      ((typemapper)->ops->add_typemapping_name(typemapper, env, qname, name))
+
+#define W2C_TYPEMAPPER_GET_DEFAULT_MAPPING_NAME(typemapper, env)\
+      ((typemapper)->ops->get_default_mapping_name(typemapper, env))
+
+#define W2C_TYPEMAPPER_GET_DEFAULT_QNAME(typemapper, env)\
+      ((typemapper)->ops->get_default_qname(typemapper, env))
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* W2C_TYPEMAPPER_H */

Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_url_processor.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_url_processor.h?rev=439295&view=auto
==============================================================================
--- webservices/axis2/trunk/c/tools/codegen/include/w2c_url_processor.h (added)
+++ webservices/axis2/trunk/c/tools/codegen/include/w2c_url_processor.h Fri Sep  1 05:45:57 2006
@@ -0,0 +1,62 @@
+/*
+ * 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 W2C_URL_PROCESSOR_H
+#define W2C_URL_PROCESSOR_H
+
+/**
+ * @file w2c_url_processor.h
+ * @brief handles Axis2/C w2c url processing
+ */
+
+#include <stdio.h>
+#include <axis2_utils.h>
+
+#ifdef __cplusplus
+
+extern "C"
+{
+#endif
+
+/** 
+ * @defgroup w2c_url_procesor w2c url processing
+ * @ingroup w2c_utils
+ * @{
+ */    
+
+#define W2C_URL_PROCESSOR_DEFAULT_PACKAGENAME "org.apache.axis2" 
+
+/**
+ * create a package name from namespace considering all syntax issues.
+ * @param env double pointer to environment struct. MUST NOT be NULL
+ * @param ns namespace to feed
+ * @return made package name
+ */
+
+AXIS2_EXTERN axis2_char_t* AXIS2_CALL
+w2c_url_processor_make_package_name ( 
+    const axis2_env_t *env,
+    axis2_char_t *ns);
+
+
+    
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* W2C_URL_PROCESSOR_H */

Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_writer.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_writer.h?rev=439295&view=auto
==============================================================================
--- webservices/axis2/trunk/c/tools/codegen/include/w2c_writer.h (added)
+++ webservices/axis2/trunk/c/tools/codegen/include/w2c_writer.h Fri Sep  1 05:45:57 2006
@@ -0,0 +1,130 @@
+/*
+ * 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 W2C_WRITER_H
+#define W2C_WRITER_H
+
+/**
+ * @file w2c_writer.h
+ * @brief represent command line option
+ */
+
+#include <axis2_utils.h>
+#include <axiom.h>
+#include <w2c_config_property_loader.h>
+#include <w2c_engine_configuration.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#define W2C_WRITER_XSLT_PATH "/conf/templates/"
+
+/**
+ * @defgroup w2c_writer represent command line option
+ * @ingroup w2c_wsdl_utils
+ * @{
+ */
+
+typedef struct w2c_writer w2c_writer_t;
+typedef struct w2c_writer_ops w2c_writer_ops_t;
+
+AXIS2_DECLARE_DATA  struct w2c_writer_ops
+{
+   /**
+    * free w2c_writer.
+    * @param  writer pointer to writer struct
+    * @param  env Environment. MUST NOT be NULL
+    * @return status of the op. AXIS2_SUCCESS on success
+    *     else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    free)(w2c_writer_t *writer,
+          const axis2_env_t *env);
+  
+   /**
+    * create the file to output.
+    * @param  writer pointer to writer struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param package_name package name to derive the directory name
+    * @param file_name name of the ouptut file
+    * @return full name of the created file
+    */  
+    axis2_char_t* (AXIS2_CALL *
+    create_out_file)(w2c_writer_t *writer,
+          const axis2_env_t *env,
+          axis2_char_t *package_name,
+          axis2_char_t *file_name);
+   
+   /**
+    * write the output from parsing a given name with xslt.
+    * @param  writer pointer to writer struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  root node which used to parse the xslt
+    * @return status of the op. AXIS2_SUCCESS on success
+    *     else AXIS2_FAILURE
+    */  
+    axis2_status_t (AXIS2_CALL *
+    parse)(w2c_writer_t *writer,
+          const axis2_env_t *env,
+          axiom_node_t *root);
+ 
+   /**
+    * initialize writer with configurations.
+    * @param  writer pointer to writer struct
+    * @param  env Environment. MUST NOT be NULL
+    * @param  loader loaded configuration properties
+    * @param  config confgurations based on user options
+    * @return status of the op. AXIS2_SUCCESS on success
+    *     else AXIS2_FAILURE
+    */
+    axis2_status_t (AXIS2_CALL *
+    initialize)(w2c_writer_t *writer,
+          const axis2_env_t *env,
+          w2c_config_property_loader_t *loader,
+          w2c_engine_configuration_t *config);
+
+};
+
+AXIS2_DECLARE_DATA  struct w2c_writer
+{
+     struct w2c_writer_ops *ops;
+};
+
+/** this is an interface for writer */
+
+/*************************** Function macros **********************************/
+
+#define W2C_WRITER_FREE(writer, env) \
+      ((writer)->ops->free (writer, env)) 
+
+#define W2C_WRITER_CREATE_OUT_FILE(writer, env, package, file) \
+      ((writer)->ops->create_out_file(writer, env, package, file ))
+
+#define W2C_WRITER_PARSE(writer, env, root) \
+      ((writer)->ops->parse(writer, env, root ))
+
+#define W2C_WRITER_INITIALIZE(writer, env, loader, config) \
+      ((writer)->ops->initialize(writer, env, loader, config))
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* W2C_WRITER_H */

Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_xslt_template_processor.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_xslt_template_processor.h?rev=439295&view=auto
==============================================================================
--- webservices/axis2/trunk/c/tools/codegen/include/w2c_xslt_template_processor.h (added)
+++ webservices/axis2/trunk/c/tools/codegen/include/w2c_xslt_template_processor.h Fri Sep  1 05:45:57 2006
@@ -0,0 +1,61 @@
+/*
+ * 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 W2C_XSLT_TEMPLATE_PROCESSOR_H
+#define W2C_XSLT_TEMPLATE_PROCESSOR_H
+
+/**
+ * @file w2c_xslt_template_processor.h
+ * @brief handles Axis2/C w2c xslt template processing
+ */
+
+#include <stdio.h>
+#include <axis2_utils.h>
+#include <axiom.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * @defgroup w2c_xslt_template_processor xslt template procssing
+ * @ingroup w2c_utils
+ * @{
+ */    
+ 
+
+/**
+ * Parses an XML stream with an XSL stream.
+ * @param env           double pointer to environment struct. MUST NOT be NULL
+ * @param xml_stream    source XML stream
+ * @param xslt_filename source XSL file name
+ * @param out_filename  filename to write the output
+ */
+AXIS2_EXTERN void AXIS2_CALL
+w2c_xslt_template_processor_parse(
+    const axis2_env_t *env,
+    axis2_char_t *xml_stream,
+    axis2_char_t *xslt_filename,
+    axis2_char_t *out_filename);
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* W2C_XSLT_TEMPLATE_PROCESSOR_H */

Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_xslt_utils.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_xslt_utils.h?rev=439295&view=auto
==============================================================================
--- webservices/axis2/trunk/c/tools/codegen/include/w2c_xslt_utils.h (added)
+++ webservices/axis2/trunk/c/tools/codegen/include/w2c_xslt_utils.h Fri Sep  1 05:45:57 2006
@@ -0,0 +1,112 @@
+/*
+ * 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 W2C_XSLT_UTILS_H
+#define W2C_XSLT_UTILS_H
+
+/**
+ * @file w2c_xslt_utils.h
+ * @brief contains Axis2/C xslt utility functions
+ */
+
+#include <stdio.h>
+#include <axis2_stream.h>
+#include <axis2_utils.h>
+#include <axiom.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * @defgroup w2c_xslt_utils xslt utilities
+ * @ingroup w2c_utils
+ * @{
+ */    
+
+/**
+ * add attribute to the parse node.
+ * @param env           double pointer to environment struct. MUST NOT be NULL
+ * @param om_node       node to add attrib
+ * @param attribute     name of the attribute
+ * @param attrib_value  valu of the attribute
+ */
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+w2c_xslt_utils_add_attribute(
+    const axis2_env_t *env,
+    axiom_node_t *om_node,
+    axis2_char_t *attribute,
+    axis2_char_t *attrib_value);
+
+/**
+ * add a child node.
+ * @param env           double pointer to environment struct. MUST NOT be NULL
+ * @param element_name  element name
+ * @param parent_node   parent node
+ * @return  new om node
+ */
+AXIS2_EXTERN axiom_node_t* AXIS2_CALL
+w2c_xslt_utils_add_child_node(
+    const axis2_env_t *env,
+    axis2_char_t *element_name,
+    axiom_node_t *parent_node);
+
+/**
+ * serialize to a buffer
+ * @param env           double pointer to environment struct. MUST NOT be NULL
+ * @param node          node to serialize
+ * @return  serialized bufffer
+ */
+AXIS2_EXTERN axis2_char_t* AXIS2_CALL
+w2c_xslt_utils_serialize(
+        const axis2_env_t *env,
+        axiom_node_t *root);
+
+/**
+ * add text to the node
+ * @param env           double pointer to environment struct. MUST NOT be NULL
+ * @param node          node to add the text
+ * @param text          text to add
+ * @return same node passed
+ */
+AXIS2_EXTERN axiom_node_t* AXIS2_CALL
+w2c_xslt_utils_add_text(
+    const axis2_env_t *env,
+    axiom_node_t *node,
+    axis2_char_t *text);
+
+/**
+ * copy all from 'from' to 'to'.
+ * @param env           double pointer to environment struct. MUST NOT be NULL
+ * @param to            node get copied
+ * @param from          node to copy
+ * @return AXIS2_SUCCESS in sucesss AXIS2_FAILURE in failure
+ */
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    w2c_xslt_utils_copy_node_tree(
+    const axis2_env_t *env,
+    axiom_node_t *to,
+    axiom_node_t *from );
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* W2C_XSLT_UTILS_H */

Added: webservices/axis2/trunk/c/tools/codegen/samples/client/calculator/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/samples/client/calculator/Makefile.am?rev=439295&view=auto
==============================================================================
--- webservices/axis2/trunk/c/tools/codegen/samples/client/calculator/Makefile.am (added)
+++ webservices/axis2/trunk/c/tools/codegen/samples/client/calculator/Makefile.am Fri Sep  1 05:45:57 2006
@@ -0,0 +1,27 @@
+prgbindir=$(prefix)/bin/samples
+prgbin_PROGRAMS = calculator
+samplesdir=$(prefix)/samples/client/calculator
+
+calculator_SOURCES = \
+      test_calculator.c \
+      axis2_stub_calculator.c
+
+
+calculator_LDADD   = $(LDFLAGS) \
+                    -L$(AXIS2C_HOME)/lib \
+                    -laxis2_util \
+                    -laxis2_axiom \
+                    -laxis2_wsdl \
+                    -laxis2_engine \
+                    -laxis2_parser \
+                    -lpthread \
+                    -laxis2_http_sender \
+                    -laxis2_http_receiver \
+                    -lwoden \
+                    -laxis2_xml_schema \
+                    $(GUTHTHILA_LIBS) \
+                    $(LIBXML2_LIBS)
+
+INCLUDES = -I$(AXIS2C_HOME)/include \
+			@UTILINC@ \
+			@AXIOMINC@

Propchange: webservices/axis2/trunk/c/tools/codegen/samples/client/calculator/Makefile.am
------------------------------------------------------------------------------
    svn:executable = *

Added: webservices/axis2/trunk/c/tools/codegen/samples/client/calculator/axis2_stub_calculator.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/samples/client/calculator/axis2_stub_calculator.c?rev=439295&view=auto
==============================================================================
--- webservices/axis2/trunk/c/tools/codegen/samples/client/calculator/axis2_stub_calculator.c (added)
+++ webservices/axis2/trunk/c/tools/codegen/samples/client/calculator/axis2_stub_calculator.c Fri Sep  1 05:45:57 2006
@@ -0,0 +1,536 @@
+
+
+/**
+ * axis2_stub_calculator.c
+ *
+ * This file was auto-generated from WSDL for "Calculator|http://localhost/axis/Calculator" service
+ * by the Apache Axis2/C version: #axisVersion# #today#
+ */
+
+#include "axis2_stub_calculator.h"
+
+/**
+ * axis2_stub_calculator C implementation
+ */
+
+axis2_stub_t*
+axis2_stub_calculator_create (const axis2_env_t *env,
+                                axis2_char_t *client_home,
+                                axis2_char_t *endpoint_uri)
+{
+    axis2_stub_t *stub = NULL;
+    axis2_endpoint_ref_t *endpoint_ref = NULL;
+    AXIS2_FUNC_PARAM_CHECK ( client_home, env, NULL)
+    
+    if (NULL == endpoint_uri )
+    {
+        endpoint_uri = axis2_stub_calculator_get_endpoint_uri_from_wsdl( env );
+    }
+    
+    endpoint_ref = axis2_endpoint_ref_create(env, endpoint_uri);
+    
+    stub = axis2_stub_create_with_endpoint_ref_and_client_home ( env, endpoint_ref, client_home );
+    axis2_stub_calculator_populate_services( stub, env );
+    return stub;
+}
+
+
+void axis2_stub_calculator_populate_services( axis2_stub_t *stub, const axis2_env_t *env)
+{
+    axis2_svc_client_t *svc_client = NULL;
+    axis2_qname_t *svc_qname =  NULL;
+    axis2_qname_t *op_qname =  NULL;
+    axis2_svc_t *svc = NULL;
+    axis2_op_t *op = NULL;
+    
+    /* Modifying the Service */
+    svc_client = AXIS2_STUB_GET_SVC_CLIENT (stub, env );
+    svc = (axis2_svc_t*)AXIS2_SVC_CLIENT_GET_AXIS_SERVICE ( svc_client, env );
+    axis2_qname_create(env,"Calculator" ,NULL, NULL);
+    AXIS2_SVC_SET_QNAME (svc, env, svc_qname);
+    
+    /* creating the operations*/
+    
+    
+    
+    op_qname = axis2_qname_create(env,
+                                  "add" ,
+                                  "http://localhost/axis/Calculator",
+                                  NULL);
+    op = axis2_op_create_with_qname(env, op_qname);
+    
+    AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN);
+    
+    AXIS2_SVC_ADD_OP(svc, env, op);
+    
+    
+    
+    op_qname = axis2_qname_create(env,
+                                  "sub" ,
+                                  "http://localhost/axis/Calculator",
+                                  NULL);
+    op = axis2_op_create_with_qname(env, op_qname);
+    
+    AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN);
+    
+    AXIS2_SVC_ADD_OP(svc, env, op);
+    
+    
+    
+    op_qname = axis2_qname_create(env,
+                                  "mul" ,
+                                  "http://localhost/axis/Calculator",
+                                  NULL);
+    op = axis2_op_create_with_qname(env, op_qname);
+    
+    AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN);
+    
+    AXIS2_SVC_ADD_OP(svc, env, op);
+    
+    
+    
+    op_qname = axis2_qname_create(env,
+                                  "div" ,
+                                  "http://localhost/axis/Calculator",
+                                  NULL);
+    op = axis2_op_create_with_qname(env, op_qname);
+    
+    AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN);
+    
+    AXIS2_SVC_ADD_OP(svc, env, op);
+    
+    
+}
+
+/**
+ *return end point picked from wsdl
+ */
+axis2_char_t*
+axis2_stub_calculator_get_endpoint_uri_from_wsdl ( const axis2_env_t *env )
+{
+    axis2_char_t *endpoint_uri = NULL;
+    /* set the address from here */
+    
+    endpoint_uri = "http://localhost/axis/Calculator";
+    
+    return endpoint_uri;
+}
+
+
+
+/**
+ * auto generated method signature
+ * for "add|http://localhost/axis/Calculator" operation.
+ * @param content0
+ */
+axiom_node_t* axis2_stub_calculator_add( axis2_stub_t *stub, const axis2_env_t *env  ,
+                                     axiom_node_t* content0)
+{
+    axis2_svc_client_t *svc_client = NULL;
+    axis2_options_t *options = NULL;
+    axiom_node_t *ret_node = NULL;
+    
+    const axis2_char_t *soap_action = NULL;
+    axis2_qname_t *op_qname =  NULL;
+    axiom_node_t *payload = NULL;
+    
+    payload = content0;
+    
+    
+    options = AXIS2_STUB_GET_OPTIONS( stub, env);
+    if ( NULL == options )
+    {
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub: Error code:"
+             " %d :: %s", env->error->error_number,
+        AXIS2_ERROR_GET_MESSAGE(env->error));
+        return NULL;
+    }
+    svc_client = AXIS2_STUB_GET_SVC_CLIENT (stub, env );
+    soap_action = AXIS2_OPTIONS_GET_ACTION ( options, env );
+    if ( NULL == soap_action )
+    {
+        soap_action = "Calculator#add";
+        AXIS2_OPTIONS_SET_ACTION( options, env, soap_action );
+    }
+    
+    AXIS2_OPTIONS_SET_SOAP_VERSION(options, env, AXIOM_SOAP11 );
+    
+    op_qname = axis2_qname_create(env,
+                                "add" ,
+                                "http://localhost/axis/Calculator",
+                                NULL);
+    ret_node =  AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME( svc_client, env, op_qname, payload);
+    
+    
+    
+    return ret_node;
+    
+}
+
+/**
+  * auto generated method signature for asynchronous invocations
+  * for "add|http://localhost/axis/Calculator" operation.
+  * @param content0
+  * @param on_complete callback to handle on complete
+  * @param on_error callback to handle on error 
+  */
+ 
+ void axis2_stub_calculator_add_start( axis2_stub_t *stub, const axis2_env_t *env, axiom_node_t* content0,
+                                          axis2_status_t ( AXIS2_CALL *on_complete ) (struct axis2_callback *, const axis2_env_t *) ,
+                                          axis2_status_t ( AXIS2_CALL *on_error ) (struct axis2_callback *, const axis2_env_t *, int ) )
+{
+    
+    axis2_callback_t *callback = NULL;
+    
+    axis2_svc_client_t *svc_client = NULL;
+    axis2_options_t *options = NULL;
+    
+    const axis2_char_t *soap_action = NULL;
+    axiom_node_t *payload = NULL;
+    
+    
+    payload = content0;
+    
+    
+    options = AXIS2_STUB_GET_OPTIONS( stub, env);
+    if ( NULL == options )
+    {
+        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub: Error code:"
+                " %d :: %s", env->error->error_number,
+                AXIS2_ERROR_GET_MESSAGE(env->error));
+        return;
+    }
+    svc_client = AXIS2_STUB_GET_SVC_CLIENT (stub, env );
+    soap_action = AXIS2_OPTIONS_GET_ACTION ( options, env );
+    if ( NULL == soap_action )
+    {
+        soap_action = "Calculator#add";
+        AXIS2_OPTIONS_SET_ACTION( options, env, soap_action );
+    }
+    
+    AXIS2_OPTIONS_SET_SOAP_VERSION(options, env, AXIOM_SOAP11 );
+    
+    
+    callback = axis2_callback_create(env);
+    /* Set our on_complete fucntion pointer to the callback object */
+    AXIS2_CALLBACK_SET_ON_COMPLETE(callback, on_complete);
+    /* Set our on_error function pointer to the callback object */
+    AXIS2_CALLBACK_SET_ON_ERROR(callback, on_error);
+    
+    /* Send request */
+    AXIS2_SVC_CLIENT_SEND_RECEIVE_NON_BLOCKING(svc_client, env, payload, callback);
+}
+
+
+/**
+ * auto generated method signature
+ * for "sub|http://localhost/axis/Calculator" operation.
+ * @param content2
+ */
+axiom_node_t* axis2_stub_calculator_sub( axis2_stub_t *stub, const axis2_env_t *env  ,
+                                     axiom_node_t* content2)
+{
+    axis2_svc_client_t *svc_client = NULL;
+    axis2_options_t *options = NULL;
+    axiom_node_t *ret_node = NULL;
+    
+    const axis2_char_t *soap_action = NULL;
+    axis2_qname_t *op_qname =  NULL;
+    axiom_node_t *payload = NULL;
+    
+    payload = content2;
+    
+    
+    options = AXIS2_STUB_GET_OPTIONS( stub, env);
+    if ( NULL == options )
+    {
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub: Error code:"
+             " %d :: %s", env->error->error_number,
+        AXIS2_ERROR_GET_MESSAGE(env->error));
+        return NULL;
+    }
+    svc_client = AXIS2_STUB_GET_SVC_CLIENT (stub, env );
+    soap_action = AXIS2_OPTIONS_GET_ACTION ( options, env );
+    if ( NULL == soap_action )
+    {
+        soap_action = "Calculator#sub";
+        AXIS2_OPTIONS_SET_ACTION( options, env, soap_action );
+    }
+    
+    AXIS2_OPTIONS_SET_SOAP_VERSION(options, env, AXIOM_SOAP11 );
+    
+    op_qname = axis2_qname_create(env,
+                                "sub" ,
+                                "http://localhost/axis/Calculator",
+                                NULL);
+    ret_node =  AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME( svc_client, env, op_qname, payload);
+    
+    
+    
+    return ret_node;
+    
+}
+
+/**
+  * auto generated method signature for asynchronous invocations
+  * for "sub|http://localhost/axis/Calculator" operation.
+  * @param content2
+  * @param on_complete callback to handle on complete
+  * @param on_error callback to handle on error 
+  */
+ 
+ void axis2_stub_calculator_sub_start( axis2_stub_t *stub, const axis2_env_t *env, axiom_node_t* content2,
+                                          axis2_status_t ( AXIS2_CALL *on_complete ) (struct axis2_callback *, const axis2_env_t *) ,
+                                          axis2_status_t ( AXIS2_CALL *on_error ) (struct axis2_callback *, const axis2_env_t *, int ) )
+{
+    
+    axis2_callback_t *callback = NULL;
+    
+    axis2_svc_client_t *svc_client = NULL;
+    axis2_options_t *options = NULL;
+    
+    const axis2_char_t *soap_action = NULL;
+    axiom_node_t *payload = NULL;
+    
+    
+    payload = content2;
+    
+    
+    options = AXIS2_STUB_GET_OPTIONS( stub, env);
+    if ( NULL == options )
+    {
+        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub: Error code:"
+                " %d :: %s", env->error->error_number,
+                AXIS2_ERROR_GET_MESSAGE(env->error));
+        return;
+    }
+    svc_client = AXIS2_STUB_GET_SVC_CLIENT (stub, env );
+    soap_action = AXIS2_OPTIONS_GET_ACTION ( options, env );
+    if ( NULL == soap_action )
+    {
+        soap_action = "Calculator#sub";
+        AXIS2_OPTIONS_SET_ACTION( options, env, soap_action );
+    }
+    
+    AXIS2_OPTIONS_SET_SOAP_VERSION(options, env, AXIOM_SOAP11 );
+    
+    
+    callback = axis2_callback_create(env);
+    /* Set our on_complete fucntion pointer to the callback object */
+    AXIS2_CALLBACK_SET_ON_COMPLETE(callback, on_complete);
+    /* Set our on_error function pointer to the callback object */
+    AXIS2_CALLBACK_SET_ON_ERROR(callback, on_error);
+    
+    /* Send request */
+    AXIS2_SVC_CLIENT_SEND_RECEIVE_NON_BLOCKING(svc_client, env, payload, callback);
+}
+
+
+/**
+ * auto generated method signature
+ * for "mul|http://localhost/axis/Calculator" operation.
+ * @param content4
+ */
+axiom_node_t* axis2_stub_calculator_mul( axis2_stub_t *stub, const axis2_env_t *env  ,
+                                     axiom_node_t* content4)
+{
+    axis2_svc_client_t *svc_client = NULL;
+    axis2_options_t *options = NULL;
+    axiom_node_t *ret_node = NULL;
+    
+    const axis2_char_t *soap_action = NULL;
+    axis2_qname_t *op_qname =  NULL;
+    axiom_node_t *payload = NULL;
+    
+    payload = content4;
+    
+    
+    options = AXIS2_STUB_GET_OPTIONS( stub, env);
+    if ( NULL == options )
+    {
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub: Error code:"
+             " %d :: %s", env->error->error_number,
+        AXIS2_ERROR_GET_MESSAGE(env->error));
+        return NULL;
+    }
+    svc_client = AXIS2_STUB_GET_SVC_CLIENT (stub, env );
+    soap_action = AXIS2_OPTIONS_GET_ACTION ( options, env );
+    if ( NULL == soap_action )
+    {
+        soap_action = "Calculator#mul";
+        AXIS2_OPTIONS_SET_ACTION( options, env, soap_action );
+    }
+    
+    AXIS2_OPTIONS_SET_SOAP_VERSION(options, env, AXIOM_SOAP11 );
+    
+    op_qname = axis2_qname_create(env,
+                                "mul" ,
+                                "http://localhost/axis/Calculator",
+                                NULL);
+    ret_node =  AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME( svc_client, env, op_qname, payload);
+    
+    
+    
+    return ret_node;
+    
+}
+
+/**
+  * auto generated method signature for asynchronous invocations
+  * for "mul|http://localhost/axis/Calculator" operation.
+  * @param content4
+  * @param on_complete callback to handle on complete
+  * @param on_error callback to handle on error 
+  */
+ 
+ void axis2_stub_calculator_mul_start( axis2_stub_t *stub, const axis2_env_t *env, axiom_node_t* content4,
+                                          axis2_status_t ( AXIS2_CALL *on_complete ) (struct axis2_callback *, const axis2_env_t *) ,
+                                          axis2_status_t ( AXIS2_CALL *on_error ) (struct axis2_callback *, const axis2_env_t *, int ) )
+{
+    
+    axis2_callback_t *callback = NULL;
+    
+    axis2_svc_client_t *svc_client = NULL;
+    axis2_options_t *options = NULL;
+    
+    const axis2_char_t *soap_action = NULL;
+    axiom_node_t *payload = NULL;
+    
+    
+    payload = content4;
+    
+    
+    options = AXIS2_STUB_GET_OPTIONS( stub, env);
+    if ( NULL == options )
+    {
+        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub: Error code:"
+                " %d :: %s", env->error->error_number,
+                AXIS2_ERROR_GET_MESSAGE(env->error));
+        return;
+    }
+    svc_client = AXIS2_STUB_GET_SVC_CLIENT (stub, env );
+    soap_action = AXIS2_OPTIONS_GET_ACTION ( options, env );
+    if ( NULL == soap_action )
+    {
+        soap_action = "Calculator#mul";
+        AXIS2_OPTIONS_SET_ACTION( options, env, soap_action );
+    }
+    
+    AXIS2_OPTIONS_SET_SOAP_VERSION(options, env, AXIOM_SOAP11 );
+    
+    
+    callback = axis2_callback_create(env);
+    /* Set our on_complete fucntion pointer to the callback object */
+    AXIS2_CALLBACK_SET_ON_COMPLETE(callback, on_complete);
+    /* Set our on_error function pointer to the callback object */
+    AXIS2_CALLBACK_SET_ON_ERROR(callback, on_error);
+    
+    /* Send request */
+    AXIS2_SVC_CLIENT_SEND_RECEIVE_NON_BLOCKING(svc_client, env, payload, callback);
+}
+
+
+/**
+ * auto generated method signature
+ * for "div|http://localhost/axis/Calculator" operation.
+ * @param content6
+ */
+axiom_node_t* axis2_stub_calculator_div( axis2_stub_t *stub, const axis2_env_t *env  ,
+                                     axiom_node_t* content6)
+{
+    axis2_svc_client_t *svc_client = NULL;
+    axis2_options_t *options = NULL;
+    axiom_node_t *ret_node = NULL;
+    
+    const axis2_char_t *soap_action = NULL;
+    axis2_qname_t *op_qname =  NULL;
+    axiom_node_t *payload = NULL;
+    
+    payload = content6;
+    
+    
+    options = AXIS2_STUB_GET_OPTIONS( stub, env);
+    if ( NULL == options )
+    {
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub: Error code:"
+             " %d :: %s", env->error->error_number,
+        AXIS2_ERROR_GET_MESSAGE(env->error));
+        return NULL;
+    }
+    svc_client = AXIS2_STUB_GET_SVC_CLIENT (stub, env );
+    soap_action = AXIS2_OPTIONS_GET_ACTION ( options, env );
+    if ( NULL == soap_action )
+    {
+        soap_action = "Calculator#div";
+        AXIS2_OPTIONS_SET_ACTION( options, env, soap_action );
+    }
+    
+    AXIS2_OPTIONS_SET_SOAP_VERSION(options, env, AXIOM_SOAP11 );
+    
+    op_qname = axis2_qname_create(env,
+                                "div" ,
+                                "http://localhost/axis/Calculator",
+                                NULL);
+    ret_node =  AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME( svc_client, env, op_qname, payload);
+    
+    
+    
+    return ret_node;
+    
+}
+
+/**
+  * auto generated method signature for asynchronous invocations
+  * for "div|http://localhost/axis/Calculator" operation.
+  * @param content6
+  * @param on_complete callback to handle on complete
+  * @param on_error callback to handle on error 
+  */
+ 
+ void axis2_stub_calculator_div_start( axis2_stub_t *stub, const axis2_env_t *env, axiom_node_t* content6,
+                                          axis2_status_t ( AXIS2_CALL *on_complete ) (struct axis2_callback *, const axis2_env_t *) ,
+                                          axis2_status_t ( AXIS2_CALL *on_error ) (struct axis2_callback *, const axis2_env_t *, int ) )
+{
+    
+    axis2_callback_t *callback = NULL;
+    
+    axis2_svc_client_t *svc_client = NULL;
+    axis2_options_t *options = NULL;
+    
+    const axis2_char_t *soap_action = NULL;
+    axiom_node_t *payload = NULL;
+    
+    
+    payload = content6;
+    
+    
+    options = AXIS2_STUB_GET_OPTIONS( stub, env);
+    if ( NULL == options )
+    {
+        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub: Error code:"
+                " %d :: %s", env->error->error_number,
+                AXIS2_ERROR_GET_MESSAGE(env->error));
+        return;
+    }
+    svc_client = AXIS2_STUB_GET_SVC_CLIENT (stub, env );
+    soap_action = AXIS2_OPTIONS_GET_ACTION ( options, env );
+    if ( NULL == soap_action )
+    {
+        soap_action = "Calculator#div";
+        AXIS2_OPTIONS_SET_ACTION( options, env, soap_action );
+    }
+    
+    AXIS2_OPTIONS_SET_SOAP_VERSION(options, env, AXIOM_SOAP11 );
+    
+    
+    callback = axis2_callback_create(env);
+    /* Set our on_complete fucntion pointer to the callback object */
+    AXIS2_CALLBACK_SET_ON_COMPLETE(callback, on_complete);
+    /* Set our on_error function pointer to the callback object */
+    AXIS2_CALLBACK_SET_ON_ERROR(callback, on_error);
+    
+    /* Send request */
+    AXIS2_SVC_CLIENT_SEND_RECEIVE_NON_BLOCKING(svc_client, env, payload, callback);
+}
+
+



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