diff options
author | gmcdonald | 2010-02-13 01:32:03 +0000 |
---|---|---|
committer | gmcdonald | 2010-02-13 01:32:03 +0000 |
commit | 0425aadc78680e53000fd0108b540d6eca048516 (patch) | |
tree | 8ec7ab8e015d454c5ec586dfc91e05a2dce1cfc0 /xdocs | |
download | axis2c-0425aadc78680e53000fd0108b540d6eca048516.tar.gz axis2c-0425aadc78680e53000fd0108b540d6eca048516.tar.bz2 |
Moving axis svn, part of TLP move INFRA-2441
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@909681 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'xdocs')
33 files changed, 9433 insertions, 0 deletions
diff --git a/xdocs/api/doxygenconf b/xdocs/api/doxygenconf new file mode 100644 index 0000000..fb5cc31 --- /dev/null +++ b/xdocs/api/doxygenconf @@ -0,0 +1,1220 @@ +# Doxyfile 1.4.2 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = Axis2/C + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = 1.6.0 + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = ./ + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Brazilian, Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, +# Dutch, Finnish, French, German, Greek, Hungarian, Italian, Japanese, +# Japanese-en (Japanese with English messages), Korean, Korean-en, Norwegian, +# Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, +# Swedish, and Ukrainian. + +OUTPUT_LANGUAGE = English + +# This tag can be used to specify the encoding used in the generated output. +# The encoding is not always determined by the language that is chosen, +# but also whether or not the output is meant for Windows or non-Windows users. +# In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES +# forces the Windows encoding (this is the default for the Windows binary), +# whereas setting the tag to NO uses a Unix-style encoding (the default for +# all platforms other than Windows). + +USE_WINDOWS_ENCODING = NO + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = NO + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like the Qt-style comments (thus requiring an +# explicit @brief command for a brief description. + +JAVADOC_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the DETAILS_AT_TOP tag is set to YES then Doxygen +# will output the detailed description near the top, like JavaDoc. +# If set to NO, the detailed description appears after the member +# documentation. + +DETAILS_AT_TOP = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java sources +# only. Doxygen will then generate output that is more tailored for Java. +# For instance, namespaces will be presented as packages, qualified scopes +# will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = NO + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. + +SHOW_DIRECTORIES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from the +# version control system). Doxygen will invoke the program by executing (via +# popen()) the command <command> <input-file>, where <command> is the value of +# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file +# provided by doxygen. Whatever the progam writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = ../../deploy/include/axis2-1.6.0/ + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm + +FILE_PATTERNS = + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. + +EXCLUDE_PATTERNS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command <filter> <input-file>, where <filter> +# is the value of the INPUT_FILTER tag, and <input-file> is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES (the default) +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES (the default) +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = NO + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compressed HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 4 + +# If the GENERATE_TREEVIEW tag is set to YES, a side panel will be +# generated containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, +# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are +# probably better off using the HTML help feature. + +GENERATE_TREEVIEW = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. This is useful +# if you want to understand what is going on. On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = YES + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_PREDEFINED tags. + +EXPAND_ONLY_PREDEF = YES + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = AXIS2_DECLARE(x)=x \ + AXIS2_DECLARE_NONSTD(x)=x \ + AXIS2_DECLARE_DATA= \ + AXIS2_CALL= +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = AXIS2_DECLARAE AXIS2_DECLARE_NONSTD AXIS2_DECLARE_DATA AXIS2_CALL + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = YES + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = NO + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will +# generate a call dependency graph for every global function or class method. +# Note that enabling this option will significantly increase the time of a run. +# So in most cases it will be better to enable call graphs for selected +# functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = gif + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width +# (in pixels) of the graphs generated by dot. If a graph becomes larger than +# this value, doxygen will try to truncate the graph, so that it fits within +# the specified constraint. Beware that most browsers cannot cope with very +# large images. + +MAX_DOT_GRAPH_WIDTH = 1024 + +# The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height +# (in pixels) of the graphs generated by dot. If a graph becomes larger than +# this value, doxygen will try to truncate the graph, so that it fits within +# the specified constraint. Beware that most browsers cannot cope with very +# large images. + +MAX_DOT_GRAPH_HEIGHT = 1024 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that a graph may be further truncated if the graph's +# image dimensions are not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH +# and MAX_DOT_GRAPH_HEIGHT). If 0 is used for the depth value (the default), +# the graph is not depth-constrained. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, which results in a white background. +# Warning: Depending on the platform used, enabling this option may lead to +# badly anti-aliased labels on the edges of a graph (i.e. they become hard to +# read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- + +# The SEARCHENGINE tag specifies whether or not a search engine should be +# used. If set to NO the values of all tags below this one will be ignored. + +SEARCHENGINE = YES diff --git a/xdocs/archived_news.html b/xdocs/archived_news.html new file mode 100644 index 0000000..3bbf690 --- /dev/null +++ b/xdocs/archived_news.html @@ -0,0 +1,842 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Apache Axis2/C - Archived News</title> + <h2>Apache Axis2/C Archived News</h2> + <p>This page contains information on previous releases running up to the + latest.</p> + <div class="subsection"><a name="Contents"></a> + <h3>Contents</h3> + <ul> + <li><a href="#1_5_0">Version 1.5.0 - 6th May 2008</a></li> + <li><a href="#1_4_0">Version 1.4.0 - 3rd March 2008</a></li> + <li><a href="#1_3_0">Version 1.3.0 - 29th February 2008</a></li> + <li><a href="#1_2_0">Version 1.2.0 - 17th January 2008</a></li> + <li><a href="#1_1_0">Version 1.1.0 - 30th September 2007</a></li> + <li><a href="#1_0_0">Version 1.0.0 - 06th May 2007</a></li> + <li><a href="#0_96">Version 0.96 - 22nd December 2006</a></li> + <li><a href="#0_95">Version 0.95 - 26th October 2006</a></li> + <li><a href="#0_94">Version 0.94 - 3rd October 2006</a></li> + <li><a href="#0_93">Version 0.93 - 31st August 2006</a></li> + <li><a href="#0_92">Version 0.92 - 16th June 2006</a></li> + <li><a href="#0_91">Version 0.91 - 15th May 2006</a></li> + <li><a href="#0_90">Version 0.90 - 31st March 2006</a></li> + <li><a href="#M0_5">Milestone version 0.5 - 10th March 2006</a></li> + <li><a href="#M0_4">Milestone version 0.4 - 17th February 2006</a></li> + <li><a href="#M0_3">Milestone version 0.3 - 02nd February 2006</a></li> + <li><a href="#M0_2">Milestone version 0.2 - 08th December 2005</a></li> + <li><a href="#M0_1">Milestone version 0.1 - 25th November 2005</a></li> + </ul> + </div> +<!--###############################1.5.0########################################--> +<div class="subsection"><a name="1_5_0"></a><h3>Apache Axis2/C Version 1.5.0 Released</h3><p><a href="http://ws.apache.org/axis2/c/download.cgi" class="externalLink" title="External Link">Download 1.5.0</a></p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3> + <ol> + <li>Support for one-way messaging (In-Only) and request response messaging (In-Out)</li> + <li>Client APIs: Easy to use service client API and more advanced operation client API</li> + <li>Transports supported: HTTP + <ul> + <li>Inbuilt HTTP server called simple axis server</li> + <li>Apache2 httpd module called mod_axis2 for server side</li> + <li>IIS module for server side. Support IIS 5.1, 6 and 7.</li> + <li>Client transport with ability to enable SSL support</li> + <li>Basic HTTP Authentication</li> + <li>libcurl based client transport</li> + <li>AMQP Transport support using Apache Qpid</li> + </ul> + </li> + <li>Module architecture, mechanism to extend the SOAP processing model</li> + <li>WS-Addressing support, both the submission (2004/08) and final (2005/08) versions, implemented as a module</li> + <li>MTOM/XOP support</li> + <li>AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages; This has complete XML infoset support </li> + <li>XML parser abstraction + <ul> + + <li>Libxml2 wrapper</li> + <li>Guththila pull parser support</li> + </ul> + </li> + <li>Both directory based and archive based deployment models for deploying services and modules </li> + <li>Description hierarchy providing access to static data of Axis2/C runtime (configuration, service groups, services, operations and messages) </li> + <li>Context hierarchy providing access to dynamic Axis2/C runtime information(corresponding contexts to map to each level of description hierarchy) </li> + + <li>Message receiver abstraction + <ul> + <li>Inbuilt raw XML message receiver</li> + </ul> + </li> + <li>Code generation tool for stub and skeleton generation for a given WSDL (based on Java tool) <ul> + <li>Axis Data Binding (ADB) support </li> + </ul> + + </li> + <li>Transport proxy support</li> + <li>REST support (more POX like) using both HTTP POST and GET </li> + <li>Comprehensive documentation + <ul> + <li>Axis2/C Manual </li> + </ul> + </li> + + <li>WS-Policy implementation called Neethi/C, with WS-SecurityPolicy extension</li> + <li>TCP Transport, for both client and server side </li> + </ol></div><div class="subsection"> + <a name="Major_Changes_Since_Last_Release"></a> + <h3>Changes Since Last Release</h3> + <ol> + <li>AMQP Transport support with Apache Qpid.</li> + <li>Modifications to IIS Module to support IIS 6 and 7</li> + <li>Added a JScript file to automate IIS module registry configuration</li> + <li>Improved the in-only message handling</li> + <li>Specifying the MEP in the services.xml for non in-out messages made mandatory</li> + <li>Improvements to Guthtila for better performance</li> + <li>Improvements to TCPMon tool</li> + <li>Memory leak fixes</li> + <li>Bug fixes</li> + </ol> + </div> + <!--###############################1.4.0########################################--> +<div class="subsection"><a name="1_4_0"></a><h3>7th May 2008 - Apache Axis2/C Version 1.4.0 Released</h3><p><a href="http://ws.apache.org/axis2/c/download.cgi" class="externalLink" title="External Link">Download 1.4.0</a></p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3> + <ol> + <li>Support for one-way messaging (In-Only) and request response messaging (In-Out)</li> + <li>Client APIs: Easy to use service client API and more advanced operation client API</li> + <li>Transports supported: HTTP + <ul> + + <li>Inbuilt HTTP server called simple axis server</li> + <li>Apache2 httpd module called mod_axis2 for server side</li> + <li>IIS module for server side</li> + <li>Client transport with ability to enable SSL support</li> + <li>Basic HTTP Authentication</li> + <li>libcurl based client transport</li> + + </ul> + </li> + <li>Module architecture, mechanism to extend the SOAP processing model</li> + <li>WS-Addressing support, both the submission (2004/08) and final (2005/08) versions, implemented as a module</li> + <li>MTOM/XOP support</li> + <li>AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages; This has complete XML infoset support </li> + <li>XML parser abstraction + <ul> + + <li>Libxml2 wrapper</li> + <li>Guththila pull parser support</li> + </ul> + </li> + <li>Both directory based and archive based deployment models for deploying services and modules </li> + <li>Description hierarchy providing access to static data of Axis2/C runtime (configuration, service groups, services, operations and messages) </li> + <li>Context hierarchy providing access to dynamic Axis2/C runtime information(corresponding contexts to map to each level of description hierarchy) </li> + + <li>Message receiver abstraction + <ul> + <li>Inbuilt raw XML message receiver</li> + </ul> + </li> + <li>Code generation tool for stub and skeleton generation for a given WSDL (based on Java tool) <ul> + <li>Axis Data Binding (ADB) support </li> + </ul> + + </li> + <li>Transport proxy support</li> + <li>REST support (more POX like) using both HTTP POST and GET </li> + <li>Comprehensive documentation + <ul> + <li>Axis2/C Manual </li> + </ul> + </li> + + <li>WS-Policy implementation called Neethi/C, with WS-SecurityPolicy extension</li> + <li>TCP Transport, for both client and server side </li> + </ol></div><div class="subsection"> + <a name="Major_Changes_Since_Last_Release"></a> + <h3>Changes Since Last Release</h3> + <ol> + <li>Fixed library version numbering</li> + <li>Made Guththila as default XML parser</li> + <li>Memory leak fixes</li> + <li>Many bug fixes</li> + </ol> + </div> +<!--###############################1.3.0########################################--> +<div class="subsection"><a name="1_3_0"></a><h3>3rd March 2008 - Apache Axis2/C Version 1.3.0 Released</h3><p><a href="http://ws.apache.org/axis2/c/download.cgi" class="externalLink" title="External Link">Download 1.3.0</a></p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3> + <ol> + <li>Support for one-way messaging (In-Only) and request response messaging (In-Out)</li> + <li>Client APIs: Easy to use service client API and more advanced operation client API</li> + <li>Transports supported: HTTP + <ul> + + <li>Inbuilt HTTP server called simple axis server</li> + <li>Apache2 httpd module called mod_axis2 for server side</li> + <li>IIS module for server side</li> + <li>Client transport with ability to enable SSL support</li> + <li>Basic HTTP Authentication</li> + <li>libcurl based client transport</li> + + </ul> + </li> + <li>Module architecture, mechanism to extend the SOAP processing model</li> + <li>WS-Addressing support, both the submission (2004/08) and final (2005/08) versions, implemented as a module</li> + <li>MTOM/XOP support</li> + <li>AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages; This has complete XML infoset support </li> + <li>XML parser abstraction + <ul> + + <li>Libxml2 wrapper</li> + <li>Guththila pull parser support</li> + </ul> + </li> + <li>Both directory based and archive based deployment models for deploying services and modules </li> + <li>Description hierarchy providing access to static data of Axis2/C runtime (configuration, service groups, services, operations and messages) </li> + <li>Context hierarchy providing access to dynamic Axis2/C runtime information(corresponding contexts to map to each level of description hierarchy) </li> + + <li>Message receiver abstraction + <ul> + <li>Inbuilt raw XML message receiver</li> + </ul> + </li> + <li>Code generation tool for stub and skeleton generation for a given WSDL (based on Java tool) <ul> + <li>Axis Data Binding (ADB) support </li> + </ul> + + </li> + <li>Transport proxy support</li> + <li>REST support (more POX like) using both HTTP POST and GET </li> + <li>Comprehensive documentation + <ul> + <li>Axis2/C Manual </li> + </ul> + </li> + + <li>WS-Policy implementation called Neethi/C, with WS-SecurityPolicy extension</li> + <li>TCP Transport, for both client and server side </li> + </ol></div><div class="subsection"> + <a name="Major_Changes_Since_Last_Release"></a> + <h3>Changes Since Last Release</h3> + <ol> + <li>Fixed a bug on version numbering</li> + + <li>List Axis2/C dependencies licensing in LICENSE file</li> + <li>Add relevant copyright notices to NOTICE file</li> + <li>Digest Authentication Support</li> + <li>Proxy Authentication Support</li> + <li>Ability to insert xml declaration on outgoing payloads</li> + <li>Enhanced REST support</li> + + <li>MTOM support with libcurl</li> + <li>Improvements to TCPMon Tool</li> + <li>Improvements to Test Coverage</li> + <li>Improvements to API docs</li> + <li>Improvements to CA certificate validation mechanisms on SSL Transport</li> + <li>Improvements to Neethi</li> + + <li>Fixed issue in HTTP GET on mod_axis2</li> + <li>Major Improvements to Guththila Parser</li> + <li>Improvements to libcurl based sender</li> + <li>Creation of a FAQ list</li> + <li>Improvements to Axis2/C documentation</li> + <li>Added Documentation on Archive Based Deployment</li> + + <li>Fixes for IIS module</li> + <li>Removed dependency in util for the Axis2/C core</li> + <li>Ability to access transport headers at the service level (for RESTful services)</li> + <li>uint64_t and int64_t support at util layer and codegen level</li> + <li>Removed zlib dependencies when Archive Based Deployment model is disabled</li> + <li>Signal Handling in Windows</li> + + <li>Removed over 99% of the warnings found on Windows</li> + <li>Increased build speed on Windows with nmake.</li> + <li>Improvements to Windows build system</li> + <li>Extensions to client API to support HTTP/Proxy Authentication</li> + <li>Memory leak fixes</li> + <li>Many bug fixes</li> + </ol> + </div> +<!--############################################################################--> +<div class="subsection"><a name="1_2_0"></a><h3>17th January 2008 - Apache Axis2/C Version 1.2.0 Released</h3><p><a href="http://ws.apache.org/axis2/c/download.cgi" class="externalLink" title="External Link">Download 1.2.0</a></p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3><ol> + <li>Support for one-way messaging (In-Only) and request response messaging (In-Out)</li> + <li>Client APIs: Easy to use service client API and more advanced operation client API</li> + <li>Transports supported: HTTP + <ul> + <li>Inbuilt HTTP server called simple axis server</li> + <li>Apache2 httpd module called mod_axis2 for server side</li> + <li>IIS module for server side</li> + <li>Client transport with ability to enable SSL support</li> + <li>Basic HTTP Authentication</li> + <li>libcurl based client transport</li> + </ul> + </li> + <li>Module architecture, mechanism to extend the SOAP processing model</li> + <li>WS-Addressing support, both the submission (2004/08) and final (2005/08) versions, implemented as a module</li> + <li>MTOM/XOP support</li> + <li>AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages; This has complete XML infoset support </li> + <li>XML parser abstraction + <ul> + <li>Libxml2 wrapper</li> + <li>Guththila pull parser support</li> + </ul> + </li> + <li>Both directory based and archive based deployment models for deploying services and modules </li> + <li>Description hierarchy providing access to static data of Axis2/C runtime (configuration, service groups, services, operations and messages) </li> + <li>Context hierarchy providing access to dynamic Axis2/C runtime information(corresponding contexts to map to each level of description hierarchy) </li> + <li>Message receiver abstraction + <ul> + <li>Inbuilt raw XML message receiver</li> + </ul> + </li> + <li>Code generation tool for stub and skeleton generation for a given WSDL (based on Java tool) <ul> + <li>Axis Data Binding (ADB) support </li> + </ul> + </li> + <li>Transport proxy support</li> + <li>REST support (more POX like) using both HTTP POST and GET </li> + <li>Comprehensive documentation + <ul> + <li>Axis2/C Manual </li> + </ul> + </li> + <li>WS-Policy implementation called Neethi/C, with WS-SecurityPolicy extension</li> + <li>TCP Transport, for both client and server side </li> + </ol></div> +<div class="subsection"> + <a name="Major_Changes_Since_Last_Release"></a> + <h3>Major Changes Since Last Release</h3> + <ol> + <li>WS-Policy implementation</li> + <li>TCP Transport</li> + <li>Improvements to Guththila parser to improve performance</li> + <li>Improvements to Java tool, WSDL2C, that generates C code</li> + <li>Basic HTTP Authentication</li> + <li>Memory leak fixes</li> + <li>Many <a + href="https://issues.apache.org/jira/browse/AXIS2C/fixforversion/12312520"> + bug fixes</a></li> + </ol> +</div> +<!--########################################################################--> +<a name="1_1_0"></a><div class="subsection"><a name="30th_September_2007_-_Apache_Axis2_C_Version_1_1_0_Released"></a><h3>30th September 2007 - Apache Axis2/C Version 1.1.0 Released</h3><p><a href="http://ws.apache.org/axis2/c/download.cgi" class="externalLink" title="External Link">Download 1.1.0</a></p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3><ol> + <li>Support for one-way messaging (In-Only) and request response messaging (In-Out)</li> + <li>Client APIs: Easy to use service client API and more advanced operation client API</li> + <li>Transports supported: HTTP + <ul> + <li>Inbuilt HTTP server called simple axis server</li> + <li>Apache2 httpd module called mod_axis2 for server side</li> + <li>IIS module for server side</li> + <li>Client transport with ability to enable SSL support</li> + <li>Basic HTTP Authentication</li> + <li>libcurl based client transport</li> + </ul> + </li> + <li>Module architecture, mechanism to extend the SOAP processing model</li> + <li>WS-Addressing support, both the submission (2004/08) and final (2005/08) versions, implemented as a module</li> + <li>MTOM/XOP support</li> + <li>AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages; This has complete XML infoset support</li> + <li>XML parser abstraction + <ul> + <li>Libxml2 wrapper</li> + <li>Guththila pull parser support</li> + </ul> + </li> + <li>Both directory based and archive based deployment models for deploying services and modules </li> + <li>Description hierarchy providing access to static data of Axis2/C runtime (configuration, service groups, services, operations and messages) </li> + <li>Context hierarchy providing access to dynamic Axis2/C runtime information(corresponding contexts to map to each level of description hierarchy)</li> + <li>Message receiver abstraction + <ul> + <li>Inbuilt raw XML message receiver</li> + </ul> + </li> + <li>Code generation tool for stub and skeleton generation for a given WSDL (based on Java tool) <ul> + <li>Axis Data Binding (ADB) support</li> + </ul> + </li> + <li>Transport proxy support </li> + <li>REST support (more POX like) using both HTTP POST and GET </li> + <li>Comprehensive documentation + <ul> + <li>Axis2/C Manual </li> + </ul> + </li> + <li>WS-Policy implementation called Neethi/C, with WS-SecurityPolicy extension</li> + <li>TCP Transport, for both client and server side </li> +</ol> +</div> +<div class="subsection"> + <a name="Major_Changes_Since_Last_Release"></a> + <h3>Major Changes Since Last Release</h3> + <ol> + <li>WS-Policy implementation</li> + <li>TCP Transport </li> + <li>Improvements to Guththila parser to improve performance </li> + <li>Improvements to Java tool, WSDL2C, that generates C code </li> + <li>Basic HTTP Authentication </li> + <li>Memory leak fixes </li> + <li>Many <a href="https://issues.apache.org/jira/browse/AXIS2C/fixforversion/12312520">bug fixes</a></li> +</ol> +</div> +<!--########################################################################--> +<a id="1_0_0"></a> + <div class="subsection"> + <a name="06th_May_2007_-_Apache_Axis2_C_Version_1_0_0_Released"></a> + <h3>06th May 2007 - Apache Axis2/C Version 1.0.0 Released</h3> + <p><a href="http://ws.apache.org/axis2/c/download.cgi" class="externalLink" title="External Link">Download 1.0.0</a></p> + </div> + <div class="subsection"><a name="Key_Features"></a> + <h3>Key Features</h3> + <ol> + <li>Support for one-way messaging (In-Only) and request response messaging (In-Out)</li> + <li>Client APIs: Easy to use service client API and a more advanced operation client API</li> + <li>Transports supported : HTTP + <ul> + <li>Inbuilt HTTP server called simple axis server</li> + <li>Apache2 HTTPD module called mod_axis2 for the server side</li> + <li>IIS module for the server side</li> + <li>Client transport with the ability to enable SSL support</li> + <li>libcurl based client transport</li> + </ul> + </li> + <li>Module architecture, with a mechanism to extend the SOAP processing model</li> + <li>WS-Addressing support, for both the submission (2004/08) and final (2005/08) versions, implemented as a module</li> + <li>MTOM/XOP support</li> + <li>AXIOM, which is an XML object model optimized for SOAP 1.1/1.2 messages. This has complete XML infoset support.</li> + <li>XML parser abstraction + <ul> + <li>Libxml2 wrapper</li> + <li>Guththila pull parser support</li> + </ul> + </li> + <li>Both directory based and archive based deployment models for deploying + services and modules</li> + <li>Description hierarchy providing access to static data of Axis2/C + runtime (configuration, service groups, services, operations, and + messages)</li> + <li>Context hierarchy providing access to dynamic Axis2/C runtime + information (corresponding contexts mapped to each level of the + description hierarchy)</li> + <li>Message receiver abstraction + <ul> + <li>Inbuilt raw XML message receiver</li> + </ul> + </li> + <li>Code generation tool for stub and skeleton generation for a given WSDL + (based on the Java tool) + <ul> + <li>Axis Data Binding (ADB) support</li> + </ul> + </li> + <li>Transport proxy support</li> + <li>REST support (more POX like) using both HTTP POST and GET</li> + <li>Comprehensive documentation + <ul> + <li>Axis2/C Manual</li> + </ul> + </li> + </ol></div><div class="subsection"><a name="Major_Changes_Since_Last_Release"></a><h3>Major Changes Since Last Release</h3><ol> + <li>Many Bug Fixes</li> + <li>IIS module for the server side</li> + <li>libcurl based client transport</li> + <li>Improvements to overall API to make it more user friendly, stable, and + binary compatible</li> + <li>Transport proxy support</li> + <li>Memory leak fixes</li> + </ol><p><a id="0_96"></a></p></div><div class="subsection"><a name="22nd_December_2006_Axis2_C_Version_0_96_Released"></a><h3>22nd December 2006 Axis2/C Version 0.96 Released</h3><p><a href="download.cgi">Download 0.96</a></p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3><ol> + <li>AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages. This + has complete XML infoset support</li> + <li>Support for one-way messaging (In-Only) and request response messaging + (In-Out)</li> + <li>Description hierarchy (configuration, service groups, services, + operations, and messages)</li> + <li>Directory based deployment model</li> + <li>Archive based deployment model</li> + <li>Context hierarchy (corresponding contexts mapped to each level of the + description hierarchy)</li> + <li>Raw XML message receiver</li> + <li>Module architecture, with a mechanism to extend the SOAP processing + model</li> + <li>Module version support</li> + <li>Transports supports: HTTP + <ul> + <li>Both simple axis server and Apache2 HTTPD module for the server + side</li> + <li>Client transport with the ability to enable SSL support</li> + </ul> + </li> + <li>Service client and operation client APIs</li> + <li>REST support (HTTP POST case)</li> + <li>WS-Addressing, both the submission (2004/08) and final (2005/08) + versions</li> + <li>MTOM/XOP support</li> + <li>Code generation tool for stub and skeleton generation for a given WSDL + (based on the Java tool) + <ul> + <li>Axis Data Binding (ADB) support</li> + </ul> + </li> + <li>Security module with UsernameToken support</li> + <li>REST support (HTTP GET case)</li> + <li>Dynamic invocation support (based on XML schema and WSDL + implementations)</li> + <li>Guththila pull parser support</li> + <li>WSDL2C code generation tool- with schema code generation + (experimental)</li> + <li>TCP Monitor - C implementation (experimental)</li> + <li>Axis2/C Manual</li> + </ol></div><div class="subsection"><a name="Major_Changes_Since_Last_Release"></a><h3>Major Changes Since Last Release</h3><ol> + <li>Major Memory leak fixes</li> + <li>Many Bug Fixes</li> + <li>Improvement to REST processing</li> + <li>Improvement to SOAP-Fault processing</li> + <li>Improvement to mod_axis2 library (plugged with apr pools)</li> + <li>Visual Studio 7.0 project</li> + </ol></div><div class="subsection"><a name="Items_pending_for_1_0"></a><h3>Items pending for 1.0</h3><ol> + <li>Complete API documentation and API improvements</li> + <li>Fix further memory leaks</li> + <li>Create a comprehensive functional test framework</li> + </ol><p><a id="0_95"></a></p></div><div class="subsection"><a name="26th_October_2006_Axis2_C_Version_0_95_Released"></a><h3>26th October 2006 Axis2/C Version 0.95 Released</h3><p><a href="download.cgi">Download 0.95</a></p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3><ol> + <li>AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages. This + has complete XML infoset support</li> + <li>Support for one-way messaging (In-Only) and request response messaging + (In-Out)</li> + <li>Description hierarchy (configuration, service groups, services, + operations, and messages)</li> + <li>Directory based deployment model</li> + <li>Archive based deployment model</li> + <li>Context hierarchy (corresponding contexts mapped to each level of the + description hierarchy)</li> + <li>Raw XML message receiver</li> + <li>Module architecture, mechanism to extend the SOAP processing model</li> + <li>Module version support</li> + <li>Transports supports: HTTP + <ul> + <li>Both simple axis server and Apache2 HTTPD module for server + side</li> + <li>Client transport with ability to enable SSL support</li> + </ul> + </li> + <li>Service client and operation client APIs</li> + <li>REST support (HTTP POST case)</li> + <li>WS-Addressing, for both the submission (2004/08) and final (2005/08) + versions</li> + <li>MTOM/XOP support</li> + <li>Code generation tool for stub and skeleton generation for a given WSDL + (based on the Java tool) + <ul> + <li>Axis Data Binding (ADB) support</li> + </ul> + </li> + <li>Security module with UsernameToken support</li> + <li>REST support (HTTP GET case)</li> + <li>Dynamic invocation support (based on XML schema and WSDL + implementations)</li> + <li>Guththila pull parser support</li> + <li>WSDL2C code generation tool- with schema code generation + (experimental)</li> + <li>TCP Monitor - C implementation (experimental)</li> + <li>Axis2/C Manual - <strong>New</strong></li> + </ol></div><div class="subsection"><a name="Major_Changes_Since_Last_Release"></a><h3>Major Changes Since Last Release</h3><ol> + <li>Major Memory leak fixes</li> + <li>Many Bug Fixes</li> + <li>Improvement to Documentation</li> + </ol></div><div class="subsection"><a name="Items_pending_for_1_0"></a><h3>Items pending for 1.0</h3><ol> + <li>Complete API documentation and API improvements</li> + <li>Fix further memory leaks</li> + <li>Create a comprehensive functional test framework</li> + </ol><p><a id="0_94"></a></p></div><div class="subsection"><a name="3rd_October_2006_Axis2_C_Version_0_94_Released"></a><h3>3rd October 2006 Axis2/C Version 0.94 Released</h3><p><a href="download.cgi">Download 0.94</a></p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3><ol> + <li>AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages. This + has complete XML infoset support</li> + <li>Support for one-way messaging (In-Only) and request response messaging + (In-Out)</li> + <li>Description hierarchy (configuration, service groups, services, + operations, and messages)</li> + <li>Directory based deployment model</li> + <li>Archive based deployment model</li> + <li>Context hierarchy (corresponding contexts mapped to each level of the + description hierarchy)</li> + <li>Raw XML message receiver</li> + <li>Module architecture, with a mechanism to extend the SOAP processing + model</li> + <li>Module version support</li> + <li>Transports support: HTTP + <ul> + <li>Both simple axis server and Apache2 HTTPD module for the server + side</li> + <li>Client transport with the ability to enable SSL support</li> + </ul> + </li> + <li>Service client and operation client APIs</li> + <li>REST support (HTTP POST case)</li> + <li>WS-Addressing, both the submission (2004/08) and final (2005/08) + versions</li> + <li>MTOM/XOP support</li> + <li>Code generation tool for stub and skeleton generation for a given WSDL + (based on the Java tool) + <ul> + <li>Axis Data Binding (ADB) support</li> + </ul> + </li> + <li>Security module with UsernameToken support</li> + <li>REST support (HTTP GET case)</li> + <li>Dynamic invocation support (based on the XML schema and WSDL + implementations)</li> + <li>Guththila pull parser support - <strong>New</strong></li> + <li>WSDL2C code generation tool- with schema code generation (experimental) + - <strong>New</strong></li> + <li>TCP Monitor - C implementation (experimental) - + <strong>New</strong></li> + </ol></div><div class="subsection"><a name="Major_Changes_Since_Last_Release"></a><h3>Major Changes Since Last Release</h3><ol> + <li>Guththila pull parser support</li> + <li>WSDL2C code generation tool</li> + <li>TCP Monitor - C implementation</li> + <li>Major Memory leak fixes</li> + <li>Fixes to code generation with Java Tool</li> + <li>Many Bug Fixes</li> + </ol></div><div class="subsection"><a name="Items_pending_for_1_0"></a><h3>Items pending for 1.0</h3><ol> + <li>Complete API documentation and API improvements</li> + <li>Fix further memory leaks</li> + <li>Create a comprehensive functional test framework</li> + </ol><p><a id="0_93"></a></p></div><div class="subsection"><a name="31st_August_2006_Axis2_C_Version_0_93_Released"></a><h3>31st August 2006 Axis2/C Version 0.93 Released</h3><p><a href="download.cgi">Download 0.93</a></p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3><ol> + <li>AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages. This + has complete XML infoset support</li> + <li>Support for one-way messaging (In-Only) and request response messaging + (In-Out)</li> + <li>Description hierarchy (configuration, service groups, services, + operations, and messages)</li> + <li>Directory based deployment model</li> + <li>Archive based deployment model</li> + <li>Context hierarchy (corresponding contexts mapped to each level of the + description hierarchy)</li> + <li>Raw XML message receiver</li> + <li>Module architecture, with a mechanism to extend the SOAP processing + model</li> + <li>Module version support</li> + <li>Transports supports: HTTP + <ul> + <li>Both simple axis server and Apache2 HTTPD module for the server + side</li> + <li>Client transport with the ability to enable SSL support</li> + </ul> + </li> + <li>Service client and operation client APIs</li> + <li>REST support (HTTP POST case)</li> + <li>WS-Addressing, both the submission (2004/08) and final (2005/08) + versions</li> + <li>MTOM/XOP support</li> + <li>Code generation tool for stub and skeleton generation for a given WSDL + (based on the Java tool) + <ul> + <li>Axis Data Binding (ADB) support</li> + </ul> + </li> + <li>Security module with UsernameToken support</li> + <li>REST support (HTTP GET case)</li> + <li>Dynamic invocation support (based on the XML schema and WSDL + implementations)</li> + </ol></div><div class="subsection"><a name="Major_Changes_Since_Last_Release"></a><h3>Major Changes Since Last Release</h3><ol> + <li>REST support for HTTP GET case</li> + <li>XML Schema implementation</li> + <li>Woden/C implementation that supports both WSDL 1.1 and WSDL 2.0</li> + <li>Dynamic client invocation (given a WSDL, it consumes the services + dynamically)</li> + <li>Numerous improvements to API and API documentation</li> + <li>Many bug fixes, especially, many paths of execution previously + untouched were tested along with the Sandesha2/C implementation</li> + </ol></div><div class="subsection"><a name="Items_pending_for_1_0"></a><h3>Items pending for 1.0</h3><ol> + <li>Complete API documentation and API improvements</li> + <li>Fix major memory leaks</li> + <li>Test codegen for both ADB and none cases</li> + <li>Put in place a comprehensive functional test framework</li> + <li>WSDL2C tool</li> + </ol><p><a id="0_92"></a></p></div><div class="subsection"><a name="16th_June_2006_Axis2_C_Version_0_92_Released"></a><h3>16th June 2006 Axis2/C Version 0.92 Released</h3><p><a href="download.cgi">Download 0.92</a></p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3><ol> + <li>AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages. This + has complete XML infoset support.</li> + <li>Support for One-Way Messaging (In-Only) and Request Response Messaging + (In-Out)</li> + <li>Module Architecture, with a mechanism to extend the SOAP processing + model</li> + <li>Context hierarchy</li> + <li>Directory based deployment model</li> + <li>Raw XML providers</li> + <li>WS-Addressing, for both the submission (2004/08) and final (2005/08) + versions</li> + <li>Transports supports: HTTP + <ul> + <li>Both simple axis server and Apache2 HTTPD module</li> + <li>SSL client transport</li> + </ul> + </li> + <li>Service Groups</li> + <li>Service client and operation client APIs</li> + <li>REST support (POST case)</li> + <li>Module version support</li> + <li>Archive based deployment Model</li> + <li>MTOM support</li> + <li>WSDL Code Generation Tool for Stub and skeletons (based on Java tool) + <strong>New</strong> + <ul> + <li>Axis Data Binding - ADB <strong>New</strong></li> + </ul> + </li> + <li>Security module, usernameToken support <strong>New</strong></li> + </ol></div><div class="subsection"><a name="Major_Changes_Since_Last_Release"></a><h3>Major Changes Since Last Release</h3><ol> + <li>Completed MTOM implementation with multiple attachment support and + non-optimized case</li> + <li>Completed service client API with send robust and fire and forget</li> + <li>Added "message" to description hierarchy</li> + <li>Archive based deployment model (for services and modules)</li> + <li>Code generation for WSDL using Java WSDL2Code tool</li> + <li>ADB support (with Java WSDL2Code tool)</li> + <li>WS-Security usernameToken support</li> + <li>Initial implementation of the XML Schema parser (To be used in WSDL + parser and REST support)</li> + <li>Initial implementation of WSDL parser (To be used in dynamic + invocation)</li> + <li>Changed double pointer environment parameters into pointer parameters + to improve efficiency</li> + </ol></div><div class="subsection"><a name="Un-Implemented_Architecture_Features__TBD_in_1_0_"></a><h3>Un-Implemented Architecture Features (TBD in 1.0)</h3><ol> + <li>Session scoping for Application, SOAP, Transport, and Request + levels</li> + <li>Different character encoding support</li> + <li>REST (REpresentational State Transfer) Support (GET case)</li> + <li>Dynamic client invocation (given a WSDL, it consumes services + dynamically)</li> + </ol></div><div class="subsection"><a name="Un-Implemented_Architecture_Features__TBD_post_1_0_"></a><h3>Un-Implemented Architecture Features (TBD post 1.0)</h3><ol> + <li>Security module with encryption and signing</li> + <li>Server side Web Service Policy support</li> + <li>C2WSDL</li> + <li>WSDL2C</li> + </ol><p><a id="0_91"></a></p></div><div class="subsection"><a name="15th_May_2006_Axis2_C_Version_0_91_Released"></a><h3>15th May 2006 Axis2/C Version 0.91 Released</h3><p><a href="download.cgi">Download 0.91</a></p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3><ol> + <li>AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages. This + has complete XML infoset support.</li> + <li>Support for One-Way Messaging (In-Only) and Request Response Messaging + (In-Out)</li> + <li>Module architecture, with a mechanism to extend the SOAP processing + model</li> + <li>Context hierarchy</li> + <li>Directory based deployment model</li> + <li>Raw XML providers</li> + <li>WS-Addressing, for both the submission (2004/08) and final (2005/08) + versions</li> + <li>Transports: HTTP + <ul> + <li>Both simple axis server and Apache2 HTTPD module</li> + <li>SSL client transport <strong>New</strong></li> + </ul> + </li> + <li>Service Groups <strong>New</strong></li> + <li>Service client and operation client APIs <strong>New</strong></li> + <li>REST support (POST case) <strong>New</strong></li> + <li>Module version support <strong>New</strong></li> + <li>MTOM support <strong>New</strong></li> + </ol></div><div class="subsection"><a name="Other_notes"></a><h3>Other notes</h3><ol> + <li>Interoperability tested with Axis2/Java for XML in/out client and + services</li> + <li>Addressing 1.0 interoperability</li> + </ol></div><div class="subsection"><a name="Major_changes_since_last_release"></a><h3>Major changes since last release</h3><ol> + <li>Full Addressing 1.0 support</li> + <li>Improved fault handling model</li> + <li>SSL client transport</li> + <li>MTOM implementation</li> + <li>Implementation of easy to use service client and operation client APIs + for client side programming</li> + <li>REST support (POST case)</li> + <li>Module version support</li> + <li>Service groups</li> + <li>Numerous bug fixes since last release</li> + </ol></div><div class="subsection"><a name="Un-Implemented_Architecture_Features__TBD_in_1_0_"></a><h3>Un-Implemented Architecture Features (TBD in 1.0)</h3><ol> + <li>Sessions scoping for application, SOAP, transport and request + levels</li> + <li>Different character encoding support</li> + <li>Dynamic invocation</li> + <li>Archive based deployment Model</li> + </ol></div><div class="subsection"><a name="Un-Implemented_Architecture_Features__TBD_post_1_0_"></a><h3>Un-Implemented Architecture Features (TBD post 1.0)</h3><ol> + <li>WSDL code generation tool for stub and skeletons (based on Java + tool)</li> + <li>Security module</li> + <li>REST (REpresentational State Transfer) support (GET case)</li> + <li>Web Services policy support</li> + </ol><p><a id="0_90"></a></p></div><div class="subsection"><a name="31st_March_2006_Axis2_C_Version_0_90_Released"></a><h3>31st March 2006 Axis2/C Version 0.90 Released</h3><p><a href="download.cgi">Download 0.90</a></p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3><ol> + <li>AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages. This + has complete XML infoset support.</li> + <li>Support for One-Way Messaging (In-Only) and Request Response Messaging + (In-Out)</li> + <li>Module architecture, with a mechanism to extend the SOAP processing + model</li> + <li>Context hierarchy</li> + <li>Directory based deployment model</li> + <li>Raw XML providers</li> + <li>WS-Addressing, for both the submission (2004/08) and final (2005/08) + versions</li> + <li>Transports: HTTP + <ul> + <li>Both simple axis server and Apache2 HTTPD module</li> + </ul> + </li> + </ol></div><div class="subsection"><a name="Experimental_Features"></a><h3>Experimental Features</h3><ol> + <li>WSDL object model support <strong>New</strong> + <ul> + <li>Dynamic invocation</li> + </ul> + </li> + </ol></div><div class="subsection"><a name="Other_notes"></a><h3>Other notes</h3><ol> + <li>Interoperability tested with Axis2/Java for XML in/out client and + services</li> + <li>Addressing interoperability on client side</li> + </ol></div><div class="subsection"><a name="Major_changes_since_last_release"></a><h3>Major changes since last release</h3><ol> + <li>Minimal memory leaks</li> + <li>Apache2 module working in Windows</li> + <li>More samples and tests</li> + <li>WSDL object model was built based on the proposed WSDL 2.0 Component + model.</li> + <li>Dynamic invocation</li> + <li>Numerous bug fixes since last release</li> + </ol></div><div class="subsection"><a name="Un-Implemented_Architecture_Features__TBD_in_1_0_"></a><h3>Un-Implemented Architecture Features (TBD in 1.0)</h3><ol> + <li>Module version support</li> + <li>Archive based deployment model</li> + <li>Improved and user friendly client API</li> + <li>Support for MTOM</li> + <li>Session scoping for application, SOAP, transport, and request + levels</li> + <li>Service groups</li> + <li>Different character encoding support</li> + </ol></div><div class="subsection"><a name="Un-Implemented_Architecture_Features__TBD_post_1_0_"></a><h3>Un-Implemented Architecture Features (TBD post 1.0)</h3><ol> + <li>WSDL code generation tool for stub and skeletons (based on the Java + tool)</li> + <li>Security module</li> + <li>REST (REpresentational State Transfer) support</li> + <li>Web Services policy support</li> + <li>Axis2 Web application (Web App)</li> + </ol><p><a id="M0_5"></a></p></div><div class="subsection"><a name="10th_March_2006_Axis2_C_Milestone_0_5_Released"></a><h3>10th March 2006 Axis2/C Milestone 0.5 Released</h3><p><a href="download.cgi">Download M-0.5</a></p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3><ol type="1"> + <li>AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages.</li> + <li>Support for Request Response Messaging (In-Out)</li> + <li>Module Architecture, with a mechanism to extend the SOAP Processing + Model</li> + <li>Directory based deployment model</li> + <li>WS-Addressing, both the submission (2004/08) and final (2005/08) + versions</li> + <li>Improved and user friendly Client API</li> + <li>Transports supports: HTTP + <ul> + <li>Axis2/C server</li> + <li>Apache integration module</li> + </ul> + </li> + <li>Raw XML providers</li> + <li>Numerous bug fixes since last release</li> + </ol></div><div class="subsection"><a name="Major_Changes_Since_the_Last_Release"></a><h3>Major Changes Since the Last Release</h3><ol type="1"> + <li>Improving code quality by fixing memory leaks and reviewing the + code.</li> + <li>Apache2 integration.</li> + <li>More samples and tests</li> + <li>Initial documentations(User Guide, Developer Guide, Installation + Guide)</li> + </ol></div><div class="subsection"><a name="Still_to_be_Done"></a><h3>Still to be Done</h3><p>See a list of what we think needs to be done, and consider helping out if + you're interested.</p><ol type="1"> + <li>Management Interface for Axis2/C</li> + <li>Implementation of other transports.</li> + <li>Code generation and Dynamic Invocation</li> + <li>Hot Deployment of Services</li> + <li>Completion of interop tests</li> + <li>Support for MTOM</li> + <li>Axis Data Binding - ADB (Framework and Schema Compiler)</li> + <li>REST (REpresentational State Transfer) Support</li> + </ol><p><a id="M0_4"></a></p></div><div class="subsection"><a name="17th_February_2006_Axis2_C_Milestone_0_4_Released"></a><h3>17th February 2006 Axis2/C Milestone 0.4 Released</h3><p>We have done a considerable amount of improvements in the past two weeks + since the M0.3 release.</p><p>We have the following features added on top of the M0.3 release</p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3><p>1. Threading support and threaded simple axis server</p><p>2. Module loading support</p><p>3. Addressing module, and addressing based dispatching</p><p>4. HTTP chunking support</p><p>5. Improved logging mechanism</p><p>6. Ability to build and run on Windows platform</p><p><a id="M0_3"></a></p></div><div class="subsection"><a name="02nd_February_2006_Axis2_C_Milestone_0_3_Released"></a><h3>02nd February 2006 Axis2/C Milestone 0.3 Released</h3><p>This is the first milestone release with a working SOAP engine; we have + the simple axis server and client stubs working.</p><p>In addition to the M0.2 feature set, the following features are + included</p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3><p>1. Core engine in place with deployment, description, and context + hierarchies and HTTP transport support.</p><p>2. SOAP processing support</p><p>3. Simple HTTP server</p><p>4. Client API implementation</p><p>5. Couple of working service and client samples</p><p><a id="M0_2"></a></p></div><div class="subsection"><a name="08th_December_2005_Axis2_C_Milestone_0_2_Released"></a><h3>08th December 2005 Axis2/C Milestone 0.2 Released</h3><p>We have been able to improve the OM module since the last release, and PHP + binding for the OM module is in place.</p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3><p>1. Improved OM module</p><p>2. libxml2 parser support</p><p>3. PHP binding for the OM module</p><p>4. Some test cases for PHP binding</p><p>5. Many memory leak fixes</p><p><a id="M0_1"></a></p></div><div class="subsection"><a name="25th_November_2005_Axis2_C_Milestone_0_1_Released"></a><h3>25th November 2005 Axis2/C Milestone 0.1 Released</h3><p>This release includes the C implementation of AXIOM, an important part of + the Axis2C Web service stack.</p></div><div class="subsection"><a name="Key_Features"></a><h3>Key Features</h3><p>1. OM module</p><p>2. Guththila pull parser support</p><p>3. libxml2 parser support (only reader is supported as of now)</p><p>4. doxygen documentation support</p><p>5. A sample demonstrating how to use OM</p></div></div></div></div><div class="clear"><hr></hr></div></body></html> diff --git a/xdocs/coding_conventions.html b/xdocs/coding_conventions.html new file mode 100644 index 0000000..0015b1a --- /dev/null +++ b/xdocs/coding_conventions.html @@ -0,0 +1,130 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Apache Axis2/C - Coding Conventions</title> + <h2>Axis2/C Coding Conventions</h2><div class="subsection"><a name="Contents"></a><h3>Contents</h3><ul> + <li><a href="#1_Naming_conventions_">Naming Conventions</a> + <ul> + <li><a href="#1_1_Variables">Variables</a></li> + <li><a href="#1_2_Functions_">Functions</a></li> + <li><a href="#1_3_Structures_and_user_defined_data">Structures and User + defined Data Types</a></li> + <li><a href="#1_4_Macros">Macros</a></li> + <li><a href="#1_5_Enumerations">Enumerations</a></li> + </ul> + </li> + <li><a href="#2_Indentation">Indentation and Formatting</a></li> + <li><a href="#3_Comments">Comments</a></li> + <li><a href="#4_Function_parameters_and_Return_Value">Function Parameters + and Return Value Conventions</a></li> + <li><a href="#5_Include_directives">Include Directives</a></li> +</ul><p><a name="1_Naming_conventions_"></a></p></div><div class="subsection"><a name="1__Naming_Conventions"></a><h3>1. Naming Conventions</h3><ul> + <li>Namespace validation is done using the + <code><strong>axis2_</strong></code> prefix.</li> + <li>Underscore should be used to separate individual words in + identifiers.</li> + <li>All identifiers should be meaningful and abbreviations must be avoided + whenever possible.</li> +</ul><p><a name="1_1_Variables"></a></p></div><div class="subsection"><a name="1_1_Variables"></a><h3>1.1 Variables</h3><ul> + <li>Use meaningful nouns.</li> + <li>Make sure to use all lowercase letters for private and public + variables.</li> + <li>If it is a local variable or a member of a struct, there's no need to + prefix it with <code>axis2_</code></li> + e.g.</ul> + <div class="source"><pre>int count = 0; +char *prefix = NULL; +</pre></div> + <p><a name="1_2_Functions_"></a></p></div><div class="subsection"><a name="1_2_Functions"></a><h3>1.2 Functions</h3><ul> + <li>Function names should always start with the prefix <code>axis2_</code> + except for members of a struct.</li> + e.g.</ul> + <div class="source"><pre>axis2_engine_t * axis2_engine_create(axutil_env_t *environment); +</pre></div> + <p><a name="1_3_Structures_and_user_defined_data"></a></p></div><div class="subsection"><a name="1_3_Structures_and_User_Defined_Data_Types"></a><h3>1.3 Structures and User Defined Data Types</h3><ul> + <li>Note the _t suffix in the type name.</li> + e.g.</ul> + <div class="source"><pre>typedef struct axis2_endpoint_ref { + axis2_char_t *address; +} axis2_endpoint_ref_t; +</pre></div> + <p><a name="1_4_Macros"></a></p></div><div class="subsection"><a name="1_4_Macros"></a><h3>1.4 Macros</h3><ul> + <li>Macro names should be in all uppercase letters.</li> + e.g.</ul> + <div class="source"><pre>#define AXIS2_H +#define AXIS2_ERROR_GET_MESSAGE(error) ((error)->ops->get_message(error)) + +</pre></div> + <p><a name="1_5_Enumerations"></a></p></div><div class="subsection"><a name="1_5_Enumerations"></a><h3>1.5 Enumerations</h3><ul> + e.g.</ul> + <div class="source"><pre>typedef enum axis2_status_codes { + AXIS2_FAILURE = 0, + AXIS2_SUCCESS +} axis2_status_codes_t; +</pre></div> + <p><a name="2_Indentation"></a></p></div><div class="subsection"><a name="2__Indentation_and_Formatting"></a><h3>2. Indentation and Formatting</h3><ul> + Indentation rules are defined in terms of <a href="http://astyle.sourceforge.net/" class="externalLink" title="External Link">Artistic Style</a> indent +options:</ul><ul> + + astyle --style=ansi -b -p -s4 -M0 -c -U -S</ul><ul> + In detail, these options mean, + <ul> + <li>Use the ANSI style code layout + <pre> int foo() + { + if (is_bar) + { + bar(); + return 1; + } + else + return 0; + } + </pre> + </li> + <li>Use spaces around operators</li> + <li>Use four spaces for indenting</li> + <li>No spaces between the function name and parenthesis + <pre> if (is_foo(a, b)) + bar(a, b); + </pre> + <pre> </pre> + </li> + </ul> + There are some more formatting guidelines that could not be enforced by a + formatting tool, but nevertheless should be followed. + <ul> + <li>Checking pointer validity: + <pre> if (foo)</pre> + and NOT + <pre> if (foo != NULL)</pre> + </li> + <li>Checking equality: + <pre> if (foo == 7)</pre> + and NOT + <pre> if (7 == foo)</pre> + </li> + </ul> +</ul><p><a name="3_Comments"></a></p></div><div class="subsection"><a name="3__Comments"></a><h3>3. Comments</h3><ul> + <a href="http://www.stack.nl/%7Edimitri/doxygen/docblocks.html" class="newWindow" title="New Window" target="_blank">Doxygen style comments</a> should be used to help auto + generate API documentation. All structs and functions including parameters + and return types should be documented.</ul><p><a name="4_Function_parameters_and_Return_Value"></a></p></div><div class="subsection"><a name="4__Function_Parameters_and_Return_Value_Conventions"></a><h3>4. Function Parameters and Return Value Conventions</h3><ul> + Each function should be passed a pointer to an instance of the + <code>axutil_env_t</code> struct as the first parameter. If the + function is tightly bound to a struct, the second parameter is a pointer to + an instance of that struct.</ul><ul> + Functions returning pointers should return NULL in case of an error. The + developer should make sure to set the relevant error code in the + environment's error struct.</ul><ul> + Functions that do not return pointer values should always return the + <code>AXIS2_FAILURE</code> status code on error whenever possible, or + return some other defined error value (in case of returning a struct + perhaps). A relevant error code must also be set in the environment's error + struct.</ul><p><a name="5_Include_directives"></a></p></div><div class="subsection"><a name="5__Include_Directives"></a><h3>5. Include Directives</h3><ul> + It is preferable to include header files in the following fashion:</ul><ul> +</ul> + <div class="source"><pre><standard header files> +<other system headers> +"local header files" + + + +</pre></div> + </div></div></div></div><div class="clear"><hr></hr></div></body></html> diff --git a/xdocs/docs/architecture_notes.html b/xdocs/docs/architecture_notes.html new file mode 100644 index 0000000..27529d4 --- /dev/null +++ b/xdocs/docs/architecture_notes.html @@ -0,0 +1,76 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Apache Axis2/C - Architecture Notes</title><h2>C Specific Architectural Notes on Apache Axis2/C</h2><p>Please send your feedback to: <a href="mailto:axis-c-dev@ws.apache.org?subject=[Axis2]">axis-c-dev@ws.apache.org</a> +(Subscription details are available on the <a href="http://ws.apache.org/axis2/c/mail-lists.html" class="externalLink" title="External Link">Axis2 site</a>.) Prefix +the subject with [Axis2].</p><div class="subsection"><a name="Contents"></a><h3>Contents</h3><ul> + <li><a href="#Introduction">Introduction</a></li> + <li><a href="#Axis2_Environment">Environment Struct</a></li> + <li><a href="#Dynamic_Loading">Dynamic Loading</a></li> + <li><a href="#Transport_Abstraction">Transport Abstraction</a></li> + <li><a href="#Stream_Abstraction">Stream Abstraction</a></li> + <li><a href="#Threading_Model">Threading Model</a></li> + <li><a href="#Parser_Abstraction">Parser Abstraction</a></li> +</ul><p><a name="Introduction"></a></p></div><div class="subsection"><a name="Introduction"></a><h3>Introduction</h3><p>Some of the main design goals of Apache Axis2/C are the usability of the +library, the ability to be plugged into different platforms, and the ability +to be embedded in other software systems to provide Web services support. +There are many features that allow Axis2/C to be pluggable into different +platforms as well as to enable the extension of the functionality of +Axis2/C.</p><p><a name="Axis2_Environment"></a></p></div><div class="subsection"><a name="Environment_Struct"></a><h3>Environment Struct</h3><p>Apache Axis2/C defines an environment struct to hold platform specific +entities such as the memory allocator, the threading mechanism, etc. The +environment is initialized at the point of starting Axis2/C and will last for +the lifetime of the Axis2/C run-time. Different sub environments can also be +created to suit particular needs, for example, each thread can create its own +environment. The Axis2 environment holds the following entities in order to +abstract the platform specific implementations.</p></div><div class="subsection"><a name="Allocator"></a><h3>Allocator</h3><p>Allocator is the wrapper for memory management mechanisms. It defines the +following primitives:</p><ol> + <li><code>malloc</code> - method to allocate a memory block of a given + size.</li> + <li><code>free</code> - method to free a memory block.</li> +</ol><p>Based on the platform, or the software system into which Axis2/C is +embedded, these primitives could be provided with concrete +implementations.</p></div><div class="subsection"><a name="Error"></a><h3>Error</h3><p>Error defines error reporting mechanisms for Axis2/C. All the Axis2/C +internal functions use the <code>axutil_error</code> struct instance in the +environment to report errors.</p></div><div class="subsection"><a name="Log"></a><h3>Log</h3><p>The log defines the common logging mechanisms required for the Axis2/C +library. All internal Axis2/C code use the functions associated with the +<code>axutil_log</code> struct available in the environment for logging.</p></div><div class="subsection"><a name="Thread_Pool"></a><h3>Thread Pool</h3><p>The thread pool defines the thread management functions. It hides the +complex thread pooling functions as well as the platform specific +implementations of threads. The Axis2/C internal library uses this interface +to manipulate threads and deal with a common thread type which is defined as +<code>axutil_thread.</code></p><p>The environment struct is the starting point for platform abstraction +supported by Axis2/C. It can be used to plug platform specific memory +management, error reporting, logging, and thread pooling mechanisms.</p><p><a name="Dynamic_Loading"></a></p></div><div class="subsection"><a name="Dynamic_Loading"></a><h3>Dynamic Loading</h3><p>Axis2/C is designed in an extensible manner, so that the users can add +functionality by implementing new modules. These modules should be compiled +as Dynamic Shared Objects (DSOs). Services are also loaded dynamically at +server start up by reading the contents of the services folder and service +configuration files.</p><p>The DSO support for loading Axis2/C services and modules is based on the +struct named <code>axutil_class_loader</code>. To abstract the +<code>axutil_class_loader</code> from the DSO loading functionality of the +underlying operating system, a set of platform independent macros such as +<code>AXIS2_PLATFORM_LOADLIB</code> and <code>AXIS2_PLATFORM_UNLOADLIB</code> +are used. These macros will be mapped to platform specific system calls in +platform specific header files (e.g. <code>axutil_unix.h</code> and +<code>axutil_windows.h</code>). The file +<code>axutil_platform_auto_sense.h</code> will include the correct platform +specific header file, based on the compiler directives available at compile +time.</p><p><a name="Transport_Abstraction"></a></p></div><div class="subsection"><a name="Transport_Abstraction"></a><h3>Transport Abstraction</h3><p>One of the key advantages of Axis2/C is the fact that the engine and the +SOAP processing is independent of the transport aspects. Users can develop +their own transports and the interface will be defined in: +<code>axis2_transport_sender.h</code> and +<code>axis2_transport_receiver.h</code>.</p><p>Currently, Axis2/C supports HTTP transport. Axis2/C Apache2 module (<a href="installationguide.html#installing-apache2">mod_axis2</a>) is an example +of the implementation of the <code>axis2_transport_receiver.h</code> +interface. libcurl based client transport is an example of the implementation +of the <code>axis2_transport_sender.h</code> interface.</p><p><a name="Stream_Abstraction"></a></p></div><div class="subsection"><a name="Stream_Abstraction"></a><h3>Stream Abstraction</h3><p>Stream is a representation of a sequence of bytes. Since Axis2/C heavily +uses streaming mechanisms to read/write XML, an implementation independent +stream abstraction is required in order to integrate Axis2/C into other +environments seamlessly. The core components of Axis2/C deal with this +abstracted stream and does not worry about the implementation specific +details. <code>axutil_stream.h</code> defines the stream interface.</p><p><a name="Threading_Model"></a></p></div><div class="subsection"><a name="Threading_Model"></a><h3>Threading Model</h3><p>The Axis2/C core functions such as asynchronous invocation and concurrent +request processing in simple axis2 server make use of threads. The use of +threads should be platform independent inside the Axis2/C core components.</p><p>An implementation independent interface for threads is provided in the +<code>axutil_thread.h</code> header file. Platform specific implementations +of this interface are provided for Windows and Linux.</p><p><a name="Parser_Abstraction"></a></p></div><div class="subsection"><a name="Parser_Abstraction"></a><h3>Parser Abstraction</h3><p>The Axis2/C architecture depends on the XML pull model when dealing with +XML payloads. In Java there is StAX API, but in C there is no such standard +API. Therefore, an XML pull API, that is similar to StAX API, is defined in +the <code>axiom_xml_reader.h</code> and <code>axiom_xml_writer.h</code>. Any +implementation of this API can be plugged into the Axis2/C core. If an +external XML parser needs to be plugged into Axis2/C, a wrapper that maps the +reading/writing functions to the Axis2/C XML reader/writer API should be +written.</p></div></div></div></div><div class="clear"><hr></hr></div></body></html> diff --git a/xdocs/docs/axis2c_manual.html b/xdocs/docs/axis2c_manual.html new file mode 100644 index 0000000..2b26e55 --- /dev/null +++ b/xdocs/docs/axis2c_manual.html @@ -0,0 +1,3951 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html><head><title>Apache Axis2/C - Manual</title></head> +<body> +<h2>Preamble</h2> +<p style="margin-bottom: 0in;">This document is intended +to be a reference +manual for <a href="http://ws.apache.org/axis2/c" class="externalLink" title="External Link">Apache +Axis2/C</a>. This +manual details how Axis2/C can be used to provide and consume Web +services.</p> +<p style="margin-bottom: 0in;">Please send your feedback +to the Apache Axis2/C +developer mailing list (<a href="mailto:axis-c-dev@apache.org">axis-c-dev@apache.org</a>). +Subscription +details are available on the <a href="http://ws.apache.org/axis2/c/mail-lists.html" class="externalLink" title="External Link">Apache +Axis2/C website</a>.</p> +<p>This document uses the following conventions:</p> +<ul> +<li>The directory each package is installed in is given with an +"_INSTALL_DIR" suffix to the package name. For example, the path in +which Libxml2 is installed is referred to as LIBXML2_INSTALL_DIR</li> +</ul> +<p style="margin-bottom: 0in;"><br /> +</p> +<div class="section"><a name="Axis2_C_Manual_-_Contents"></a> +<h2>Axis2/C Manual - Contents</h2> +<ol> +<li><a href="#quick_start">Quick Start Guide</a></li> +<li><a href="#repo_folder">Repository Folder</a></li> +<li><a href="#svc_api">Service API</a></li> +<li><a href="#client_api">Client API</a></li> +<li><a href="#rest">REST</a></li> +<li><a href="#mtom">MTOM</a></li> +<li><a href="#engaging_module">Engaging a Module</a></li> +<li><a href="#ws_addressing">WS-Addressing</a></li> +<li><a href="#writing_module">Writing a Module</a></li> +<li><a href="#simple_axis_server">Simple Axis +Server</a></li> +<li><a href="#mod_axis2">Deploying with Apache2 +HTTP Web Server</a></li> +<li><a href="#IIS">Deploying with Microsoft IIS +Server</a></li> +<li><a href="#ssl_client">Using SSL Client</a></li> +<li><a href="#proxy">Using Proxy Support</a></li> +<li><a href="#proxy_auth">Using Proxy +Authentication Support</a></li> +<li><a href="#http_auth">Using HTTP Authentication +Support</a></li> +<li><a href="#wsdl2c">WSDL2C Tool</a></li> +<li><a href="#tcptrans">TCP Transport</a></li> +<li><a href="#amqptrans">AMQP Transport</a></li> +<li><a href="#archive">Archive Based Deployment</a></li> +<li><a href="#tcpmon">TCPMon Tool</a></li> +<li><a href="#appA">Appendix A - axis2.xml</a></li> +<li><a href="#appB">Appendix B - services.xml</a></li> +<li><a href="#appC">Appendix C - module.xml</a></li> +<li><a href="#appD">Appendix D - service client +options</a></li> +</ol> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="quick_start"></a></p> +</div> +<div class="section"><a name="1__Quick_Start_Guide"></a> +<h2>1. Quick Start Guide</h2> +<p>This section is aimed to help you get a Web service running in +a short +time using Axis2/C, and consume that service using an Axis2/C client.</p> +<p>First, <a href="http://ws.apache.org/axis2/c/download.cgi" class="externalLink" title="External Link">download</a> +the latest binary release from Apache Axis2/C. Once you download the +correct +binary that suits your platform, all that you require to get it running +is to +extract the package to a folder of your choice, and set the AXIS2C_HOME +environment variable to point to this extracted folder. For Linux, you +may +have to set the LD_LIBRARY_PATH environment variable to include the lib +folder (e.g. add $AXIS2C_HOME/lib). For MS Windows, you will have to +add the +lib folder to your PATH variable to include the Axis2/C DLLs to your +path.</p> +<p>Now you should be able to change the directory to the bin +folder of the +extracted folder, and run the simple axis server in one command shell. +Then +change the directory to samples/bin in another command shell and run +any of +the samples there (you may have to set the environment variables in +this new +shell as well). Please see the <a href="http://ws.apache.org/axis2/c/docs/installationguide.html" class="externalLink" title="External Link">installation +guide</a> for more details.</p> +<p>Once you have Axis2/C up and running successfully, you can +start writing +your own services and clients. The following sections explain how to +write +your first service and client with Axis2/C.</p> +<div class="subsection"><a name="1_1_Hello_Service"></a> +<h3>1.1 Hello Service</h3> +<p>Let's see how you can write your first Web service with +Axis2/C and how to +deploy it.</p> +<p>The first service that we are going to write is named "hello" +with a +single operation named "greet" in the service. This "greet" operation, +when +invoked by the client, will expect the client to send a greeting in the +request, and in turn send a greeting in the response. Following are +examples +of XML payloads exchanged between the client and the service:</p> +<p>Request:</p> +<div class="source"> +<pre> <greet><br /> Hello Service!<br /> <greet><br /><br /></pre> +</div> +<p>Response:</p> +<div class="source"> +<pre> <greetResponse><br /> Hello Client!<br /> <greetResponse><br /></pre> +</div> +<br /> +<p>The steps to be followed when implementing a service with +Axis2/C +include:</p> +<ol> +<li><b>Implement the functions corresponding to the +operations of the service.</b> <br /> +In our sample, we will have one function that implements the "greet" +operation. <br /> +We will name that function <code>axis2_hello_greet</code>.</li> +<li><b>Implement the functions defined by the <code>axis2_svc_skeleton</code> +interface</b><br /> +<code>axis2_svc_skeleton</code> interface expects the +functions <code>init</code>, <code>invoke</code>, +<code>on_fault</code> and <code>free</code> +to be implemented by our service.<br /> +In our sample, we would implement those and name them as <code>hello_init</code>, +<code>hello_invoke</code>, <code>hello_on_fault</code> +and <code>hello_free</code> respectively.<br /> +</li> +<li><b>Implement the create function, that would create +an instance of the service skeleton</b><br /> +The create function would create an axis2_svc_skeleton and assign the +respective function pointers to map the axis2_svc_skeleton interface to +our interface implementation methods explained in the above step.<br /> +</li> +<li><b>Implement axis2_get_instance and +axis2_remove_instance functions</b><br /> +These functions are used to create and destroy service instances by the +engine, and each service must define these functions.<br /> +</li> +<li><b>Write the services.xml file for the service</b><br /> +The services.xml file acts as the deployment descriptor file for the +service. As the bare minimum, we need to configure the service name, +operations, and the shared library file name containing the service +implementation in this file.<br /> +As previously decided, we will name the service "hello", the operation +"greet" and the shared library libhello.so on Linux and hello.dll on MS +Windows.<br /> +</li> +</ol> +</div> +<div class="subsection"><a name="1_1_1_Operation_Implementation"></a> +<h3>1.1.1 Operation Implementation</h3> +<p>Look for the <code>axis2_hello_greet</code> +function in the <a href="hello/service/hello_svc.c.html">hello_svc.c</a> +source file.</p> +<p>This function implements the business logic for the greet +operation. We +will be calling this function from our implementation of the invoke +function. +Basically, this function receives the request payload as an +<code>axiom_node</code>, process it to understand the +request logic, and +prepares the response as an <code>axiom_node</code> and +returns that.</p> +</div> +<div class="subsection"><a name="1_1_2_Skeleton_Create_Method"></a> +<h3>1.1.2 Skeleton Create Method</h3> +<p>Look for the <code>axis2_hello_create</code> +function in the <a href="hello/service/hello_svc.c.html">hello_svc.c</a> +source file.</p> +<p>The create function creates and returns a new +<code>axis2_svc_skeleton</code> instance. The most +important aspect to note +about this function is the function pointer assignments. They are used +to map +the interface operations to the corresponding functions of the +implementation. This is done by assigning the ops member of the service +skeleton to the address of the ops struct variable.</p> +</div> +<div class="subsection"><a name="1_1_3_Invoking_Operation_Implementation"></a> +<h3>1.1.3 Invoking Operation Implementation</h3> +<p>The invoke method of the service skeleton is the point of +entry for +invoking the operations. Hence in our implementation of the invoke +function, +we have to define how the operations are to be called.</p> +<p>Look for the <code>hello_invoke</code> function +in the <a href="hello/service/hello_svc.c.html">hello_svc.c</a> +source file.</p> +<p>In our implementation of the <code>hello_invoke</code>, +we call the +function implementing the greet operation. As we have only one +operation, the +task is simple here. If we had multiple operations, we will have to +look into +the information in the message context to map it to the exact +operation. <br /> +The Axis2/C engine will call the invoke method with an +<code>axiom_node</code>, containing the request payload, +and +<code>axis2_msg_ctx</code> instance, containing the message +context +information, in addition to the service skeleton and the environment +pointers. We can use the message context to extract whatever +information we +deem necessary that is related to the incoming message. The Axis2/C +engine +expects the invoke method to return a pointer to an <code>axiom_node</code>, +representing the response payload.</p> +</div> +<div class="subsection"><a name="1_1_4_Full_Source"></a> +<h3>1.1.4 Full Source</h3> +<p>Here is the complete source code for the service : <a href="hello/service/hello_svc.c.html">hello_svc.c</a></p> +</div> +<div class="subsection"><a name="1_1_5_Service_Descriptor"></a> +<h3>1.1.5 Service Descriptor</h3> +<p>The services.xml file contains details on the service that +would be read +by the Axis2/C deployment engine during server start up time. The +following +shows the contents for the services.xml file for the hello service.</p> +<div class="source"> +<pre><service name="hello"><br /> <parameter name="ServiceClass" locked="xsd:false">hello</parameter><br /> <description><br /> Quick start guide hello service sample.<br /> </description><br /> <operation name="greet"/><br /></service><br /><br /></pre> +</div> +<p>The service configuration shown above specifies that the name +of the +service is hello. <br /> +The value of the "ServiceClass", "hello" in this case, will be mapped +to the +service implementation by the deployment engine as libhello.so on Linux +or +hello.dll on MS Windows. The description element contains a brief +description +of the service. <br /> +There can be one or more operation elements. For this sample, we only +have +one operation, with the name "greet".<br /> +</p> +</div> +<div class="subsection"><a name="1_1_6_Compiling_the_Service"></a> +<h3>1.1.6 Compiling the Service</h3> +<p>You can compile the service sample as shown below.</p> +<p>On Linux:</p> +<div class="source"> +<pre>gcc -shared -olibhello.so -I$AXIS2C_HOME/include/axis2-1.6.0/ -L$AXIS2C_HOME/lib -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread -laxis2_http_sender -laxis2_http_receiver hello_svc.c<br /><br /></pre> +</div> +<p>On MS Windows:</p> +<p>to compile,</p> +<div class="source"> +<pre>cl.exe /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "AXIS2_DECLARE_EXPORT" /D "AXIS2_SVR_MULTI_THREADED" /w /nologo /I %AXIS2C_HOME%\include /c hello_svc.c<br /><br /></pre> +</div> +<p>to link,</p> +<div class="source"> +<pre>link.exe /nologo /LIBPATH:%AXIS2C_HOME%\lib axutil.lib axiom.lib axis2_parser.lib axis2_engine.lib /DLL /OUT:hello.dll *.obj<br /><br /></pre> +</div> +</div> +<div class="subsection"><a name="1_1_7_Deploying_the_Service"></a> +<h3>1.1.7 Deploying the Service</h3> +<p>To make the service available to be consumed by the clients, +we have to +deploy the service. To deploy the service, you have to create a folder +named +'hello' in the AXIS2C_HOME/services folder, and copy the services.xml +file +and the shared library file (libhello.so on Linux or hello.dll on MS +Windows) +into that folder.</p> +<p>To verify that your service has been correctly deployed, you +can start the +simple axis server and then browse the list of deployed services using +a Web +browser. To start the simple axis server, you can go to the +AXIS2C_HOME/bin +folder and run the executable axis2_http_server. The default URL that +you can +test the service list with is <a href="http://localhost:9090/axis2/services" class="externalLink" title="External Link">http://localhost:9090/axis2/services</a>. +You should get an entry for the hello service on the page that is +displayed.</p> +</div> +<div class="subsection"><a name="1_1_8_Providing_a_WSDL_for_the_Service"></a> +<h3>1.1.8 Providing a WSDL for the Service</h3> +<p>Axis2/C does not support dynamic WSDL generation. However, it +is possible to attach the contract you used to generate the service +skeleton, to the respective service. This can be done in two ways.</p> +<ol> +<li>Adding the WSDL file to the folder in which the service DLL +is found. +</li> +<li>Providing the path of the WSDL file in the services.xml. +</li> +</ol> +<p>If you choose the first option, you will have to copy the WSDL +file to the folder in which the service DLL is found. The name of the +WSDL file should be the name of the service. And, if you choose the +second option, you will have to make use of the <b><code>wsdl_path</code></b> +parameter in the services.xml file. More info on how this can be done +is found under the <a href="#appB">services.xml</a> +section.</p> +<p>An example of the second option can be found the services.xml +of the <b>echo</b> sample service, which is commented. An +example of the first option in use is seen in the <b>Calculator</b> +sample service.</p> +<p>The static WSDL file can be accessed by appending <code>?wsdl</code> +to the service end-point. You can view the WSDL provided for the +Calculator sample, by pointing to <a href="http://localhost:9090/axis2/services/Calculator?wsdl" class="externalLink" title="External Link">http://localhost:9090/axis2/services/Calculator?wsdl</a>.</p> +</div> +<div class="subsection"><a name="1_2_Hello_Client"></a> +<h3>1.2 Hello Client</h3> +<p>Now that you know how to write a service with Axis2/C, let's +see how to +write a client to consume that service. The request payload that the +client +will be sending to the service was described in the previous section. +The +client has to prepare the payload, send it to the service, and then +receive +and process the response.</p> +<p>The steps to be followed when implementing a client with +Axis2/C:</p> +<ol> +<li><b>Create the environment to be used by the client.</b> +<br /> +Each function in Axis2/C takes a pointer to the environment instance +that encapsulates the memory allocator, error handler, and logging and +threading mechanisms. The <code>axutil_env_create_all</code> +method can be used to create a default, ready to use environment +instance.<br /> +</li> +<li><b>Create an options instance, and set options</b>.<br /> +The<code> axis2_options</code> struct can be used to set +the client side options. For example, we can use options to set the +endpoint address of the service to be consumed by the client.</li> +<li><b>Create a service client instance, giving the +client repository folder as a parameter.</b><br /> +The<code> axis2_svc_client</code> struct is meant to be +used by the users to consume Web services. It provides an easy to use +API. Service client create method takes the location of the repository +as a parameter. For the purpose of our sample, you can use the +AXIS2C_HOME as the repository. The concept of <a href="#repo_folder">repository</a> +is explained in detail in a later section.<br /> +</li> +<li><b>Set options to service client instance</b><br /> +The options created in an earlier step have to be set on the service +client, indicating the options that are meant to be used by the service +client.<br /> +</li> +<li><b>Send the request and receive the response</b><br /> +The service client's <code>axis2_svc_client_send_receive</code> +method can be used to invoke the send receive operation on the service +client instance.<br /> +The send receive operation takes the request payload as an <code>axiom_node</code> +and returns the response payload as an <code>axiom_node</code>.</li> +<li><b>Process the response</b><br /> +Process the response in line with the client business logic.</li> +</ol> +</div> +<div class="subsection"><a name="1_2_1_Creating_and_Setting_Options"></a> +<h3>1.2.1 Creating and Setting Options</h3> +<div class="source"> +<pre> options = axis2_options_create(env);<br /> address = "http://localhost:9090/axis2/services/hello";<br /> endpoint_ref = axis2_endpoint_ref_create(env, address);<br /> axis2_options_set_to(options, env, endpoint_ref);<br /><br /></pre> +</div> +<p>In the above section of code, an <code>axis2_options</code> +instance is +created first. Then an endpoint reference instance is created with the +address of the location of the service. Finally, the created endpoint +is set +as the "to" address of the options. The "to" address indicates where +the +request should be sent to.</p> +</div> +<div class="subsection"><a name="1_2_2_Using_Service_Client"></a> +<h3>1.2.2 Using Service Client</h3> +<div class="source"> +<pre> svc_client = axis2_svc_client_create(env, client_home);<br /> axis2_svc_client_set_options(svc_client, env, options);<br /> payload = build_om_request(env);<br /> ret_node = axis2_svc_client_send_receive(svc_client, env, payload);<br /><br /></pre> +</div> +<p>After creating and preparing the options, the next step is to +create a +service client instance and use it to send the request and receive the +response. The code fragment given above shows how options can be set on +top +of the service client and how to invoke the send receive operation with +a +request payload. Once the response is received, the response payload +will be +stored in the <code>ret_node</code>, which is a pointer to +an +<code>axiom_node</code> that can be used to process the +response further.</p> +</div> +<div class="subsection"><a name="1_2_3_Full_Source"></a> +<h3>1.2.3 Full Source</h3> +<p>Here is the complete source code for the client : <a href="hello/client/hello.c.html">hello.c</a></p> +</div> +<div class="subsection"><a name="1_2_4_Compiling_the_Client"></a> +<h3>1.2.4 Compiling the Client</h3> +<p>You can compile the client sample as shown below.</p> +<p>On Linux:</p> +<div class="source"> +<pre>gcc -o hello -I$AXIS2C_HOME/include/axis2-1.6.0/ -L$AXIS2C_HOME/lib -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread -laxis2_http_sender -laxis2_http_receiver hello.c -ldl -Wl,--rpath -Wl,$AXIS2C_HOME/lib<br /><br /></pre> +</div> +<p>On MS Windows:</p> +<p>to compile,</p> +<div class="source"> +<pre>cl.exe /nologo /D "WIN32" /D "_WINDOWS" /D "_MBCS" /I %AXIS2C_HOME%\include /c hello.c<br /><br /></pre> +</div> +<p>to link,</p> +<div class="source"> +<pre>link.exe /LIBPATH:%AXIS2C_HOME%\lib axutil.lib axiom.lib axis2_parser.lib axis2_engine.lib /OUT:hello.exe *.obj<br /><br /></pre> +</div> +</div> +<div class="subsection"><a name="1_2_5_Running_the_Client"></a> +<h3>1.2.5 Running the Client</h3> +<p>To run the client, make sure you start the simple axis server +and then run +the hello executable.</p> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="repo_folder"></a></p> +</div> +</div> +<div class="section"><a name="2__Repository_Folder"></a> +<h2>2. Repository Folder</h2> +<p>Repository is a folder where all Axis2/C related +configurations as well as +services and modules are located. The following shows the folder +structure of +the repository:</p> +<img src="images/axis2c_repo.gif" alt="" /> +<p>Here the name of the repository folder is axis2c_repo. In your +system, you +can specify any folder name of your choice. There are three sub folders +available in the repository. In addition to that, the axis2.xml +configuration +file is also located in the repository. The following table describes +the +purpose of the repository contents.</p> +<table class="bodyTable"> +<caption>Axis2/C Repository Contents</caption><tbody> +<tr class="b"> +<th>Folder/File Name</th> +<th>Description</th> +</tr> +<tr class="a"> +<td> +<p>lib</p> +</td> +<td> +<p>The lib folder contains the libraries required to run +the Axis2/C engine. While you can afford to have the shared libs of +Axis2/C in a location of your choice, the dynamically loaded shared +libs, parser, transport receiver and transport sender has to be in the +repository lib folder. <br /> +It is mandatory that the lib folder is there in the repository.</p> +</td> +</tr> +<tr class="b"> +<td> +<p>modules [optional]</p> +</td> +<td> +<p>The modules folder contains the modules deployed with +Axis2/C. Each module deployed will have its own sub folder inside the +modules folder. For example, if the addressing module is deployed, then +there will be a sub folder named addressing inside the modules folder +of the repository.<br /> +At deployment, the Axis2/C deployment engine would traverse the modules +folders to find out what modules are available.<br /> +The modules folder is optional. If it is empty or non-existent, that +means that there are no deployed modules.</p> +</td> +</tr> +<tr class="a"> +<td> +<p>services [optional]</p> +</td> +<td> +<p>The services folder contains the services deployed with +Axis2/C. Each service deployed will have its own sub folder inside the +services folder, or live inside one of the sub folders.<br /> +At deployment, the Axis2/C deployment engine will traverse the services +folders to find out what services are available.<br /> +The services folder is optional. If it is empty or non-existent, that +means that there are no deployed services.</p> +</td> +</tr> +<tr class="b"> +<td> +<p>axis2.xml</p> +</td> +<td> +<p>The axis2.xml file is the configuration file of Axis2/C.<br /> +The configuration file is mandatory and must have the name axis2.xml. +It is safe to consider your Axis2/C repository to be the folder in +which you have the axis2.xml file.</p> +</td> +</tr> +</tbody> +</table> +<p>Both clients as well as the services written using Axis2/C can +use the +same repository. However you can use one repository for the server side +and +another one for the client side. The services folder is used only when +the +repository is used by the server side. When the repository is used by +the +client, the services folder, if present, will not be used.</p> +<p>The Axis2/C binary distribution, when extracted, can be +considered as +ready for use as your repository folder. If you are building Axis2/C +from the +source distribution, when you build the source, including the samples, +the +installation destination will be ready for use as your repository +folder.</p> +<p>The simple axis server (that is axis2_http_server binary), the +client +samples, and the HTTPD module (Axis2 Apache2 module) require the +repository +folder to be specified in order to run correctly.</p> +<p></p> +<div class="subsection"><a name="2_1_Module_Folders"></a> +<h3>2.1 Module Folders</h3> +<p>As described earlier, all the modules are placed inside the +modules folder +of the repository, and each module will have its own sub folder within +the +modules folder.<br /> +The folder in which a module is placed must have the same name as the +module +name. For example, the addressing module will be placed in a sub folder +named +addressing.<br /> +</p> +<p>Inside the folder corresponding to a module, the shared +library +implementing the module and the module configuration file, module.xml, +is +placed. It is a must that these two files are present inside each +folder +representing a module. The module.xml file will be processed by the +deployment engine to find out module specific information such as the +module +name, set of handlers, the flows into which those handlers are to be +added, +etc.</p> +</div> +<div class="subsection"><a name="2_2_Service_Folders"></a> +<h3>2.2 Service Folders</h3> +<p>All the services are placed inside the services folder of the +repository, +and each service will be in one of the sub folders within the services +folder. Axis2/C has a concept called service groups, where there can be +one +or more services inside a service group. A single stand alone service +is +assigned a service group with the same name as that of the service by +the +Axis2/C engine for the purpose of easy handling. Therefore the sub +folders in +the services folder correspond to the service groups.</p> +<p>A service, if deployed as a stand alone service, will reside +inside a +folder with the same name as that of the service. For example, the echo +service will be placed in a sub folder named echo. The shared library +implementing the service and the service configuration file, the +services.xml, will be placed inside the folder corresponding to a +service. +Given the fact that the engine treats the folders to represent service +groups +and not a single service, the configuration file is called +services.xml. +However, you can always place a single service inside a single folder, +which +is the most common use case.</p> +<p>Each sub folder within the services folder should have at +least one shared +lib implementing a service and a services.xml file. If it is a real +service +group, there will be multiple shared libs, yet there is only one +services.xml +file configuring all those services. The services.xml file is processed +by +the deployment engine to find out the service group and the service +specific +information such as the service group name, service name, the set of +operations for each service, etc.</p> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="svc_api"></a></p> +</div> +</div> +<div class="section"><a name="3__Service_API"></a> +<h2>3. Service API</h2> +<p>We have already seen how to write a service in the Quick Start +Guide +section of this manual. This section covers the service API of Axis2/C +in +more detail.</p> +<p><code>axis2_svc_skeleton</code> is an interface. +Axis2/C does not provide +any concrete implementation of this interface. It is the responsibility +of +the service implementer to implement this interface. To implement the +interface, you should implement the functions adhering to the function +pointer signatures of the members of the <code>axis2_svc_skeleton_ops</code> +struct. Then, a create function should be written to create an +<code>axis2_svc_skeleton</code> instance, and assign the +implementing +functions to the members of the ops member of service skeleton.</p> +<p>The following table details the signatures of the function +pointer members +of the <code>axis2_svc_skeleton</code> struct implemented +by a service.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Function Signature</th> +<th>Description</th> +</tr> +<tr class="b"> +<td> +<pre>int (AXIS2_CALL *<br /> init)(axis2_svc_skeleton_t *svc_skeleton,<br /> const axutil_env_t *env);</pre> +</td> +<td>Initializes the service skeleton object instance. The +Axis2/C engine initializes a service skeleton instance once per +deployed service, during the first request made to the service.</td> +</tr> +<tr class="a"> +<td width="410"> +<pre>axiom_node_t *(AXIS2_CALL*<br /> invoke )( axis2_svc_skeleton_t *svc_skeli,<br /> const axutil_env_t *env,<br /> axiom_node_t *node,<br /> axis2_msg_ctx_t *msg_ctx);</pre> +</td> +<td>Invokes the service implementation. You have to +implement the logic to call the correct functions in this method based +on the name of the operation being invoked.</td> +</tr> +<tr class="b"> +<td> +<pre>axiom_node_t *(AXIS2_CALL*<br /> on_fault)(<br /> axis2_svc_skeleton_t *svc_skeli,<br /> const axutil_env_t *env,<br /> axiom_node_t *node);</pre> +</td> +<td>This method is called by the engine if a fault is +detected.</td> +</tr> +<tr class="a"> +<td> +<pre>axis2_status_t (AXIS2_CALL *<br /> free )( axis2_svc_skeleton_t *svc_skeli,<br /> const axutil_env_t *env);</pre> +</td> +<td>Frees the service implementation instance.</td> +</tr> +</tbody> +</table> +<br /> +<p>There are two more methods that a service should implement. +Once a service +is deployed, the message receiver of the Axis2/C engine has to create a +service instance at run time for the purpose of invoking it. For this, +it +looks for a method named <code>axis2_create_instance</code> +and calls it on +the service shared library. The engine also looks for a function named +<code>axis2_remove_instance</code> in the shared library +for clean up +purposes.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Function Signature</th> +<th>Description</th> +</tr> +<tr class="a"> +<td> +<pre>AXIS2_EXPORT int<br />axis2_get_instance(<br /> axis2_svc_skeleton_t ** inst,<br /> const axutil_env_t * env);</pre> +</td> +<td>Creates an instance of the service. You have to +implement the logic of creating the service object, allocating memory +etc. in this method.</td> +</tr> +<tr class="b"> +<td width="410"> +<pre>AXIS2_EXPORT int<br />axis2_remove_instance(<br /> axis2_svc_skeleton_t * inst,<br /> const axutil_env_t * env);</pre> +</td> +<td>Removes the instance of the service. Do any cleaning-up +and deallocations here.</td> +</tr> +</tbody> +</table> +<br /> +<p>Note that service object instantiation happens once per +service. When the +first request is received by the service, a service skeleton instance +is +created and initialized. The same object instance will be re-used by +the +subsequent requests.</p> +<p>You can find an example on how to implement the service +skeleton interface +in the <a href="hello/service/hello_svc.c.html">hello_svc.c</a> +source file, +which is the example used in the <a href="#quick_start">Quick +Start +Guide</a>. More advanced samples can be found in the samples +folder of the +Axis2/C distribution.</p> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="client_api"></a></p> +</div> +<div class="section"><a name="4__Client_API"></a> +<h2>4. Client API</h2> +<p>The primary client API to be used with Axis2/C is +<code>axis2_svc_client</code>, the service client API. This +is meant to be an +easy to use API for consuming services. If you want to do more complex +tasks, +such as invoking a client inside a module, or wrap the client API with +another interface, you may need to use <code>axis2_op_client</code>, +the +operation client API. For most of the use cases, the service client API +is +sufficient.</p> +<p>The behavior of the service client can be fine tuned with the +options +passed to the service client. You can set the options by creating an +<code>axis2_options</code> instance. The bare minimum that +you need to set is +the endpoint URI to which the request is to be sent. An example of this +was +given in the <a href="#quick_start">Quick Start Guide +section</a>.</p> +<p>The service client interface serves as the primary client +interface for +consuming services. You can set the options to be used by the service +client +and then invoke an operation on a given service. There are several ways +of +invoking a service operation. The method of invoking an operation +depends on +3 things. They are,</p> +<ol> +<li>The Message Exchange Pattern (MEP)</li> +<li>Synchronous/Asynchronous behavior (Blocking/Non-Blocking)</li> +<li>Two-way or one-way transport</li> +</ol> +<p>Many service operation invocation scenarios can be obtained by +combining +the above three factors. The service client interface provides the +necessary +API calls to achieve this.</p> +<p>Deciding the Message Exchange Pattern (MEP)</p> +<p>There are 2 message exchange patterns.</p> +<ol> +<li>Out-Only</li> +<li>Out-In</li> +</ol> +<p>In the Out-Only MEP, the client doesn't expect a reply from +the server. +The service client provides two methods of using the Out-Only MEP.</p> +<p></p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Function Signature</th> +<th>Description</th> +</tr> +<tr class="b"> +<td> +<pre>AXIS2_EXTERN void AXIS2_CALL<br /> axis2_svc_client_fire_and_forget(<br /> axis2_svc_client_t * svc_client,<br /> const axutil_env_t * env,<br /> const axiom_node_t * payload);</pre> +</td> +<td>Sends a message and forgets about it. This method is +used to interact with a service operation whose MEP is In-Only. There +is no way of getting an error from the service using this method. +However, you may still get client-side errors, such as host unknown.</td> +</tr> +<tr class="a"> +<td width="410"> +<pre>AXIS2_EXTERN axis2_status_t AXIS2_CALL<br /> axis2_svc_client_send_robust(<br /> axis2_svc_client_t * svc_client,<br /> const axutil_env_t * env,<br /> const axiom_node_t * payload);</pre> +</td> +<td>This method too is used to interact with a service +operation whose MEP is In-Only. However, unlike <code>axis2_svc_client_fire_and_forget</code>, +this function reports an error back to the caller if a fault triggers +on the server side.<br /> +When using Out-In MEP, the client expects a reply from the server. <code>axis2_svc_client_send_receive</code> +and <code> axis2_svc_client_send_receive_non_blocking</code>functions +support this MEP</td> +</tr> +<tr class="b"> +<td> +<pre> AXIS2_EXTERN axiom_node_t *AXIS2_CALL<br /> axis2_svc_client_send_receive(<br /> axis2_svc_client_t * svc_client,<br /> const axutil_env_t * env,<br /> const axiom_node_t * payload);</pre> +</td> +<td>This method is used to interact with a service +operation whose MEP is In-Out. It sends an XML request and receives an +XML response.<br /> +Returns a pointer to the AXIOM node representing the XML response. This +method blocks the client until the response arrives.</td> +</tr> +<tr class="a"> +<td> +<pre>AXIS2_EXTERN void AXIS2_CALL<br /> axis2_svc_client_send_receive_non_blocking(<br /> axis2_svc_client_t * svc_client,<br /> const axutil_env_t * env,<br /> const axiom_node_t * payload,<br /> axis2_callback_t * callback);</pre> +</td> +<td>This method too, is used to interact with a service +operation whose MEP is In-Out. It sends an XML request and receives an +XML response, but the client does not block for the response.<br /> +In this method, the client does not block for the response, but instead +it expects the user to set a call back to capture the response.</td> +</tr> +</tbody> +</table> +<br /> +<p>Please have a look at the <code>axis2_svc_client.h</code> +header file for +more information on the above mentioned functions, as well as their +synonyms +that accept an operation's qualified name.</p> +<div class="subsection"><a name="4_1_Synchronous_vs__Asynchronous_Behavior__Blocking_Non-Blocking_"></a> +<h3>4.1 Synchronous vs. Asynchronous Behavior +(Blocking/Non-Blocking)</h3> +<p>This will determine whether the client would block for the +response +(synchronous) or return immediately expecting the response to be +handled by a +callback (asynchronous, in other words non-blocking) in an Out-In MEP +scenario.<br /> +<code>axis2_svc_client_send_receive</code> operates in +synchronous mode, +whereas <code>axis2_svc_client_send_receive_non_blocking</code> +operates in +asynchronous mode.<br /> +</p> +</div> +<div class="subsection"><a name="4_2_Two-Way_or_One-Way_Transport"></a> +<h3>4.2 Two-Way or One-Way Transport</h3> +<p>If the transport is two-way, then only one channel is used, +which means +the request is sent and the response is received on the same channel. +If the +transport is one-way, then the request is sent on one channel and the +response is received on a separate channel.<br /> +If we want to use a separate channel for the response, a separate +listener +has to be started to receive the response, This can be done by setting +the +separate listener option to True using the +<code>axis2_options_set_use_separate_listener</code> +function above the +options.</p> +<p>Please have a look at the <code>echo_blocking_dual</code> +sample to see +how to set the separate channel option.</p> +<p>Please see <a href="#appD">Appendix D</a> +for further details on setting +options.</p> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="rest"></a></p> +</div> +</div> +<div class="section"><a name="5__REST"></a> +<h2>5. REST</h2> +<p>Axis2/C comes with plain old XML (POX) like REST support. A +given service +can be exposed both as a SOAP service as well as a REST service. By +default, +your service will support SOAP as well as REST, however, your service +operations +will only be available for SOAP. In order to enable REST for your +operations you +need to add one or more parameters under your operation, in the <a href="#appB">services.xml</a>. +If you want to consume Web services using REST style calls, you can use +the HTTP +POST method, the HTTP GET method, the HTTP HEAD method, the HTTP PUT +method or +the HTTP DELETE method.<br /> +</p> +</div> +<div class="subsection"><a name="5_1_REST_client"></a> +<h3>5.1 REST on Client Side</h3> +<p>The following example code fragment shows how to set up a +client enabling a REST style +invocation.</p> +<div class="source"> +<pre>axis2_options_set_enable_rest(options, env, AXIS2_TRUE);<br /><br /></pre> +</div> +<p>You can use the same code that you use with a SOAP call, and +do REST style +invocation by just enabling REST using the option setting shown above.</p> +<p>The default HTTP method used with REST is HTTP POST. If you +need to change +it to the HTTP GET method, the following needs to be done.</p> +<div class="source"> +<pre>axis2_options_set_http_method(options, env, AXIS2_HTTP_GET);<br /><br /></pre> +</div> +<p>Similarly you can use AXIX2_HTTP_HEAD to change it to the HTTP +HEAD method, +or AXIX2_HTTP_PUT to change it to the HTTP PUT method, or +AXIX2_HTTP_DELETE to change it +to the HTTP DELETE method. </p> +<p>Please have a look at the <code>echo_rest</code> +sample for a complete +source code on how to use REST.<br /> +</p> +</div> +<div class="subsection"><a name="5_2_REST_server"></a> +<h3>5.2 REST on Server Side</h3> +<p>You basically need to add the REST Location, and the REST +Method parameters to the <a href="#appB">services.xml</a> +to enable REST in a service operation. The REST location is the +template that needs to be matched +to find your operation, and the REST Method is the HTTP Method +associated with the service. +Note that the REST Method is optional for each operation. If no REST +Method is specified, POST, +will be assumed. Optionally you may specify the default REST Method for +all operations at the service +level. Then, if you haven't specified a REST Method for your operation, +the default REST Method +specified will be assumed instead of POST. Please have a look at the <code>echo</code> +sample +service for a complete source code on how to set up REST. Shown below +is an example, on how to +configure the <code>locate</code> operation to work with +HTTP GET on REST.<br /> +</p> +<div class="source"> +<pre><operation name="locate"><br /> <parameter name="RESTMethod">GET</parameter><br /> <parameter name="RESTLocation">location/{lat}/{long}</parameter><br /></operation><br /><br /></pre> +</div> +<p>The corresponding request would look like, <code>http://www.sample.org/service/location/34N/118W</code>, +which would return Los Angeles, California. In here, the portion <code>location</code> +is fixed and <code>lat</code> and <code>long</code> +are optional parameters which will be captured to the payload. +<br /> +</p> +</div> +<div class="subsection"><a name="5_3_REST_and_SOAP_for_same_operation"></a> +<h3>5.3 REST and SOAP for Same Operation</h3> +<p>It is also possible to enable a single service operation for +SOAP as well as REST. This can be done by specifying a REST Location +that does not contain the operation name. The <code>locate</code> +operation is an example to such a case. Thus, for a SOAP invocation, +you need to use <code>http://www.sample.org/service/locate</code>, +as the end point or WS-Addressing Action.</p> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="mtom"></a></p> +</div> +<div class="section"><a name="6__MTOM"></a> +<h2>6. MTOM</h2> +<p>Axis2/C allows you to send and receive binary data with SOAP +messages +using MTOM/XOP conventions. When sending and receiving attachments, you +have +to use the service client (<code>axis2_svc_client</code>) +API to perform the +send and receive operations, and provide or consume binary data in +relation +to the AXIOM payloads.</p> +<p>In order to send a binary attachment, you need to build the +AXIOM payload +and attach the data handler with binary content to the payload.</p> +<div class="source"> +<pre><soapenv:Body><br /> <ns1:mtomSample xmlns:ns1="http://ws.apache.org/axis2/c/samples/mtom"><br /> <ns1:fileName>test.jpg</ns1:fileName><br /> <ns1:image><br /> <xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" <br /> href="cid:1.f399248e-8b39-1db1-3124-0015c53de2e5@apache.org"></xop:Include><br /> </ns1:image><br /> </ns1:mtomSample><br /></soapenv:Body><br /><br /></pre> +</div> +<p>In the above sample payload shown, we place our image file as +text within +an image element</p> +<div class="source"> +<pre>image_om_ele = axiom_element_create(env, mtom_om_node, "image", ns1, &image_om_node);<br />data_handler = axiom_data_handler_create(env, image_name, "image/jpeg");<br />data_text = axiom_text_create_with_data_handler(env, image_om_node, data_handler, &data_om_node);<br /><br /></pre> +</div> +<p>When sending attachments, you can configure the client either +to send the +attachment in the optimized format or non-optimized format.</p> +<p>To do this, set the option <code>axis2_options_set_enable_mtom(options, +env, AXIS2_TRUE);</code>or the setting +<code><enableMtom>true</enableMtom> </code>in +axis2.xml</p> +<p>If enableMTOM is set to True, the attachment is sent as it is, +out of the +SOAP body, using MIME headers. Also the payload will have an +XOP:Include +element, referring to the MIME part that contains the binary +attachment. +Sending the attachment as it is, in pure binary format, is called +binary +optimized format. In the case of binary non-optimized format, where +enableMTOM is False, the attachment content is sent in the payload +itself, as +a base64 encoded string.</p><h3><span style="font-weight: bold;">6.1 Using MTOM Callbacks</span></h3>Axis2/C +Can send and receive very large attachments with a very low memory foot +print. User can specify callbacks to load attachments before sending +and store attachments while recieving.<br /><h4>6.1.1 Sender side Callback</h4>The attachment can be loaded from any data source. User need to implement the callback using <a href="http://svn.apache.org/repos/asf/webservices/axis2/trunk/c/axiom/include/axiom_mtom_sending_callback.h">axiom_mtom_sending_callback.h</a>. A sample Callback can be found <a href="http://svn.apache.org/repos/asf/webservices/axis2/trunk/c/samples/mtom_sending_callback/mtom_sending_callback.c">here</a>. Following is what need to be done with data_handler in the case of a callback.<br /> <br /><span style="font-family: monospace;">data_handler = axiom_data_handler_create(env, NULL, content-type);</span><br style="font-family: monospace;" /><span style="font-family: monospace;">axiom_data_handler_set_data_handler_type(data_handler, env, AXIOM_DATA_HANDLER_TYPE_CALLBACK);</span><br style="font-family: monospace;" /><span style="font-family: monospace;">axiom_data_handler_set_user_param(data_handler, env, (void *)user_param);</span><p>user_param +is of any type which the user should know how to handle from the +callback. The path to the implemented callback should be specified in +the axis2.xml as follows.</p><p><span style="font-family: monospace;"><parameter name="MTOMSendingCallback" locked="false">/path/to/the/attachment_sending_callback</parameter></span></p><h4><span style="font-family: monospace;"></span><span style="font-weight: bold;">6.1.2 Receiver side callback</span></h4><p>For +large attachments users can specify them to be cached either to a file +or to a any storage. In order to enable caching user should set either "attachmentDir" or "MTOMCachingCallback<span style="font-family: monospace;"></span>" +parameters in the axis2.xml. If both are set the callback will be used. +If nothing is set attachment will reside in memory. </p><p>Following is an example of specifying the attachmentDir.</p><p style="font-family: monospace;"><parameter name="attachmentDIR" locked="false">/path/to/the/dir/</parameter></p><p>So the attachments will be saved +in the specified directory using the attachment content id as the file +name.</p><p>In the callback case the callback should be implemented using <a href="http://svn.apache.org/repos/asf/webservices/axis2/trunk/c/axiom/include/axiom_mtom_caching_callback.h">axiom_mtom_caching_callback.h</a>. The following paramter will enbale the caching callback.</p><p><span style="font-family: monospace;"><parameter name="MTOMCachingCallback" locked="false">/path/to/the/attachment_caching_callback</parameter></span></p>A sample callback implementation can be found <a href="http://svn.apache.org/repos/asf/webservices/axis2/trunk/c/samples/mtom_caching_callback/mtom_caching_callback.c">here</a>.<p>Axis2/C +allows to set the caching threshold. The default is 1MB. For +example to cache attachments which are greater than 10MB in size user +need to add the following directive in axis2.xml.</p><p> <span style="font-family: monospace;"><parameter name="MTOMBufferSize" locked="false">10</parameter></span></p><p><span style="font-family: monospace;"></span>This will give the control to the users to use the availbale memory even with larger attachments.</p><p>When the attachment is cached the ultimate receiver can always identify it by calling ,</p><p style="font-family: monospace;">if (axiom_data_handler_get_cached(data_handler, env))<br />{<br /> /* logic for attachment handling */<br />}</p> +<p>The logic on how to handle the attachment will depend on the mechanism which is used to cached the attachment.</p><p>Please have a look at the MTOM related samples in the Axis2/C samples directory.</p><br /> + +<p><a name="engaging_module"></a></p> +</div> +<div class="section"><a name="7__Engaging_a_Module"></a> +<h2>7. Engaging a Module</h2> +<p>A module is a set of handlers that helps to extend the message +processing +behavior of the Axis2/C engine. Modules have the concepts of being +Available +and Engaged associated with them. Available means modules are deployed +in the +system but not activated. They will be activated only after being +engaged. +Every module comes with its own module.xml file . This module.xml file +specifies the module specific handlers and the phases into which the +handlers +are to be placed in the handler chain. Some of the module specific +handlers +may be put into system predefined phases. In that case, the module.xml +file +should specify where to put the handlers relative to the others in that +phase. Sometimes a module may define its own phase. In that case, some +of the +module specific handlers may be put into that phase. The handlers added +to +the system predefined phases (global handlers) are invoked for every +message +that comes to or goes out from the system. The handlers in the module +specific phase are invoked only for the messages invoking the +operations that +engage that module. Engaging a module means correctly adding the +handlers of +a particular module to one or more phases. Once the module is engaged, +the +handlers and the operations defined in the module are added to the +entity +that engaged them.</p> +<p>Before engaging a module, the following steps have to be +followed.</p> +<ol> +<li>Write the module.xml file</li> +<li>Package the module libraries and the module.xml into a +folder which has the same name as the module</li> +<li>Deploy the folder in AXIS2C_INSTALL_DIR/modules</li> +<li>Add the module specific phases in the axis2.xml file</li> +</ol> +<p>The following is an example of engaging a sample module called +the logging +module with Axis2/C:</p> +<div class="subsection"><a name="7_1_Writing_the_module_xml_File"></a> +<h3>7.1 Writing the module.xml File</h3> +<p>In the module.xml file, the handlers of the module and the +phases to which +they are to be added have to be specified. Below is the module.xml file +of +the sample logging module.</p> +<div class="source"> +<pre> <module name="logging" class="axis2_mod_log"><br /> <inflow><br /> <handler name="LoggingInHandler" class="axis2_mod_log"><br /> <order phase="PreDispatch"/><br /> </handler><br /> </inflow><br /> <outflow><br /> <handler name="LoggingOutHandler" class="axis2_mod_log"><br /> <order phase="MessageOut"/><br /> </handler><br /> </outflow><br /> <Outfaultflow><br /> <handler name="LoggingOutHandler" class="axis2_mod_log"><br /> <order phase="MessageOut"/><br /> </handler><br /> </Outfaultflow><br /> </module><br /><br /></pre> +</div> +<p>In the above shown module configuration file, the name of the +module is +logging. There are two handlers in this module, the LoggingInHandler +and the +LoggingOutHandler. The LoggingInHandler is placed into the PreDispatch +phase +of the in flow. The LoggingOutHandler is placed into the MessageOut +phase of +both the out flow and the fault out flow.</p> +</div> +<div class="subsection"><a name="7_2_Packaging_and_Deploying_the_Module"></a> +<h3>7.2 Packaging and Deploying the Module</h3> +<p>The above module.xml file should be copied to a folder named +"logging" +(because the module name is "logging") inside the +AXIS2C_INSTALL_DIR/modules +folder. The module libraries containing the handler implementation +should +also be copied to the same folder. According to the module.xml file +shown +above, the name of the shared library file should be +libaxis2_mod_log.so on +Linux and axis2_mod_log.dll on MS Windows.</p> +</div> +<div class="subsection"><a name="7_3_Adding_Module_Specific_Phases_to_the_axis2_xml_File"></a> +<h3>7.3 Adding Module Specific Phases to the axis2.xml File</h3> +<p>Module specific phases have to be added after the system +predefined +phases. The following example shows where to add the module specific +phases. +Look for the <code>phaseOrder</code> elements in the +axis2.xml file. Note the +comment lines:</p> +<div class="source"> +<pre> <!-- User defined phases could be added here --></pre> +</div> +<p>You can add user defined phases after the above comment line +into any of the +flows. The <code>type</code> attribute of the <code>phaseOrder</code> +element +indicates the flow. +</p> +<p>For the logging module example, user defined phases are not +required. All +the module specific handlers are added to system predefined phases as +specified in the module.xml file.</p> +</div> +<div class="subsection"><a name="7_4_Engaging_a_Module_to_a_Services"></a> +<h3>7.4 Engaging a Module to a Services</h3> +<p>The following is an example of engaging the logging module to +the echo +service. This can be done by simply adding <code><module +ref +="logging"/></code> in the services.xml file of the echo +service. This +informs the Axis2/C engine that the module "logging" should be engaged +for +this service. The handlers inside the module will be executed in their +respective phases as described by the module.xml.</p> +<div class="source"> +<pre> <service name="echo"><br /> <module ref ="logging"/><br /> <parameter name="ServiceClass" locked="xsd:false">echo</parameter><br /> <description><br /> This is a testing service, to test if the system is working or not.<br /> </description><br /> <operation name="echoString"><br /> <!--messageReceiver class="axis2_receivers" /--><br /> <parameter name="wsamapping" ><br /> http://ws.apache.org/axis2/c/samples/echoString<br /> </parameter><br /> </operation><br /> </service><br /><br /></pre> +</div> +<p>One important thing to note here is that because the logging +module's +handlers are placed into the global phases, even though the logging +module is +engaged only to the echo service, the module will be engaged globally. +This +is a feature of the Axis2 architecture, not a bug. When invoked, the +handlers +in a module can check whether the module has been engaged to a +particular +service, and act accordingly.</p> +</div> +<div class="subsection"><a name="7_4_1_Engaging_a_Module_Globally"></a> +<h3>7.4.1 Engaging a Module Globally</h3> +<p>If we want to engage a module for every service deployed in +the Axis2/C +system, we can add the <code><module ref +="logging"/></code> entry in +the axis2.xml file. This will inform the Axis2/C engine to invoke the +handlers associated with the module for every message coming in or +going out +for all the services deployed.</p> +</div> +<div class="subsection"><a name="7_5_Engaging_a_Module_on_the_Client_Side"></a> +<h3>7.5 Engaging a Module on the Client Side</h3> +<p>On the client side, if <code><module ref +="logging"/></code> is +added in the axis2.xml, the handlers specific to the logging module +will be +invoked for every request the client sends and every response the +client +receives. If only a particular client wants to engage the module, it +can be +done by engaging the module programmatically. This can be done by +adding the +following line in the client code after setting the options.</p> +<div class="source"> +<pre>axis2_svc_client_engage_module(svc_client, env, "module-name");<br /><br /></pre> +</div> +<p>Remember to replace "module-name" with the name of the module +you want to +engage. For example to engage the logging module you can use:</p> +<div class="source"> +<pre>axis2_svc_client_engage_module(svc_client, env, "logging");<br /><br /></pre> +</div> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="ws_addressing"></a></p> +</div> +</div> +<div class="section"><a name="8__WS-Addressing"></a> +<h2>8. WS-Addressing</h2> +<p><a href="http://www.w3.org/2002/ws/addr/" class="externalLink" title="External Link">WS-Addressing</a> +provides +mechanisms to address Web services and messages. With Axis2/C, you can +use +both WS-Addressing <a href="http://www.w3.org/TR/ws-addr-core/" class="externalLink" title="External Link">version +1.0</a> as well as the <a href="http://www.w3.org/Submission/ws-addressing/" class="externalLink" title="External Link">submission +version</a>.</p> +<p>WS-Addressing is implemented as a module in Axis2/C. Hence as +explained in +the previous section, the addressing module can be engaged both on the +client +side as well as on the server side.</p> +<p>The WS-Addressing module can be globally engaged by adding the +<code><module ref="addressing"/></code> line +to the axis2.xml file.</p> +<p>The WS-Addressing module can also be programmatically engaged +using the +following line of code with the service client API <br /> +</p> +<div class="source"> +<pre>axis2_svc_client_engage_module(svc_client, env, AXIS2_MODULE_ADDRESSING);<br /><br /></pre> +</div> +<p>WS-Addressing related options can be set using the +<code>axis2_options</code> struct instance on the client +side. If the +addressing module is engaged, there are no options to be set on the +server +side. The server will employ WS-Addressing if the incoming requests +have +WS-Addressing headers.</p> +<p>There is a mandatory requirement for using WS-Addressing on +the client +side with Axis2/C. That is to set a WS-Addressing action that +represents the +operation to be invoked. Example:</p> +<div class="source"> +<pre>axis2_options_set_action(options,env,"http://ws.apache.org/axis2/c/samples/echoString")<br /><br /></pre> +</div> +<p>In addition to the action, which is mandatory, there are other +WS-Addressing related headers that can be sent in a message. Axis2/C +supports +to set those headers as options at the client level. The following +functions +are used to set them.</p> +<div class="source"> +<pre>axis2_options_set_reply_to(options, env, reply_to)<br /><br /></pre> +</div> +<p>Sets the <code>wsa:ReplyTo</code> header. The +ReplyTo header contains the +endpoint to send reply messages. The ReplyTo header is required when +the +response comes in a separate channel (when using a dual channel).</p> +<div class="source"> +<pre>axis2_options_set_fault_to(options, env, fault_to)<br /><br /></pre> +</div> +<p>Sets the <code>wsa:FaultTo</code> header. This +contains the endpoint to +direct fault messages.</p> +<div class="source"> +<pre>axis2_options_set_from(options, env, from)<br /><br /></pre> +</div> +<p>Sometimes the receiving endpoint requires to know the original +sender of +the message. The <code>wsa:From</code> header is used in +such cases. The +above function sets the From header.</p> +<div class="source"> +<pre>axis2_options_set_relates_to(options, env, relates_to)<br /><br /></pre> +</div> +<p>Sets the <code>wsa:RelatesTo</code> header. This +header contains a unique +ID which is the message ID of a previously exchanged message. It helps +to +identify a previous message that relates to the current message.</p> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="writing_module"></a></p> +</div> +<div class="section"><a name="9__Writing_a_Module"></a> +<h2>9. Writing a Module</h2> +<p>A module is an extension point in the Axis2/C engine. Modules +are +primarily used to WS-* specifications. In other words, quality of +service +aspects such as security and reliable messaging can be implemented as +modules +and deployed with the Axis2/C engine. <br /> +A SOAP message can contain any number of header blocks. These header +blocks +provide various processing information. In Axis2/C, these various +header +blocks are processed by modules. Some times modules may add header +blocks to +a SOAP message.</p> +<p>Normally a module is a collection of handlers. So writing a +module mainly +consists of writing handlers. There are two interfaces that are +important +when writing a module. They are <code>axis2_module</code> +and +<code>axis2_handler<code>.</code></code></p> +<p>Every module should have three basic functions that are +defined as +function pointer members of the <code>axis2_module_ops</code> +struct. This +struct is defined in the <code>axis2_module.h</code> +header file.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Function Signature</th> +<th>Description</th> +</tr> +<tr class="a"> +<td> +<pre>axis2_status_t (AXIS2_CALL * <br /> init)(axis2_module_t *module, const<br /> axutil_env_t *env, <br /> axis2_conf_ctx_t *conf_ctx, <br /> axis2_module_desc_t *module_desc);</pre> +</td> +<td>This function takes care of the module initialization.</td> +</tr> +<tr class="b"> +<td width="410"> +<pre>axis2_status_t (AXIS2_CALL * <br /> shutdown)(axis2_module_t *module, <br /> const axutil_env_t *env );</pre> +</td> +<td>Shuts down and cleans up the module.</td> +</tr> +<tr class="a"> +<td> +<pre>axis2_status_t (AXIS2_CALL *<br /> fill_handler_create_func_map)(axis2_module_t *module, <br /> const axutil_env_t *env );</pre> +</td> +<td>This function fills the hash map of the handler create +functions for the module.</td> +</tr> +</tbody> +</table> +<p>The module developer has to implement functions with the above +signatures +and assign them to the members of an <code>axis2_module_ops</code> +struct +instance. Then that struct instance has to be assigned to the ops +member of +an <code>axis2_module</code> struct instance.</p> +<p><a href="mod_log/mod_log.c.html">mod_log.c</a> +has the source for the +logging module. Please have a look at the <code>axis2_mod_log_create</code> +function in it to see how an <code>axis2_module</code> +instance is allocated +and how the ops are initialized.</p> +<p>The<code> axis2_mod_log_fill_handler_create_func_map</code> +function adds +the handler create functions to the module's hash map, which stores the +handler create functions. In the <a href="mod_log/mod_log.c.html">mod_log.c</a> +example, the logging module adds +two handlers. The in handler and the out handler that deals with +logging +along with the in-flow and out-flow respectively.</p> +<div class="subsection"><a name="9_1_Writing_Handlers"></a> +<h3>9.1 Writing Handlers</h3> +<p>A handler is the smallest unit of execution in the Axis2/C +engine's +execution flow. The engine can have two flows, the in-flow and the +out-flow. +A flow is a collection of phases, and a phase in turn is a collection +of +handlers. A handler is invoked when the phase within which it lives is +invoked. Axis2/C defines an interface called <code>axis2_handler</code>, +which is to be implemented by all the handlers.</p> +<p><a href="mod_log/log_in_handler.c.html">log_in_handler.c</a> +contains the +source code of the in-handler of the logging module. Please have a look +at +the <code>axutil_log_in_handler_create</code> function to +see how an +<code>axis2_handler</code> instance is created and how the +invoke function +implementation, <code>axis2_log_in_handler_invoke</code> +is assigned to the +<code>axis2_handler</code> invoke function pointer. The +invoke is called to +do the actual work assigned to the handler. The phase that owns the +handler +is responsible for calling the invoke function of the handler.</p> +<p><a href="mod_log/log_out_handler.c.html">log_out_handler.c</a> +contains +the source code of the out handler of the logging module. The +implementation +is similar to the in handler, except that it is placed along the +out-flow +when deployed.</p> +</div> +<div class="subsection"><a name="9_2_Writing_the_module_xml_File"></a> +<h3>9.2 Writing the module.xml File</h3> +<p>After writing the module, the module.xml file should be +written. The +module.xml file contains all the configuration details for a particular +module. Please see the sample <a href="mod_log/module.xml">module.xml</a> +file for the logging module.</p> +<p>Please see the <a href="#engaging_module">Engaging +a Module</a> section +for more details on how to package and deploy the module.</p> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="simple_axis_server"></a></p> +</div> +</div> +<div class="section"><a name="10__Simple_Axis2_HTTP__Server"></a> +<h2>10. Simple Axis2 HTTP Server</h2> +<p>Simple Axis2 HTTP Server is the inbuilt HTTP server of Axis2/C.<br /> +</p> +<div class="subsection"><a name="10_1_Linux_Based_Systems"></a> +<h3>10.1 Linux Based Systems</h3> +<p>Synopsis :</p> +<div class="source"> +<pre> axis2_http_server [-p PORT] [-t TIMEOUT] [-r REPO_PATH] [-l LOG_LEVEL] [-f LOG_FILE] [-s LOG_FILE_SIZE]<br /><br /></pre> +</div> +<p>You can use the following options with simple axis HTTP server.</p> +<div class="source"> +<pre> -p PORT port number to use, default port is 9090<br /> -r REPO_PATH repository path, default is ../<br /> -t TIMEOUT socket read timeout, default is 30 seconds<br /> -l LOG_LEVEL log level, available log levels:<br /> 0 - critical 1 - errors 2 - warnings<br /> 3 - information 4 - debug 5- user 6 - trace<br /> Default log level is 4(debug).<br /> -f LOG_FILE log file, default is $AXIS2C_HOME/logs/axis2.log<br /> or axis2.log in current folder if AXIS2C_HOME not set<br /> -s LOG_FILE_SIZE Maximum log file size in mega bytes, default maximum size is 1MB.<br /> -h display the help screen.<br /><br /></pre> +</div> +<p>Example :</p> +<div class="source"> +<pre> axis2_http_server -l 3 -p 8080 -r $AXIS2C_HOME -f /dev/stderr<br /><br /></pre> +</div> +</div> +<div class="subsection"><a name="10_2_MS_Windows_Based_Systems"></a> +<h3>10.2 MS Windows Based Systems</h3> +<p>Synopsis :</p> +<div class="source"> +<pre> axis2_http_server.exe [-p PORT] [-t TIMEOUT] [-r REPO_PATH] [-l LOG_LEVEL] [-f LOG_FILE] [-s LOG_FILE_SIZE]<br /><br /></pre> +</div> +<p>You can use the following options with simple axis HTTP server.</p> +<div class="source"> +<pre> -p PORT port number to use, default port is 9090<br /> -r REPO_PATH repository path, default is ../<br /> -t TIMEOUT socket read timeout, default is 30 seconds<br /> -l LOG_LEVEL log level, available log levels:<br /> 0 - critical 1 - errors 2 - warnings<br /> 3 - information 4 - debug 5- user 6 - trace<br /> Default log level is 4(debug).<br /> -f LOG_FILE log file, default is %AXIS2C_HOME%\logs\axis2.log<br /> or axis2.log in current folder if AXIS2C_HOME not set<br /> -s LOG_FILE_SIZE Maximum log file size in mega bytes, default maximum size is 1MB.<br /> -h display the help screen.<br /><br /></pre> +</div> +<p>Example :</p> +<div class="source"> +<pre> axis2_http_server.exe -l 3 -p 8080 -r %AXIS2C_HOME% -f C:\logs\error.log<br /><br /></pre> +</div> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="mod_axis2"></a></p> +</div> +</div> +<div class="section"><a name="11__Deploying_with_Apache_HTTP_Server_Version_2_x"></a> +<h2>11. Deploying with Apache HTTP Server Version 2.x</h2> +<div class="subsection"><a name="11_1_Linux_Platform"></a> +<h3>11.1 Linux Platform</h3> +<p>To build Axis2/C with the Apache HTTP server module, also +called +mod_axis2, you need to provide the following configuration options on +the +Linux platform:</p> +<div class="source"> +<pre>./configure --with-apache2=[path to Apache2 include directory] [other configure options]<br /><br /></pre> +</div> +<p><font color="#666666">NOTE: Some Apache2 +distributions, specially +development versions, install APR (Apache Portable Run-time) include +files in +a separate location. In that case, to build mod_axis2, use:</font></p> +<div class="source"> +<pre>./configure --with-apache2=[path to Apache2 include directory] --with-apr=[path to APR include directory]<br /> [other configure options]<br /><br /></pre> +</div> +<p>Then build the source tree as usual using:</p> +<div class="source"> +<pre> make<br /> make install<br /><br /></pre> +</div> +<p>This will install mod_axis2.so into your +AXIS2C_INSTALL_DIR/lib folder.</p> +</div> +<div class="subsection"><a name="11_2_MS_Windows_Platform"></a> +<h3>11.2 MS Windows Platform</h3> +<p>On the MS Windows platform, you have to provide the Apache2 +install +location in the configure.in file with the setting APACHE_BIN_DIR. +Example:</p> +<div class="source"> +<pre>APACHE_BIN_DIR = "C:\Program Files\Apache Software Foundation\Apache2.2"<br /><br /></pre> +</div> +<p>Based on the Apache HTTP server version you are using, you +also need to +set the setting APACHE_VERSION_2_0_X in the configure.in file. If +you are +using Apache 2.2 family, this setting should be set to 0,else set it to +1.</p> +<div class="source"> +<pre>APACHE_VERSION_2_0_X = 0<br /><br /></pre> +</div> +<p>To build the source, you have to run the command</p> +<div class="source"> +<pre>nmake axis2_apache_module</pre> +</div> +<p>This will build mod_axis2.dll and copy it to +AXIS2C_INSTALL_DIR\lib directory. +</p> +</div> +<div class="subsection"><a name="11_3_Deploying_mod_axis2"></a> +<h3>11.3 Deploying mod_axis2</h3> +<p><font color="#666666">NOTE: To execute some of +the commands given below, +you might require super user privileges on your machine. If you are +using the binary release of Axis2/C, please note that it is built with +Apache 2.2.</font></p> +<p>Copy the mod_axis2 shared library <font color="#4169e1">(libmod_axis2.so.0.6.0 +on Linux and mod_axis2.dll on MS +Windows)</font> to the Apache2 modules directory as mod_axis2.so</p> +<p>On Linux</p> +<div class="source"> +<pre> cp $AXIS2C_HOME/lib/libmod_axis2.so.0.6.0 /usr/lib/apache2/modules/mod_axis2.so<br /></pre> +</div> +<p>On MS Windows</p> +<div class="source"> +<pre> copy /Y "%AXIS2C_HOME%\lib\mod_axis2.dll" C:\Apache2\modules\mod_axis2.so<br /><br /></pre> +</div> +<p>Edit the Apache2's configuration file (generally httpd.conf) +and add the +following directives at the end of the file.</p> +<div class="source"> +<pre>LoadModule axis2_module MOD_AXIS2_SO_PATH<br />Axis2RepoPath AXIS2C_INSTALL_DIR<br />Axis2LogFile PATH_TO_LOG_FILE<br />Axis2LogLevel LOG_LEVEL<br />Axis2ServiceURLPrefix PREFIX<br />Axis2MaxLogFileSize SIZE_IN_MB<br /><Location /axis2><br /> SetHandler axis2_module<br /></Location><br /><br /></pre> +</div> +<p>Please note that you have to fine tune the above settings to +mach your +system.<br /> +<br /> +MOD_AXIS2_SO_PATH has to be replaced with the full path to +mod_axis2.so, +for example, <code>/usr/lib/apache2/modules/mod_axis2.so</code> +on Linux, or <code>C:\Apache2\modules\mod_axis2.so</code> +on MS Windows<br /> +<br /> +AXIS2C_INSTALL_DIR has to be replaced with the full path to Axis2/C +repository, for example, <code>/usr/local/axis2</code> on +Linux, or <code>c:\axis2c</code> on MS Windows. Note that +repository path should +have read access to the daemon user account under which the Apache2 +HTTPD +process is run.<br /> +<br /> +PATH_TO_LOG_FILE has to be replaced with the full path to where you +wish to +have the Axis2/C log file, for example, <code>/tmp/axis2.log</code> +on Linux, or <code>C:\Apache2\logs\axis2.log</code> on MS +Windows. Note that the log +file path should have write access to the daemon user account under +which the +Apache2 HTTPD process is run.<br /> +<br /> +LOG_LEVEL has to be replaced with one of the following values: crit, +error, +warn, info, debug, trace. These log levels have the following meanings:</p> +<ul> +<li>crit - log critical errors</li> +<li>error - log errors and above</li> +<li>warn - log warnings and above</li> +<li>info - log information and above</li> +<li>debug - log debug information and above, this is the +default log level used</li> +<li>user - log user level messages and above</li> +<li>trace - log trace messages and above</li> +</ul> +<p>SIZE_IN_MB must be replaced by the size of the particular +resource in MB, rounded to +the nearest whole value.<br /> +<br /> +PREFIX has to be replaced with the prefix to be used with the service +endpoints. This is optional and defaults to "services". +As an example, if you have "web_services" as the prefix, then all the +services hosted would have the endpoint prefix of : <br /> +http://localhost/axis2/web_services <br /> +If you wish, you can also change the location as well by replacing +"/axis2" in <Location /axis2> setting with whatever you +wish. +</p> +<p><font color="#666666">NOTE: If you want to use a +Shared Global Pool with Apache +you have to give another entry called Axis2GlobalPoolSize.You have to +give the +size of the shared global pool in MB.If you doesn't set the value or if +you set a +negative value Apache module doesn't create shared global pool.</font></p> +<div class="source"> +<pre>Axis2GlobalPoolSize SIZE_IN_MB<br /><br /></pre> +</div> +<p>To ensure that everything works fine, start Apache2 (restart +if it is +already running) and test whether the mod_axis2 module is loaded +correctly by +accessing the URL: <a href="http://localhost/axis2/services" class="externalLink" title="External Link">http://localhost/axis2/services</a>.<br /> +</p> +<p>This should show the list of services deployed with Axis2/C. +Then you +should be able to run clients against this endpoint. Example:</p> +<div class="source"> +<pre>echo http://localhost/axis2/services/echo<br /><br /></pre> +</div> +<p>In case things are not working as expected, here are some tips +on how to +troubleshoot:</p> +<ul> +<li>Double check the steps you followed in installing and +configuring mod_axis2. Check if the locations given in httpd.conf are +correct, and also check the folder permissions.</li> +<li>Have a look at the axis2.log file for clues as to what is +going wrong. You can set the log level to debug, user or trace to +gather more information</li> +<li>In case the axis2.log file is not written at all, there is +a good chance that mod_axis2 is crashing. You can have a look at the +error.log file of Apache2 to get an idea on what is going wrong. This +file is usually placed in the APACHE_INSTALL_DIR/logs folder.</li> +</ul> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="IIS"></a></p> +</div> +</div> +<div class="section"><a name="12__Deploying_with_Microsoft_IIS_Server"></a> +<h2>12. Deploying with Microsoft IIS Server</h2> +<p>Use the Axis2/C VC project or makefile to buid the +component. If you are using the makefile to build the source, you have +to run the command</p> +<div class="source"> +<pre>nmake axis2_iis_module</pre> +</div> +<p>In this document I assume that the mod_axis2_IIS.dll +is in the directory <code>c:\axis2c\lib</code> and +AXIS2C_HOME +is <code>c:\axis2c</code></p> +<p>Add the following key to the +registery.</p> +<p><code>HKEY_LOCAL_MACHINE\SOFTWARE\Apache Axis2c\IIS +ISAPI +Redirector</code></p> +<p>Add a string value with the name <code>AXIS2C_HOME</code> +and a +value of <code>c:\axis2c</code></p> +<p>Add a string value with the name <code>log_file</code> +and a value +of <code>c:\axis2c\logs\axis2.log</code></p> +<p>Add a string value with the name <code>log_level</code>. +The value +can be either <code>trace</code>, <code>error</code>, +<code>info</code>, <code>critical</code>, <code>user</code>, +<code>debug</code>, or <code>warning</code>.</p> +<p> +You can add a string value with the name <code>services_url_prefix</code>. This is optional and defaults to "/services". +As an example, if you have "/web_services" as the prefix, then all the +services hosted would have the endpoint prefix of : <br /> +http://localhost/axis2/web_services.<br />Note: don't forget the / at the begining.<br /> +</p> +<p> +If you wish, you can also change the location as well by adding a string value with the name <code>axis2_location</code>. This is also optional and defaults to /axis2. +If you have /myserser as the value you can access your web services with a url like http://localhost/myserver/services. <br />Note: Don't forget the / at the beginning.</p> +<p> + +</p><p>Now you can do all the registry editing using the JScript file +axis2_iis_regedit.js provided with the distribution. When you build +axis2/C with the IIS module the file is copied to the root directory of +the binary distribution. Just double click it and everything will be +set to the defaults. The axis2c_home is taken as the current directory, +so make sure you run the file in the Axis2/C repository location (or +root of the binary distribution). If you want to change the values you +can manually edit the the .js file or give it as command line arguments +to the script when running the script. To run the jscript from the +command line use the command <code>:\cscript axis2_iis_regedit.js optional arguments</code>. We recomend the manual editing as it is the easiest way to specify the values.</p> +<p><b>IIS 5.1 or Below</b></p> +Using the IIS management console, add a new virtual +directory to your IIS/PWS web site. The name of the virtual directory +must be <code>axis2</code>. Its +physical path should be the directory in which you placed +mod_axis2_IIS.dll (in our example it is +c:\axis2c\lib). When creating this new virtual directory, <b>assign +execute access to it</b>. +<p>By using the IIS management console, add +mod_axis2_IIS.dll as a filter in your IIS/PWS web site and restart the +IIS +admin service.</p> +<p><b>IIS 6 & 7</b></p> +Using the IIS management console, add the mod_axis2_IIS.dll as a +Wildcard Script Map. +<ul> +<li>Executable should be the complete path to the +mod_axis2_IIS.dll</li> +<li>You can put any name as the name of the Wildcard Script Map</li> +</ul> +<p>Please don't add the mod_axis2_IIS.dll as a filter to IIS as +in the IIS 5.1 case.</p> +<p>Note: If the Axis2/C failed to load, verify that Axis2/C and +its dependent DLLs are in the System Path (not the user path). </p> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="ssl_client"></a></p> +</div> +<div class="section"><a name="13__Using_SSL_Client"></a> +<h2>13. Using SSL Client</h2> +<div class="subsection"><a name="13_1_Building_and_Configuring_the_Client"></a> +<h3>13.1 Building and Configuring the Client</h3> +<p>In order to allow an Axis2/C client to communicate with an SSL +enabled +server, we need to compile Axis2/C with SSL support enabled.</p> +<p>To build with SSL client support, first of all, make sure you +have +installed <a href="http://www.openssl.org/" class="externalLink" title="External Link">OpenSSL</a> +on your machine. Then +you can start building with SSL client support. This can be achieved on +Linux +by configuring Axis2/C with the <code>--enable-openssl=yes</code> +option.</p> +<p>Example <code><br /> +%./configure --enable-openssl=yes --prefix=${AXIS2C_HOME}/deploy<br /> +%make<br /> +%make install<br /> +</code></p> +<p>On MS Windows, set <code>ENABLE_SSL=1</code> in +the +<code>configure.in</code> file and run the <code>nmake +all</code> command.</p> +<p><a name="client_chain"></a></p> +</div> +<div class="subsection"><a name="13_1_1_Creating_the_Client_Certificate_Chain_File"></a> +<h3>13.1.1 Creating the Client Certificate Chain File</h3> +<p>If you need SSL client authentication, Axis2/C requires you to +provide the +client certificate and the private key file in a single file. Such a +file +which contains both the certificate and relevant private key is called +a +certificate chain file. Creating such a file is very easy. Assume that +the +client certificate is stored in a file named <code>client.crt</code> +and the +private key is stored in a file named <code>client.key</code>. +Then the +certificate chain file can be created by concatenating the certificate +file +and the private key file in that order, in to another file, say +<code>client.pem</code>.</p> +<p>On Linux you can do this as follows: <code>%cat +client.crt client.key > +client.pem</code></p> +<p>On MS Windows, you can do this by copying the contents of +client.crt and +client.key files and saving them in a file named client.pem using +Notepad.</p> +</div> +<div class="subsection"><a name="13_1_2_Configuration"></a> +<h3>13.1.2 Configuration</h3> +<p>Uncomment the following in <code>axis2.xml</code> +to enable https transport receiver and https transport sender. +Axis2/C will then be able to recognize the "https" sheme in a given end +point reference (EPR) and use SSL transport. +</p> +<div class="source"> +<pre><transportReceiver name="https" class="axis2_http_receiver"><br /> <parameter name="port" locked="false">6060</parameter><br /> <parameter name="exposeHeaders" locked="true">false</parameter><br /></transportReceiver><br /></pre> +</div> +<div class="source"> +<pre><transportSender name="https" class="axis2_http_sender"><br /> <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter><br /></transportSender><br /></pre> +</div> +<p>For the SSL client to work, the file containing the CA +certificate should +be given as <code>SERVER_CERT</code> parameter in the +axis2.xml file. If you +need client authentication, you can also set the parameters in the +axis2.xml +file to specify the client certificate, private key, and the passphrase +for +the client private key. Parameter names for these are:</p> +<p><code>KEY_FILE</code> - certificate chain file +containing the client's +certificate and the private key (Please refer to the <a href="#client_chain">creating the client certificate chain +file</a> +section)<br /> +<code>SSL_PASSPHRASE</code> - passphrase used to encrypt +the private key +file.</p> +<p>Example:</p> +<p><code><parameter +name="SERVER_CERT">/path/to/ca/certificate</parameter></code><br /> +<code><parameter +name="KEY_FILE">/path/to/client/certificate/chain/file</parameter></code><br /> +<code><</code><code><code>parameter +name="SSL_</code>PASSPHRASE">passphrase</parameter></code></p> +<p>For testing purposes, you can use the server's certificate +instead of the +CA certificate. You can obtain this by running the command <code>openssl +s_client -connect <servername>:<port></code> +and copying the +portion of the output bounded by and including:</p> +<div class="source"> +<pre>-----BEGIN CERTIFICATE-----<br />-----END CERTIFICATE-----<br /><br /></pre> +</div> +<p>On Linux, if you run the following piece of code, the server +certificate +will be saved to a file <code>cert.pem</code>:</p> +<div class="source"> +<pre>echo |\<br />openssl s_client -connect <servername>:<port> 2>&1 |\<br />sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > cert.pem<br /><br /></pre> +</div> +<p><font color="#666666">NOTE: Instead of setting +these parameters in the <code>axis2.xml</code> +file, you can also set these parameters programmatically in your client +code.</font></p> +</div> +<div class="subsection"><a name="13_2_Configuring_the_Server"></a> +<h3>13.2 Configuring the Server</h3> +<p>Here we will only look at the configuration of the Apache HTTP +Web server. +Refer to the '<a href="#mod_axis2">Deploying with Apache +HTTP Server Version2.x</a>' section for information on deploying +Axis2/C as an Apache +module.</p> +<p>For more detailed information on SSL configuration, please +refer to <a href="http://httpd.apache.org/docs/2.0/ssl/#documentation" class="externalLink" title="External Link">Apache2 +SSL/TLS +documentation</a>.</p> +<p>In the <code>httpd.conf</code> file, add the +following configuration +statements (in addition to other necessary configuration):</p> +<p><code>SSLEngine on<br /> +SSLCertificateFile /path/to/server/certificate/file<br /> +SSLCertificateKeyFile /path/to/private/key/file<br /> +SSLCACertificateFile /path/to/CA/certificate/file<br /> +SSLVerifyClient require<br /> +SSLVerifyDepth 1</code></p> +<p><font color="#666666">NOTE: The last two lines, <code>SSLVerifyClient</code> +and +<code>SSLVerifyDepth</code> are only needed when you need +client +authentication.</font></p> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="proxy"></a></p> +</div> +</div> +<div class="section"><a name="14__Using_Proxy_Support"></a> +<h2>14. Using Proxy Support</h2> +<p>When using a proxy, there are two methods for specifying proxy +settings:</p> +<ol> +<li>Specify proxy settings in axis2.xml</li> +<li>Provide proxy settings using service client API</li> +</ol> +<div class="subsection"><a name="14_1_Specifying_Proxy_Settings_in_axis2_xml"></a> +<h3>14.1 Specifying Proxy Settings in axis2.xml</h3> +<div class="source"> +<pre><transportSender name="http" class="axis2_http_sender"><br /> <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter><br /> <parameter name="PROXY" proxy_host="127.0.0.1" proxy_port="8080" locked="true"/><br /></transportSender><br /><br /></pre> +</div> +</div> +<div class="subsection"><a name="14_2_Providing_Proxy_Settings_Using_Service_Client_API"></a> +<h3>14.2 Providing Proxy Settings Using Service Client API</h3> +<p>You can specify proxy settings using the following function +with the +service client:</p> +<div class="source"> +<pre>axis2_svc_client_set_proxy(axis2_svc_client_t *svc_client,<br /> const axutil_env_t *env,<br /> axis2_char_t *proxy_host,<br /> axis2_char_t *proxy_port);<br /><br /></pre> +</div> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="proxy_auth"></a></p> +</div> +</div> +<div class="section"><a name="15__Using_Proxy_Authentication_Support"></a> +<h2>15. Using Proxy Authentication Support</h2> +<p>When using proxy authentication, there are three methods for +specifying proxy +authentication settings:</p> +<ol> +<li>Specify proxy settings with authentication in axis2.xml</li> +<li>Provide proxy settings with authentication using service +client API</li> +<li>Provide proxy authentication settings using service client +options</li> +</ol> +<div class="subsection"><a name="15_1_Specifying_Proxy_Settings_with_Authentication_in_axis2_xml"></a> +<h3>15.1 Specifying Proxy Settings with Authentication in +axis2.xml</h3> +<div class="source"> +<pre><transportSender name="http" class="axis2_http_sender"><br /> <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter><br /> <parameter name="PROXY" proxy_host="127.0.0.1" proxy_port="8080" proxy_username="" proxy_password="" locked="true"/><br /></transportSender><br /><br /></pre> +</div> +</div> +<div class="subsection"><a name="15_2_Providing_Proxy_Settings_with_Authentication_Using_Service_Client_API"></a> +<h3>15.2 Providing Proxy Settings with Authentication Using +Service Client API</h3> +<p>You can specify proxy authentication settings using the +following function with the +service client:</p> +<div class="source"> +<pre>axis2_svc_client_set_proxy_with_auth(axis2_svc_client_t *svc_client,<br /> const axutil_env_t *env,<br /> axis2_char_t *proxy_host,<br /> axis2_char_t *proxy_port,<br /> axis2_char_t *username,<br /> axis2_char_t *password);<br /><br /></pre> +</div> +</div> +<div class="subsection"><a name="15_3_Providing_Proxy_Authentication_Settings_Using_Service_Client_Options"></a> +<h3>15.3 Providing Proxy Authentication Settings Using Service +Client Options</h3> +<p>You can specify proxy authentication settings using the +following function with the +service client options:</p> +<div class="source"> +<pre>axis2_options_set_proxy_auth_info(<br /> axis2_options_t * options,<br /> const axutil_env_t * env,<br /> const axis2_char_t * username,<br /> const axis2_char_t * password,<br /> const axis2_char_t * auth_type);<br /></pre> +</div> +<p>In <code>auth_type</code>, use <b>Basic</b> +to force Basic Authentication or <b>Digest</b> to force +Digest +Authentication. Leave this field NULL if you are not forcing +authentication.</p> +<div class="subsection"><a name="15_4_Predetermining_Proxy_Authentication_Details"></a> +<h3>15.4 Predetermining Proxy Authentication Details</h3> +<p>You can also predetermine whether proxy authentication is +required. This can be done by calling the function below:</p> +<div class="source"> +<pre>axis2_options_set_test_proxy_auth(<br /> axis2_options_t * options,<br /> const axutil_env_t * env,<br /> const axis2_bool_t test_proxy_auth);<br /></pre> +</div> +<p>Set <code>test_proxy_auth</code> to <b><code>AXIS2_TRUE</code></b> +to enable testing.When testing is enabled, the request will be sent +without without adding authentication information. If it fails, and +requests Authentication Information, the request type of authentication +will be saved. This information can be obtained in the following manner:</p> +<div class="source"> +<pre>axis2_svc_client_get_auth_type(<br /> const axis2_svc_client_t * svc_client,<br /> const axutil_env_t * env);<br /></pre> +</div> +<p> This will return either <b>Basic</b>, <b>Digest</b> +or <b>NULL</b> according to the type of authentiation +requested. In addition to that, after each request made through the +service client, you can check whether authentication was required.</p> +<div class="source"> +<pre>axis2_svc_client_get_proxy_auth_required(<br /> const axis2_svc_client_t * svc_client,<br /> const axutil_env_t * env);<br /></pre> +</div> +<p>Please take a look at the <code>echo_blocking_auth</code> +sample for more information on how to use these methods to identify +proxy Authentication requirements.</p> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="http_auth"></a></p> +</div> +</div> +<div class="section"><a name="16__Using_HTTP_Authentication_Support"></a> +<h2>16. Using HTTP Authentication Support</h2> +<p>When using HTTP authentication, there are two methods for +specifying proxy +authentication settings:</p> +<ol> +<li>Specify HTTP authentication settings in axis2.xml</li> +<li>Provide HTTP authentication settings using service client +options</li> +</ol> +<div class="subsection"><a name="16_1_Specifying_HTTP_Authentication_Settings_in_axis2_xml"></a> +<h3>16.1 Specifying HTTP Authentication Settings in axis2.xml</h3> +<div class="source"> +<pre><transportSender name="http" class="axis2_http_sender"><br /> <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter><br /> <parameter name="HTTP-Authentication" username="your username" password="your password" locked="true"/><br /></transportSender><br /><br /></pre> +</div> +</div> +<div class="subsection"><a name="16_2_Providing_HTTP_Authentication_Settings_Using_Service_Client_Options"></a> +<h3>16.2 Providing HTTP Authentication Settings Using Service +Client Options</h3> +<p>You can specify HTTP authentication settings using the +following function with the +service client options:</p> +<div class="source"> +<pre>axis2_options_set_http_auth_info(<br /> axis2_options_t * options,<br /> const axutil_env_t * env,<br /> const axis2_char_t * username,<br /> const axis2_char_t * password,<br /> const axis2_char_t * auth_type);<br /></pre> +</div> +<p>In <code>auth_type</code>, use <b>Basic</b> +to force HTTP Basic Authentication or <b>Digest</b> to +force HTTP Digest +Authentication. Leave this field NULL if you are not forcing +authentication.</p> +<div class="subsection"><a name="16_3_Predetermining_HTTP_Authentication_Details"></a> +<h3>16.3 Predetermining HTTP Authentication Details</h3> +<p>You can also predetermine whether HTTP authentication is +required. This can be done by calling the function below:</p> +<div class="source"> +<pre>axis2_options_set_test_http_auth(<br /> axis2_options_t * options,<br /> const axutil_env_t * env,<br /> const axis2_bool_t test_http_auth);<br /></pre> +</div> +<p>Set <code>test_http_auth</code> to <b><code>AXIS2_TRUE</code></b> +to enable testing.When testing is enabled, the request will be sent +without without adding authentication information. If it fails, and +requests Authentication Information, the request type of authentication +will be saved. This information can be obtained in the following manner:</p> +<div class="source"> +<pre>axis2_svc_client_get_auth_type(<br /> const axis2_svc_client_t * svc_client,<br /> const axutil_env_t * env);<br /></pre> +</div> +<p> This will return either <b>Basic</b>, <b>Digest</b> +or <b>NULL</b> according to the type of authentiation +requested. In addition to that, after each request made through the +service client, you can check whether authentication was required.</p> +<div class="source"> +<pre>axis2_svc_client_get_http_auth_required(<br /> const axis2_svc_client_t * svc_client,<br /> const axutil_env_t * env);<br /></pre> +</div> +<p>Please take a look at the <code>echo_blocking_auth</code> +sample for more information on how to use these methods to identify +HTTP Authentication requirements.</p> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="wsdl2c"></a></p> +</div> +</div> +<div class="section"><a name="17__WSDL2C_Tool"></a> +<h2>17. WSDL2C Tool</h2> +<p>WSDL2C tool that comes with Axis2/Java supports the generation +of Axis2/C +stubs and skeletons for WSDL files. This is a Java tool that can be +used to +generate C code that works with Axis2/C API. You should use <a href="http://svn.apache.org/viewvc/webservices/axis2/trunk/java" class="externalLink" title="External Link">Axis2/Java +SVN</a> revision 529533 or later revisions. You can download the <a href="http://people.apache.org/dist/axis2/nightly/" class="externalLink" title="External Link">Axis2/Java +nightly +build</a> and use those binaries to generate code. Check out a <a href="http://ws.apache.org/axis2/1_4_1/reference.html#wsdl2java" class="externalLink" title="External Link">basic +guide</a> on the Java tool.</p> +<p>Before you run the tool, make sure that all the .jar library +files that +come with Axis2/Java are added to the CLASSPATH environment variable.</p> +<div class="subsection"><a name="17_1_Generating_Service_Skeletons"></a> +<h3>17.1 Generating Service Skeletons</h3> +<p>The tool can be run with the following parameters and generate +the service +skeleton and other required files with ADB (Axis Data Binding) support.</p> +<div class="source"> +<pre>java org.apache.axis2.wsdl.WSDL2C -uri interoptestdoclitparameters.wsdl -ss -sd -d adb -u <br /><br /></pre> +</div> +<p>To understand the meanings of the options used with the tool, +please have +a look at the <a href="http://ws.apache.org/axis2/1_4_1/reference.html#wsdl2java" class="externalLink" title="External Link"> Java tool +documentation</a>.</p> +<p>If you need an XML in/out programming model, you can just +ignore the data +binding support. To generate code with no data binding support, just +replace +<code>-d adb -u</code>, that was used in a previous +command, with <code>-d +none</code>.</p> +<div class="source"> +<pre>java org.apache.axis2.wsdl.WSDL2C -uri interoptestdoclitparameters.wsdl -ss -sd -d none<br /><br /></pre> +</div> +<p>The WSDL file, <code>interoptestdoclitparameters.wsdl</code>, +used in the +above command examples can be found in +<axis2_src_dir>/test/resources +directory.</p> +<p>Once the code is generated, you have to implement the business +logic for +the service. For this, locate the skeleton source file from the +generated +files. To identify the locations where you can place your business +logic in +line with the operations defined in the WSDL file that you used to +generate +code, look for the comment lines:</p> +<div class="source"> +<pre>/* Todo fill this with the necessary business logic */</pre> +</div> +<p>You can also go through the generated header files and +understand the API in +line with the WSDL file that you used to generate the code. +</p> +</div> +<div class="subsection"><a name="17_2_Generating_Client_Stubs"></a> +<h3>17.2 Generating Client Stubs</h3> +<p>The WSDL2C code generator tool provides support for generating +client +stubs as well. You can generate the required stubs from a given WSDL +with the +other supporting files. Use following parameters to generate the +Axis2/C +client stub code with ADB support.</p> +<div class="source"> +<pre>java WSDL2C -uri interoptestdoclitparameters.wsdl -d adb -u<br /><br /></pre> +</div> +<p>In order to ignore the data binding support and use a raw XML +in/out +model, just use the following parameters.</p> +<div class="source"> +<pre>java WSDL2C -uri interoptestdoclitparameters.wsdl -d none<br /><br /></pre> +</div> +<p>Like in the case of service skeletons, you have to fill in the +business +logic as required in the client stubs as well. To do this, go through +the +header files generated and understand the API in line with the WSDL +file that +you used to generate the code.</p> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="tcptrans"></a></p> +</div> +</div> +<div class="section"><a name="18__TCP_Transport"></a> +<h2>18. TCP Transport</h2> +<div class="subsection"><a name="18_1_Building_AXIS2C_enabling_TCP"></a> +<h3>18.1 Building AXIS2C enabling TCP</h3> +<p>This section will guide you through installing Axis2C with tcp +enabled, and this also includes how to test it by running samples. +Please note that both the Server and the Client must be built with TCP +enabled.</p> +</div> +<div class="subsection"><a name="18_1_1_Linux_Based_Systems"></a> +<h3>18.1.1 Linux Based Systems</h3> +<ol> +<li>When you are installing, you have to use the configure +command with +the option to enable tcp by providing the following argument:</li> +<pre> ./configure --enable-tcp=yes<br /> make<br /> make install</pre> +<li>Then to confirm that you have successfully built the source +with tcp enabled you can check in your $AXIS2C_HOME/lib folder for +following files:</li> +<pre> libaxis2_tcp_sender.so<br /> libaxis2_tcp_reciever.so</pre> +<li>To setup the tcp transport sender, you have to edit the +axis2.xml by uncommenting following entry:</li> +<pre> <transportSender name="tcp" class="axis2_tcp_sender"><br /> <parameter name="PROTOCOL" locked="false">TCP</parameter><br /> </transportSender></pre> +</ol> +</div> +<div class="subsection"><a name="18_1_2_MS_Windows_Based_Systems"></a> +<h3>18.1.2 MS Windows Based Systems</h3> +<ol> +<li>When you are installing, you have to set the configure +option to enable tcp +by specifying in <code>configure.in</code>:</li> +<pre> WITH_TCP = 1</pre> +<li>Then to confirm that you have successfully built the source +with tcp enabled you can check in your %AXIS2C_HOME%\lib folder for +following files:</li> +<pre> axis2_tcp_sender.dll<br /> axis2_tcp_reciever.dll</pre> +<li>To setup the tcp transport sender, you have to edit the +axis2.xml by uncommenting following entry:</li> +<pre> <transportSender name="tcp" class="axis2_tcp_sender"><br /> <parameter name="PROTOCOL" locked="false">TCP</parameter><br /> </transportSender></pre> +</ol> +</div> +<div class="subsection"><a name="18_2_Server_Side"></a> +<h3>18.2 Server Side</h3> +<ul> +<li>To run the tcp server on Linux based systems, you have to +start the tcp +server which runs in 9091 as its default port.</li> +<pre> cd $AXIS2C_HOME/bin/<br /> ./axis2_tcp_server</pre> +<li>To run the tcp server on MS Windows based systems, you have +to start the tcp server as,</li> +<pre> cd %AXIS2C_HOME%\bin<br /> axis2_tcp_server.exe</pre> +</ul> +</div> +<div class="subsection"><a name="18_2_1_Simple_Axis2_TCP_Server"></a> +<h3>18.2.1 Simple Axis2 TCP Server</h3> +<p>Simple Axis2 TCP Server is the inbuilt TCP server of Axis2/C.<br /> +</p> +</div> +<div class="subsection"><a name="18_2_1_1_Linux_Based_Systems"></a> +<h3>18.2.1.1 Linux Based Systems</h3> +<p>Synopsis :</p> +<div class="source"> +<pre> axis2_tcp_server [-p PORT] [-t TIMEOUT] [-r REPO_PATH] [-l LOG_LEVEL] [-f LOG_FILE] [-s LOG_FILE_SIZE]<br /><br /></pre> +</div> +<p>You can use the following options with simple axis TCP server.</p> +<div class="source"> +<pre> -p PORT port number to use, default port is 9091<br /> -r REPO_PATH repository path, default is ../<br /> -t TIMEOUT socket read timeout, default is 30 seconds<br /> -l LOG_LEVEL log level, available log levels:<br /> 0 - critical 1 - errors 2 - warnings<br /> 3 - information 4 - debug 5- user 6 - trace<br /> Default log level is 4(debug).<br /> -f LOG_FILE log file, default is $AXIS2C_HOME/logs/axis2.log<br /> or axis2.log in current folder if AXIS2C_HOME not set<br /> -s LOG_FILE_SIZE Maximum log file size in mega bytes, default maximum size is 1MB.<br /> -h display the help screen.<br /><br /></pre> +</div> +<p>Example :</p> +<div class="source"> +<pre> axis2_tcp_server -l 3 -p 8080 -r $AXIS2C_HOME -f /dev/stderr<br /><br /></pre> +</div> +</div> +<div class="subsection"><a name="18_2_1_2_MS_Windows_Based_Systems"></a> +<h3>18.2.1.2 MS Windows Based Systems</h3> +<p>Synopsis :</p> +<div class="source"> +<pre> axis2_tcp_server.exe [-p PORT] [-t TIMEOUT] [-r REPO_PATH] [-l LOG_LEVEL] [-f LOG_FILE] [-s LOG_FILE_SIZE]<br /><br /></pre> +</div> +<p>You can use the following options with simple axis TCP server.</p> +<div class="source"> +<pre> -p PORT port number to use, default port is 9091<br /> -r REPO_PATH repository path, default is ../<br /> -t TIMEOUT socket read timeout, default is 30 seconds<br /> -l LOG_LEVEL log level, available log levels:<br /> 0 - critical 1 - errors 2 - warnings<br /> 3 - information 4 - debug 5- user 6 - trace<br /> Default log level is 4(debug).<br /> -f LOG_FILE log file, default is %AXIS2C_HOME%\logs\axis2.log<br /> or axis2.log in current folder if AXIS2C_HOME not set<br /> -s LOG_FILE_SIZE Maximum log file size in mega bytes, default maximum size is 1MB.<br /> -h display the help screen.<br /><br /></pre> +</div> +<p>Example :</p> +<div class="source"> +<pre> axis2_tcp_server.exe -l 3 -p 8080 -r %AXIS2C_HOME% -f C:\logs\error.log<br /><br /></pre> +</div> +</div> +<div class="subsection"><a name="18_3_Client_Side"></a> +<h3>18.3 Client Side</h3> +<ul> +<li>In your service client you have to give the end point +address adding tcp as the URI Schema name in the client's code.</li> +<pre>tcp://[service_hostname]:[service_port]/axis2/services/your_service_name</pre> +<li>You can use TCPMon to figure out how the message is +transferred (without having it's http headers) after you've built +Axis2C enabling tcp.</li> +</ul> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="amqptrans"></a></p> +</div> +</div> +<div class="section"> +<h2>19. AMQP Transport</h2> +<div class="subsection"> +<h3>19.1 Building AXIS2C enabling AMQP</h3> +<p>This section will guide you through installing Axis2C with +AMQP +enabled, and this also includes how to test it by running samples. +Please note that both the Server and the Client must be built with AMQP +enabled.</p> +</div> +<div class="subsection"> +<h3>19.1.1 Linux Based Systems</h3> +<ol> +<li>When you are installing, you have to use the configure +command with +the option --with-qpid as follows</li> +<pre> ./configure --with-qpid=path/to/qpid home<br /> make<br /> make install</pre> +<li>Then to confirm that you have successfully built the source +with AMQP enabled you can check in your $AXIS2C_HOME/lib folder for +following files:</li> +<pre> libaxis2_qmqp_sender.so<br /> libaxis2_amqp_reciever.so</pre> +<li>To setup the AMQP transport, you have to edit the +axis2.xml and add the following entries:</li> +<pre> <transportReceiver name="amqp" class="axis2_amqp_receiver"><br /> <parameter name="qpid_broker_ip" locked="false">127.0.0.1</parameter><br /> <parameter name="qpid_broker_port" locked="false">5672</parameter><br /> </transportReceiver><br /><br /> <transportSender name="amqp" class="axis2_amqp_sender"/></pre> +</ol> +</div> +<div class="subsection"> +<h3>19.1.2 MS Windows Based Systems</h3> +Axis2/C does not support AMQP transport on Windows. +<ol> +</ol> +</div> +<div class="subsection"> +<h3>19.2 Server Side<span style="font-family: monospace;"></span></h3> +Start the Qpid broker as follows.<br /> +<br /> +<pre>$ cd ${QPID_HOME}/sbin<br />$ ./qpidd --data-dir ./</pre> +<br /> +Start the axis2_amqp_server as follows.<br /> +<br /> +<pre>$ cd ${AXIS2C_HOME}/bin<br />$ ./axis2_amqp_server<br /> </pre> +You should see the message<br /> + Started +Simple Axis2 AMQP Server...<br /> +<br /> +This will connect to the Qpid broker listening on 127.0.0.1:5672. <br /> +To see the possible command line options run<br /> +<br /> +<pre>$ ./axis2_amqp_server -h<br /></pre> +<br /> +NOTE : You have the flexibility of starting the Qpid broker first and +then axis2_amqp_server or vise versa.<br /> +<div class="subsection"> +<div style="text-align: left;"></div> +<h3>19.2.1 Simple Axis2 AMQP Server</h3> +<p>Simple Axis2 AMQP Server is the inbuilt AMQP server of Axis2/C.<br /> +</p> +</div> +<div class="subsection"> +<h3>19.2.1.1 Linux Based Systems</h3> +<p>Synopsis :</p> +<div class="source"> +<pre> axis2_amqp_server [-i QPID_BROKER_IP] [-p QPID_BROKER_PORT] [-r REPO_PATH] [-l LOG_LEVEL] [-f LOG_FILE] [-s LOG_FILE_SIZE]<br /><br /></pre> +</div> +<p>You can use the following options with simple axis AMQP server.</p> +<div class="source"> +<pre> -i IP where the Qpid broker is running, default IP is 127.0.0.1<br /> -p PORT port number the Qpid broker listens on, default port is 5672<br /> -r REPO_PATH repository path, default is ../<br /> -l LOG_LEVEL log level, available log levels:<br /> 0 - critical <br /> 1 - errors <br /> 2 - warnings<br /> 3 - information <br /> 4 - debug <br /> 5- user <br /> 6 - trace<br /> Default log level is 4(debug).<br /> -f LOG_FILE log file, default is $AXIS2C_HOME/logs/axis2.log or axis2.log in current folder if AXIS2C_HOME not set<br /> -s LOG_FILE_SIZE Maximum log file size in mega bytes, default maximum size is 1MB.<br /> -h display the help screen.<br /><br /></pre> +</div> +<p>Example :</p> +<div class="source"> +<pre> axis2_amqp_server -i 127.0.0.1 -p 5050 -r $AXIS2C_HOME -f /dev/stderr<br /><br /></pre> +</div> +</div> +<div class="subsection"> +<h3>19.3 Client Side</h3> +<ul> +</ul> +<p style="margin-bottom: 0in;"> +When the axis2_amqp_server is up and running, you can run the sample +clients in a new shell as follows.<br /> +<br /> +</p> +<pre>$ cd ${AXIS2C_HOME}/samples/bin/amqp<br /><br />$ ./echo_blocking<br /></pre> +This will invoke the echo service.<br /> +<br /> +To see the possible command line options for sample clients run them +with '-h' option<br /> +<p><a name="archive"></a></p> +</div> +</div> +<div class="section"><a name="19__Archive_Based_Deployment"></a> +<h2>20. Archive Based Deployment</h2> +<p>Axis2/C supports two main deployment models,<br /> +</p> +<ol> +<li>Directory Based Deployment</li> +<li>Archive Based Deployment</li> +</ol> +Our discussion in this section focuses on how to setup and use archive +based deployment in Axis2/C. By default, Axis2/C may be built without +enabling archive based deployment. Therefore, first and foremost you +will have to most probably rebuild from source. +<p>Also, it is requirement that you have zlib. Most Linux systems +do have zlib by default, but would require zlib development packages. +More information can be found <a href="http://www.zlib.net/">here</a>. +For MS Windows systems, you can download it from <a href="http://www.zlatkovic.com/pub/libxml">here</a>.</p> +<p>Next, you will have to build Axis2/C enabling Archive Based +Deployment. On Linux, you need to set the <code>--with-archive=[path_to_zlib_headers]</code></p> +<p>Example: <code><br /> +%./configure --with-archive=/usr/include/ --prefix=${AXIS2C_HOME}/deploy<br /> +%make<br /> +%make install<br /> +</code></p> +<p>On MS Windows, set <code>WITH_ARCHIVE = 1</code> +in the +<code>configure.in</code> file and run the <code>nmake +all</code> command. Please note that you have to specify the +directory where you can find the zlib binary, for a MS Windows system. +This can be done by setting the <code>ZLIB_BIN_DIR</code> +in the +<code>configure.in</code> file.</p> +</div> +<div class="subsection"><a name="19_1_Deploying_Services"></a> +<h3>20.1 Deploying Services</h3> +<p>Once you have successfully completed the installation, you +will have to deploy services as archives in order to make use of this +deployment model. Please note that directory based deployment can +coexist with the archive based deployment model. Therefore, you can +alternatively use either of the two.</p> +<p></p> +<p>You will merely have to add your existing service libraries +and the services.xml file into an archive. For example, in order to +deploy the sample echo service as an archive, you can zip the echo +folder found in the <code>AXIS2C_BIN_DIR/services</code> +directory. You can optionally rename your zip file, to have the <code>.aar</code> +extension.</p> +<p>Please note that all such services deployed as archives should +also be placed inside the <code>AXIS2C_BIN_DIR/services</code> +directory. Now, when ever you start your Simple Axis2 Server, or any +Axis2/C module attached to any other server, your services deployed as +archives, will also get loaded. +</p> +</div> +<div class="subsection"><a name="19_2_Deploying_Modules"></a> +<h3>20.2 Deploying Modules</h3> +<p>Similar to services, you also can deploy modules as archives. +You also can optionally rename your zip files to have the extension, <code>.mar</code> +as in service archives.</p> +<p>Your module archives must be placed in the <code>AXIS2C_BIN_DIR/modules</code> +directory.</p> +</div> +<div class="subsection"><a name="19_3_Known_Issues"></a> +<h3>20.3 Known Issues</h3> +<p>Please note that there are a few known issues when running +archive based deployment, mainly on Linux based systems.<br /> +</p> +<ul> +<li>If you want to run both client and server from same +respository, assign super-user privilideges for your server in order to +prevent un-zipped files getting overwritten, which will in return cause +a segmentation fault on your server. +<p></p> +</li> +<li>Please make sure that the application you choose to create +archives preserves executable rights, and symbolic links of libraries +that are found inside the archive, once unzipped.</li> +</ul> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="tcpmon"></a></p> +</div> +</div> +<div class="section"><a name="20__TCPMon_Tool"></a> +<h2>21. TCPMon Tool</h2> +<p>TCPMon is a TCP Monitor tool provided by Axis2/C for +monitoring payloads exchanged between client and server. If you are +using a source distribution, this may or may not be built for you by +default. Thus, to get started, you may require building it from source.</p> +<p>On Linux</p> +<div class="source"> +<pre> ./configure --prefix=${AXIS2C_HOME} --enable-tests=no<br /> make<br /></pre> +</div> +<p>On MS Windows</p> +<div class="source"> +<pre> nmake tcpmon<br /></pre> +</div> +<p>Please note that in most Linux based installations, this will +most probably be built for you. Once you've done with the building +process, you can find the executable at <code>${AXIS2C_HOME}/bin/tools</code> +on Linux, or at <code>%AXIS2C_HOME%\bin\tools</code> on MS +Windows.</p> +<p>By default, the TCPMon tool will listen on port <b><code>9090</code></b> +and reply to port <b><code>8080</code></b>. +The default target host will be <b><code>localhost</code></b> +and <b><code>tcpmon_traffic.log</code></b> +will be the default log_file. If you want to change any of these +settings run ./<code>tcpmon -h</code> on Linux, or <code>tcpmon.exe +-h</code> on MS Windows for more information.</p> +<p>The TCPMon tool does depend on the Axis2/C Util, Axis2/C AXIOM +and Axis2/C Parser libraries. Thus, if you want to use TCPMon to +monitor payloads in any other message transfer, independant of the +Axis2/C engine, you will have to build those dependant libraries too. +In addition to that, TCPMon does not depend on the Axis2/C Core and +installing the Axis2/C engine is not always a pre-requisite to run +TCPMon. +</p> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="appA"></a></p> +</div> +</div> +<div class="section"><a name="Appendix_A_-_axis2_xml"></a> +<h2>Appendix A - axis2.xml</h2> +<p>The axis2.xml file is the configuration file for Axis2/C. It +has 6 top +level elements. They are <em>parameter, transportReceiver, +transportSender, +module, phaseOrder</em> and <em>messageReceiver</em>. +The following sections +describe these elements, their sub elements, element attributes, +possible +values, and their purpose.</p> +<p><em><strong>axisconfig</strong></em> +is the root element of axis2.xml +file.</p> +<table class="bodyTable"> +<tbody> +<tr class="b"> +<th>Attribute</th> +<th>Possible Values</th> +</tr> +<tr class="a"> +<td>name</td> +<td>Axis2/C</td> +</tr> +</tbody> +</table> +<div class="subsection"><a name="parameter"></a> +<h3>parameter</h3> +<p>In Axis2/C, a parameter is a name value pair. Each and every +top level +parameter available in the axis2.xml (direct sub elements of the root +element) will be stored as parameters as <code>axis2_conf</code>. +Therefore, +the top level parameters set in the configuration file can be accessed +via +the <code>axis2_conf</code> instance in the running system.</p> +<p>Sub elements :- none</p> +<p>Attributes :- name, locked</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Attribute</th> +<th>Description</th> +</tr> +<tr class="a"> +<td>name</td> +<td>Name of the parameter. The table below shows possible +values of the name attribute and their description. +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Value</th> +<th>Description</th> +<th>Possible Text of Parameter Element</th> +</tr> +<tr class="a"> +<td>enableMTOM</td> +<td>Enable MTOM support when sending binary +attachments</td> +<td>true or false</td> +</tr> +<tr class="b"> +<td>enableREST</td> +<td>Enable REST support</td> +<td>true or false</td> +</tr> +</tbody> +</table> +</td> +</tr> +<tr class="a"> +<td>locked</td> +<td>Indicates whether the parameter can be changed from the +code. Following are the possible values for the locked attribute. +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Value</th> +<th>Description</th> +</tr> +<tr class="a"> +<td>true</td> +<td>The parameter cannot be changed from the code</td> +</tr> +<tr class="b"> +<td>false</td> +<td>The parameter can be changed from the code.</td> +</tr> +</tbody> +</table> +</td> +</tr> +</tbody> +</table> +</div> +<div class="subsection"><a name="transportReceiver"></a> +<h3>transportReceiver</h3> +<p>This element specifies the transport receiver details in an +IN-OUT message +exchange scenario. The users can change the transport receiver port as +they +wish.</p> +<p>Attributes :- name, class</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Attribute</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="b"> +<td>name</td> +<td>Specifies which transport protocol is used</td> +<td>http (when using HTTP)</td> +</tr> +<tr class="a"> +<td>class</td> +<td>Specifies the shared library which implements the +transport interface</td> +<td>Name of the shared library. +<p>Example:- On Linux if the value is given as <em>foo</em> +then shared library is libfoo.so.</p> +<p>On MS Windows, <em>foo.dll</em>.</p> +</td> +</tr> +</tbody> +</table> +<p></p> +<p>Sub elements :- can have zero or more parameter elements.</p> +<p><br /> +The following table shows possible parameter values.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Attribute</th> +<th>Description</th> +</tr> +<tr class="a"> +<td>name</td> +<td>Name of the parameter. +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Value</th> +<th>Description</th> +<th>Possible Text of Parameter Element</th> +</tr> +<tr class="a"> +<td>port</td> +<td>Transport listener port</td> +<td>Integer specifying the port number</td> +</tr> +<tr class="a"> +<td>exposeHeaders</td> +<td>Whether Transport Headers are exposed to a Service</td> +<td>true/false</td> +</tr> +</tbody> +</table> +</td> +</tr> +<tr class="b"> +<td>locked</td> +<td>whether the parameter can be changed from the code +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Value</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>true</td> +<td>Parameter cannot be changed from the code</td> +</tr> +<tr class="a"> +<td>false</td> +<td>The parameter can be changed from the code.</td> +</tr> +</tbody> +</table> +</td> +</tr> +</tbody> +</table> +<p></p> +<p></p> +</div> +<div class="subsection"><a name="transportSender"></a> +<h3>transportSender</h3> +<p>This element specifies the transport senders used to send +messages.</p> +<p>Attributes :- name, class</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Attribute</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="a"> +<td>name</td> +<td>Specifies which transport protocol is used when sending +messages</td> +<td>http(when using http)</td> +</tr> +<tr class="b"> +<td>class</td> +<td>Specifies the shared library which implements the +transport interface</td> +<td> +<p>Name of the shared library.</p> +<p>Example:- On Linux if the value is given as <em>foo</em> +then the shared library is libfoo.so.</p> +<p>On MS Windows, <em>foo.dll</em>.</p> +</td> +</tr> +</tbody> +</table> +<p></p> +<p>Sub elements : can have zero or more parameter elements.</p> +<p><br /> +The following table shows possible parameter values.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Attribute</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>name</td> +<td>The name of the parameter. +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Value</th> +<th>Description</th> +<th>Possible text of parameter element</th> +</tr> +<tr class="b"> +<td>PROTOCOL</td> +<td>Transport protocol used</td> +<td>Protocol version. Example:- HTTP /1.1, HTTP/1.0</td> +</tr> +</tbody> +</table> +</td> +</tr> +<tr class="a"> +<td>locked</td> +<td>Indicates whether the parameter can be changed from the +code. +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Value</th> +<th>Description</th> +</tr> +<tr class="a"> +<td>true</td> +<td>The parameter cannot be changed from the code</td> +</tr> +<tr class="b"> +<td>false</td> +<td>The parameter can be changed from the code.</td> +</tr> +</tbody> +</table> +</td> +</tr> +</tbody> +</table> +<p></p> +</div> +<div class="subsection"><a name="module"></a> +<h3>module</h3> +<p>This element is optional. It is used when a particular module +needs to be +engaged globally for every service deployed with Axis2/C.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Attributes</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="b"> +<td>ref</td> +<td>The name of the module which is to be engaged globally.</td> +<td>Name of the module. +<p>Example : addressing</p> +</td> +</tr> +</tbody> +</table> +<p></p> +</div> +<div class="subsection"><a name="phaseOrder"></a> +<h3>phaseOrder</h3> +<p>The order of phases in a particular execution chain has to be +configured +using phaseOrder element.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Attribute</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="b"> +<td>type</td> +<td>The flow to which the phase belongs</td> +<td>inflow +<p>outflow</p> +<p>INfaultflow</p> +<p>Outfaultflow</p> +</td> +</tr> +</tbody> +</table> +<p>A flow is a collection of handlers which is invoked for a +particular +message. The types of flows are described below.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Flow</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>inflow</td> +<td>Collection of handlers invoked for a message coming in +to the system.</td> +</tr> +<tr class="a"> +<td>outflow</td> +<td>Collection of handlers invoked for a message going out +of the system.</td> +</tr> +<tr class="b"> +<td>INfaultflow</td> +<td>Collection of handlers invoked for an incoming fault +message.</td> +</tr> +<tr class="a"> +<td>Outfaultflow</td> +<td>Collection of handlers invoked for an outgoing fault +message.</td> +</tr> +</tbody> +</table> +<p>Sub elements : <em>phase</em>: represents the +available phases in the +execution chain</p> +<p>The system predefined phases cannot be changed.</p> +<p>The system predefined phases are,</p> +<ul> +<li>Transport</li> +<li>PreDispatch</li> +<li>Dispatch</li> +<li>PostDispatch</li> +<li>MessageOut</li> +</ul> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Attribute</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="a"> +<td>name</td> +<td>Specifies the name of the phase</td> +<td>Transport, Dispatch, PreDispatch, PostDispatch, +MessageOut +<p>User defined phases (can have a user defined name)</p> +</td> +</tr> +</tbody> +</table> +<p>Sub elements of phase element: <em>handler</em></p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Attribute</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="a"> +<td>name</td> +<td>Specifies the handler name. Phase may contain zero or +more handlers.</td> +<td>Based on the handler name. +<p>Example: AddressingbasedDispatcher, +RequestURIbaseddispatcher</p> +</td> +</tr> +<tr class="b"> +<td>class</td> +<td>Specifies the shared library which implements the +handler</td> +<td> +<p>Name of the shared library.</p> +<p>Example: On Linux, if the value is given as <em>foo,</em> +then the shared library is libfoo.so.</p> +<p>On MS Windows, <em>foo.dll</em>.</p> +</td> +</tr> +</tbody> +</table> +</div> +<div class="subsection"><a name="messageReceiver"></a> +<h3>messageReceiver</h3> +<p></p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Attribute</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="b"> +<td>mep</td> +<td>Message Exchange Pattern</td> +<td>IN-OUT, IN-ONLY</td> +</tr> +<tr class="a"> +<td>class</td> +<td>Specify the shared library which implements the +transport interface. +<p>If not specified, the Axis2/C default message receiver +is used.</p> +</td> +<td>Name of the shared library. +<p>Example: On Linux, if the value is given as <em>foo,</em> +then the shared library is libfoo.so.</p> +<p>On MS Windows, <em>foo.dll</em>.</p> +</td> +</tr> +</tbody> +</table> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="appB"></a></p> +</div> +</div> +<div class="section"><a name="Appendix_B_-_services_xml"></a> +<h2>Appendix B - services.xml</h2> +<p>Configuration of a service is specified using a services.xml. +Each service +or service archive file needs to have a services.xml in order to be a +valid +service. The following sections describe the elements of the +services.xml +file.</p> +<p>If services.xml describes a single service, the root element +is +<em>service</em>. If it is describing a service group, then +the root element +is <em>serviceGroup</em>. The<em> service</em> +element will be a child +element of serviceGroup if there are multiple services specified in +services.xml.</p> +<div class="subsection"> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Attributes</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="a"> +<td>name</td> +<td>Name of the service or service group.</td> +<td>Depends on the service or the service group.<br /> +Examples: echo, sg_math</td> +</tr> +</tbody> +</table> +<p></p> +</div> +<div class="subsection"> +<p>This is optional. This element can be used to describe the +service in a +human readable format.</p> +<p></p> +</div> +<div class="subsection"> +<p>This is optional. Can be used to engage modules at service +level.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Attributes</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="a"> +<td>ref</td> +<td>Name of the module which is to be engaged for the +service</td> +<td>Name of the module which is to be engaged at service +level.</td> +</tr> +</tbody> +</table> +<p></p> +<p></p> +</div> +<div class="subsection"> +<p>The service element can have any number of parameters as sub +elements.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Attribute</th> +<th>Detail</th> +</tr> +<tr class="b"> +<td>name</td> +<td> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Description</th> +<th>Possible Value</th> +<th>Parameter Value</th> +</tr> +<tr class="a"> +<td>Specifies the name of the shared library that +holds the service implementation</td> +<td>serviceClass</td> +<td>the service name. Example: echo</td> +</tr> +<tr class="a"> +<td>Path of static WSDL to be attached with service</td> +<td>wsdl_path</td> +<td>Absolute path or path relative to AXIS2C_HOME/bin</td> +</tr> +<tr class="a"> +<td>Default HTTP Method used in a REST invocation</td> +<td>defaultRESTMethod</td> +<td>One of GET, POST, HEAD, PUT or DELETE</td> +</tr> +</tbody> +</table> +</td> +</tr> +<tr class="b"> +<td>locked</td> +<td> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Description</th> +<th>Possible Value</th> +</tr> +<tr class="a"> +<td>Indicates whether the parameter can be changed +from the code</td> +<td>true/false</td> +</tr> +</tbody> +</table> +</td> +</tr> +</tbody> +</table> +<p></p> +</div> +<div class="subsection"> +<p>The operations of the service are specified using operation +elements.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Attributes</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="b"> +<td>name</td> +<td>name of the operation</td> +<td>Example: echoString</td> +</tr> +<tr class="b"> +<td>mep</td> +<td>message exchange pattern uri. <p>This is defaulted to in-out MEP. For other MEPs, You need to specify the MEP.</p></td> +<td>Example: "http://www.w3.org/2004/08/wsdl/in-only"</td> + +</tr> +</tbody> +</table> +<p>Sub elements of <em>operation</em>: <em>parameter</em> +elements can be +present as sub elements. Zero or more parameters may be present.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Attribute</th> +<th>Detail</th> +</tr> +<tr class="b"> +<td>name</td> +<td> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Description</th> +<th>Possible Value</th> +<th>Parameter Value</th> +</tr> +<tr class="a"> +<td>WS-Addressing action mapping to the operation</td> +<td>wsamapping</td> +<td>A URL representing the WS-Addressing action +corresponding to the operation</td> +</tr> +<tr class="a"> +<td>REST template mapping to the operation</td> +<td>RESTLocation</td> +<td>A template of the expected URL for the operation, +with compulsary parts and optional parts, well defined</td> +</tr> +<tr class="a"> +<td>HTTP Method used in a REST invocation</td> +<td>RESTMethod</td> +<td>One of GET, POST, HEAD, PUT or DELETE</td> +</tr> +</tbody> +</table> +</td> +</tr> +</tbody> +</table> +<p>Also, an <em>operation</em> element can have one +or more <em>actionMapping</em> element as sub elements.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="b"> +<td>Action mapping or an alias to an operation</td> +<td>Example: echoString</td> +</tr> +</tbody> +</table> +<p></p> +</div> +<div class="subsection"> +<p>An operation specific message receiver is specified from this. +This is +optional.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Attributes</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="b"> +<td>class</td> +<td>Shared library with the message receiver implementation</td> +<td>Name of the shared library. +<p>Example: On Linux, if the value is given as <em>foo</em>, +then the shared library is libfoo.so.</p> +<p>On MS Windows, <em>foo.dll</em>.</p> +</td> +</tr> +</tbody> +</table> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="appC"></a></p> +</div> +</div> +<div class="section"><a name="Appendix_C_-_module_xml"></a> +<h2>Appendix C - module.xml</h2> +<p>The module.xml file provides the configuration details for a +particular +module in Axis2/C. The top level element is <em>module</em>.</p> +<div class="subsection"><a name="module"></a> +<h3>module</h3> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Attributes</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="b"> +<td>name</td> +<td>Name of the module</td> +<td>Example- addressing</td> +</tr> +<tr class="a"> +<td>class</td> +<td>Specifies the shared library which implements the +module.</td> +<td>Name of the shared library. +<p>Example- On Linux, if the value is given as <em>foo</em>, +then the shared library is libfoo.so.</p> +<p>On MS Windows, <em>foo.dll</em>.</p> +</td> +</tr> +</tbody> +</table> +<p></p> +<p>Other elements are child elements of <em>module</em>.</p> +<p></p> +</div> +<div class="subsection"><a name="parameter"></a> +<h3>parameter</h3> +<p>Any number of parameters can be present, depending on the +module.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Attributes</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="a"> +<td>name</td> +<td>Name of the parameter</td> +<td>Depends on the module</td> +</tr> +<tr class="b"> +<td>locked</td> +<td>Indicates whether the parameter can be changed from the +code</td> +<td>true - cannot be changed +<p>false - can be changed</p> +</td> +</tr> +</tbody> +</table> +<p></p> +</div> +<div class="subsection"><a name="Description"></a> +<h3>Description</h3> +<p>Describes the behavior of the module. This element is optional +and has no +attributes or sub elements.</p> +</div> +<div class="subsection"><a name="inflow"></a> +<h3>inflow</h3> +<p>Encapsulates details added to the in-flow by the module. Zero +or one +element is possible and does not have any attributes.</p> +<p>Sub elements of <em>inflow</em> : <em>handler</em>, +contains details about +the module specific handlers added to a particular flow. Zero or more +handlers can be added.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Attributes</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="b"> +<td>name</td> +<td>Name of the handler</td> +<td>Depends on the handlers in the module.</td> +</tr> +<tr class="a"> +<td>class</td> +<td>Specifies the shared library which implements the +handler</td> +<td> +<p>Name of the shared library.</p> +<p>Example: On Linux, if the value is given as <em>foo,</em> +then the shared library is libfoo.so.</p> +<p>On MS Windows, <em>foo.dll</em>.</p> +</td> +</tr> +</tbody> +</table> +<p></p> +<p>sub elements of <em>handler</em> : <em>order</em>, +specifies where to put +a handler in a particular phase.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Attribute</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="a"> +<td>phase</td> +<td>The name of the phase the handler belongs to</td> +<td>depends on the handler</td> +</tr> +<tr class="b"> +<td>phaseLast</td> +<td>Indicates that the handler is the last handler of the +phase</td> +<td>true</td> +</tr> +<tr class="a"> +<td>phaseFirst</td> +<td>Indicates that the handler is the first handler of the +phase.</td> +<td>true</td> +</tr> +<tr class="b"> +<td>before</td> +<td>Handler should be invoked before the handler, which is +specified by the before handler</td> +<td>handler name</td> +</tr> +<tr class="a"> +<td>after</td> +<td>Handler should be invoked after the handler, which is +specified by the after handler</td> +<td>handler name</td> +</tr> +</tbody> +</table> +<p>From the above attributes, phase is compulsory. Given below +are +combinations possible from the other four attributes.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Combination</th> +<th>Description</th> +</tr> +<tr class="a"> +<td>phaseLast</td> +<td>Indicates that the handler is the last handler of the +phase</td> +</tr> +<tr class="b"> +<td>phasefirst</td> +<td>Indicates that the handler is the first handler of the +phase.</td> +</tr> +<tr class="a"> +<td>before</td> +<td>Handler should be invoked before the handler, which is +specified by the before handler</td> +</tr> +<tr class="b"> +<td>after</td> +<td>Handler should be invoked after the handler, which is +specified by the after handler</td> +</tr> +<tr class="a"> +<td>before & after</td> +<td>Handler should be invoked before the handler specified +by the before handler, and +<p>after the handler specified by the after handler.</p> +</td> +</tr> +</tbody> +</table> +<p><em>outflow</em>, <em>INfaultflow</em>, +<em>OUTfaultflow</em> elements +have the same syntax as that of <em>inflow</em>.</p> +</div> +<div class="subsection"><a name="operation"></a> +<h3>operation</h3> +<p>This is used when a module wants to add operations to a +service that +engages the module.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Attributes</th> +<th>Description</th> +<th>Possible Values</th> +</tr> +<tr class="a"> +<td>name</td> +<td>Name of the operation (compulsory)</td> +<td>Depends on the module</td> +</tr> +<tr class="b"> +<td>mep</td> +<td>Message Exchange Pattern</td> +<td>IN-OUT, IN-ONLY</td> +</tr> +</tbody> +</table> +<p>Sub elements of <em>operation</em> : Any number +of parameters can be +included as sub elements in the operation element.</p> +<p>The <em>messageReceiver</em> parameter specifies +the message receiver the +message is intended for. If it is not set, the default message receiver +is +used.</p> +<p style="margin-bottom: 0in;"><br /> +</p> +<p><a name="appD"></a></p> +</div> +</div> +<div class="section"><a name="Appendix_D_-_axis2_options"></a> +<h2>Appendix D - axis2_options</h2> +<p>This section describes various types of options that can be +set with +<code>axis2_options</code>. These options are used by the +service client +before sending messages.</p> +<p><strong>axis2_options_set_action(options, env, action)</strong></p> +<p>Sets the WS-Addressing action that is to be set in the +addressing SOAP +headers.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct</td> +</tr> +<tr class="b"> +<td>const axis2_char_t *action</td> +<td>Pointer to the action string</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_fault_to(options, env, +fault_to)</strong></p> +<p>Sets the end point reference which may receive the message in +a case of a +SOAP fault.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>axis2_endpoint_ref_t *fault_to</td> +<td>Pointer to the endpoint reference struct representing +the fault to address.</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_from(options, env, from)</strong></p> +<p>Some services need to know the source from which the message +comes. This +option sets the from endpoint</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>axis2_endpoint_ref_t *from</td> +<td>Pointer to the endpoint reference struct representing +the from address.</td> +</tr> +</tbody> +</table> +<p><strong>axis2_options_set_to(options, env, to)</strong></p> +<p>Sets the endpoint reference the message is destined to.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>axis2_endpoint_ref_t *to</td> +<td>Pointer to the endpoint reference struct representing +the to address.</td> +</tr> +</tbody> +</table> +<p><strong>axis2_options_set_transport_receiver(options, +env, +receiver)</strong></p> +<p>Sets the transport receiver in an OUT-IN message exchange +scenario.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>axis2_transport_receiver_t *receiver</td> +<td>Pointer to the transport receiver struct.</td> +</tr> +</tbody> +</table> +<p><strong>axis2_options_set_transport_in(options, env, +transport_in)</strong></p> +<p>Sets the transport-in description.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>axis2_transport_in_desc_t *transport_in</td> +<td>Pointer to the transport_in struct.</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_transport_in_protocol(options, +env, +transport_in_protocol)</strong></p> +<p>Sets the transport-in protocol.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>const AXIS2_TRANSPORT_ENUMS transport_in_protocol</td> +<td>The value indicating the transport protocol.</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_message_id(options, env, +message_id)</strong></p> +<p>Sets the message ID.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>The pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>The pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>const axis2_char_t *message_id</td> +<td>The message ID string.</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_properties(options, env, +properties)</strong></p> +<p>Sets the properties hash map.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>axis2_hash_t *properties</td> +<td>Pointer to the properties hash map.</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_property(options, env, key, +property)</strong></p> +<p>Sets a property with a given key value.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>const axis2_char_t *property_key</td> +<td>The property key string.</td> +</tr> +<tr class="a"> +<td>const void *property</td> +<td>Pointer to the property to be set.</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_relates_to(options, env, +relates_to)</strong></p> +<p>Sets the relates-to message information.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="a"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="b"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="a"> +<td>axis2_relates_to_t *relates_to</td> +<td>Pointer to the relates_to struct.</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_reply_to(options, env, +reply_to)</strong></p> +<p>Sets the reply-to address, when the client wants a reply to be +sent to a +different end point.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="a"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="b"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="a"> +<td>axis2_endpoint_ref_t *reply_to</td> +<td>Pointer to the endpoint reference struct representing +the reply-to address.</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_transport_out(options, env, +transport_out)</strong></p> +<p>Sets the transport-out description.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="a"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="b"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="a"> +<td>axis2_transport_out_desc_t *transport_out</td> +<td>Pointer to the transport-out description struct.</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_sender_transport(options, env, +sender_transport, +conf)</strong></p> +<p>Sets the sender transport.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="b"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="a"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="b"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="a"> +<td>const AXIS2_TRANSPORT_ENUMS sender_transport</td> +<td>The name of the sender transport to be set.</td> +</tr> +<tr class="b"> +<td>axis2_conf_t *conf</td> +<td>Pointer to the conf struct. It is from the conf that +the transport is picked with the given name.</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_soap_version_uri(options, env, +soap_version_uri)</strong></p> +<p>Sets the SOAP version URI.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>const axis2_char_t *soap_version_uri</td> +<td>URI of the SOAP version to be set.</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_timeout_in_milli_seconds(options, +env, +timeout_in_milli_seconds)</strong></p> +<p>Sets the time out in milli seconds. This is used in +asynchronous message +exchange scenarios to specify how long the call back object is to wait +for +the response.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>const long timeout_in_milli_seconds</td> +<td>Timeout in milli seconds.</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_transport_info(options, env, +sender_transport, +receiver_transport, user_separate_listener)</strong></p> +<p>Sets the transport information. Transport information includes +the name of +the sender transport, name of the receiver transport, and whether a +separate +listener is to be used to receive a response.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>const AXIS2_TRANSPORT_ENUMS sender_transport</td> +<td>Name of the sender transport to be used.</td> +</tr> +<tr class="a"> +<td>const AXIS2_TRANSPORT_ENUMS receiver_transport</td> +<td>Name of the receiver transport to be used.</td> +</tr> +<tr class="b"> +<td>const axis2_bool_t use_separate_listener</td> +<td>bool value indicating whether to use a separate +listener or not.</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_use_separate_listener(options, +env, +use_separate_listener)</strong></p> +<p>Sets the bool value indicating whether to use a separate +listener or not. +A separate listener is used when the transport is a one-way transport +and the +message exchange pattern is two way.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>const axis2_bool_t use_separate_listener</td> +<td>bool value indicating whether to use a separate +listener or not</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_soap_version(options, env, +soap_version)</strong></p> +<p>Sets the SOAP version.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>const int soap_version</td> +<td>SOAP version, either AXIOM_SOAP11 or AXIOM_SOAP12.</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_enable_mtom(options, env, +enable_mtom)</strong></p> +<p>Enable or disable MTOM handling when sending binary +attachments.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>axis2_bool_t enable_mtom</td> +<td>AXIS2_TRUE if MTOM is to be enabled, else AXIS2_FALSE</td> +</tr> +</tbody> +</table> +<p></p> +<p><strong>axis2_options_set_enable_rest(options, env, +enable_rest)</strong></p> +<p>Enable or disable REST support.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>axis2_bool_t enable_rest</td> +<td>AXIS2_TRUE if REST is to be enabled, else AXIS2_FALSE</td> +</tr> +</tbody> +</table> +<p><strong>axis2_options_set_http_auth_info(options, env, +username, password, auth_type)</strong></p> +<p>Sets HTTP Authentication information.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>const axis2_char_t *username</td> +<td>String representing username</td> +</tr> +<tr class="a"> +<td>const axis2_char_t *password</td> +<td>String representing password.</td> +</tr> +<tr class="b"> +<td>const axis2_char_t *auth_type</td> +<td>use "Basic" to force basic authentication and "Digest" +to force digest authentication or NULL for not forcing authentication</td> +</tr> +</tbody> +</table> +<p><strong>axis2_options_set_proxy_auth_info(options, env, +username, password, auth_type)</strong></p> +<p>Sets Proxy Authentication information.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>const axis2_char_t *username</td> +<td>String representing username</td> +</tr> +<tr class="a"> +<td>const axis2_char_t *password</td> +<td>String representing password.</td> +</tr> +<tr class="b"> +<td>const axis2_char_t *auth_type</td> +<td>use "Basic" to force basic authentication and "Digest" +to force digest authentication or NULL for not forcing authentication</td> +</tr> +</tbody> +</table> +<p><strong>axis2_options_set_test_http_auth(options, env, +test_http_auth)</strong></p> +<p>Enables testing of HTTP Authentication information.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>const axis2_bool_t test_http_auth</td> +<td>bool value indicating whether to test or not, +AXIS2_TRUE to enable, AXIS2_FALSE to disable</td> +</tr> +</tbody> +</table> +<p><strong>axis2_options_set_test_proxy_auth(options, env, +test_proxy_auth)</strong></p> +<p>Enables testing of proxy Authentication information.</p> +<table class="bodyTable"> +<caption></caption><tbody> +<tr class="a"> +<th>Parameter</th> +<th>Description</th> +</tr> +<tr class="b"> +<td>axis2_options_t *options</td> +<td>Pointer to the options struct.</td> +</tr> +<tr class="a"> +<td>const axutil_env_t *env</td> +<td>Pointer to the environment struct.</td> +</tr> +<tr class="b"> +<td>const axis2_bool_t test_proxy_auth</td> +<td>bool value indicating whether to test or not, +AXIS2_TRUE to enable, AXIS2_FALSE to disable</td> +</tr> +</tbody> +</table> +</div> +<div class="clear"> +<hr /></div> +</div> + +</body></html> diff --git a/xdocs/docs/faq.html b/xdocs/docs/faq.html new file mode 100644 index 0000000..7336a7a --- /dev/null +++ b/xdocs/docs/faq.html @@ -0,0 +1,200 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html><head><title>Apache Axis2/C - FAQ</title> + +</head> + +<body> +<h1>Apache Axis2/C Frequently Asked Questions</h1> +<p>Mentioned below are a list of Frequently Asked Questions +appearing on Axis2/C <a href="http://ws.apache.org/axis2/c/mail-lists.html">mailing +lists</a>, and Forums.</p> +<p>For questions not appearing below, or for any further +clarifications please do not hesitate to contact the Apache Axis2/C +user mailing list: <a href="mailto:axis-c-user@ws.apache.org">axis-c-user@ws.apache.org</a> +(Subscription details are available on the <a href="http://ws.apache.org/axis2/c/mail-lists.html">Axis2 +site</a>.) Please +remember to prefix the subject with [Axis2].</p> +<p style="margin-bottom: 0in;"><br /> +</p> +<a name="0_contents"></a> +<h2>Contents</h2> +<ol> +<li><a href="#1_introduction">Introduction</a> +<ol> +<li><a href="#faq_1_1">What is Axis2/C?</a></li> +<li><a href="#faq_1_2">Licensing</a></li> +<li><a href="#faq_1_3">How can I obtain +Axis2/C?</a></li> +<li><a href="#faq_1_4">How can I get involved?</a></li> +</ol> +</li> +<li><a href="#2_support">Support</a> +<ol> +<li><a href="#faq_2_1">Does Axis2/C support +code generation?</a></li> +<li><a href="#faq_2_2">Does Axis2/C support +SSL?</a></li> +<li><a href="#faq_2_3">Does Axis2/C support +compression?</a></li> +<li><a href="#faq_2_4">Does Axis2/C support +SOAP Session management?</a></li> +<li><a href="#faq_2_5">Can I use Axis2/C with +a proxy?</a></li> +<li><a href="#faq_2_6">Does Axis2/C work on my platform?</a></li> +</ol> +</li> +<li><a href="#3_how_to">How to?</a> +<ol> +<li><a href="#faq_3_1">How can I enable the +Guththila parser?</a></li> +<li><a href="#faq_3_2">How do I turn off MTOM +globally?</a></li> +<li><a href="#faq_3_3">How can I use Axis2/C +with C++?</a></li> +<li><a href="#faq_3_4">How could I secure SOAP +messages?</a></li> +</ol> +</li> +<li><a href="#4_why_do">Why do?</a> +<ol> +<li><a href="#faq_4_1">Why do I get an +"Unresolved external symbol" error?</a></li> +<li><a href="#faq_4_2">Why can't I run the +samples?</a></li> +<li><a href="#faq_4_3">libxml2 is installed +but I get "libxml2 not found"?</a></li> +</ol> +</li> +</ol> +<p style="margin-bottom: 0in;"><br /> +</p> + +<h2>1. Introduction</h2> +<p></p> + +<h3>1.1 What is Axis2/C?</h3> +<p>Apache Axis2/C is a web services engine implemented in the C +programming language based around the Axis2 architecture. Axis2/C can +be used to provide and consume web services. It has been implemented +with portablity and the ability to embed and could readily be used as a +web services enabler for other software.</p> + +<h3>1.2 Licensing</h3> +<p>Apache Axis2/C is released under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0 +License</a>, a copy of the License is found in the LICENSE file +found in your distribution. Apache Axis2/C also depends on several +other projects of which licensing information are also included in the +LICENSE file.</p> + +<h3>1.3 How can I obtain Axis2/C?</h3> +<p>Apache Axis2/C can be freely downloaded at the <a href="http://ws.apache.org/axis2/c/download.cgi">Axis2/C +Download Page</a> or at any other mirror. Please note that +Axis2/C source and binary packages are tailor made to suit specific +classes of operating systems. Please make sure to choose the one that +best fits your requirement as well as your operating system.</p> + +<h3>1.4 How can I get involved?</h3> +<p>Apache Axis2/C is a result of a highly involved list of apache +committers, developers, as well as a keen group of users. For more +information on our team, and how to get involved, please visit our <a href="http://ws.apache.org/axis2/c/team-list.html">Team Page</a>.</p> +<p style="margin-bottom: 0in;"><br /> +</p> + +<h2>2. Support</h2> +<p></p> + +<h3>2.1 Does Axis2/C support code generation?</h3> +<p>Yes, Axis2/C supports code generation using the WSDL2C tool. +Information on how to use this tool can be found in our <a href="http://ws.apache.org/axis2/c/docs/axis2c_manual.html#wsdl2c">documentation</a>.</p> + +<h3>2.2 Does Axis2/C support SSL?</h3> +<p>Yes, Axis2/C supports SSL enabled communication. More +information can be found in our <a href="http://ws.apache.org/axis2/c/docs/axis2c_manual.html#ssl_client">documentation</a>.</p> + +<h3>2.3 Does Axis2/C support compression?</h3> +<p>Axis2/C itself does not support compression. If you are using +mod_axis2 and the Apache HTTP server, you can also mod_deflate for +compression. Also, you can enable compression by using libcurl as the +http sender on the client side.</p> + +<h3>2.4 Does Axis2/C support SOAP Session management?</h3> +<p>No, there is no support for SOAP Sessions in Axis2/C.</p> + +<h3>2.5 Can I use Axis2/C with a proxy?</h3> +<p>Yes. This requires a few changes to the axis2.xml file. +Information about this can be found in our <a href="http://ws.apache.org/axis2/c/docs/axis2c_manual.html#proxy">documentation</a>.</p> +<a id="faq_2_6"></a><h3>2.6 Does Axis2/C work on my platform?</h3>
+<p>Currently Axis2/C has been ported to following platforms.<br>
+1. Linux based distributions(Debian, Ubuntu, Redhat Linux etc...,) <br>
+2. Sun Solaris 10(intel) <br>
+3. Mac OS X <br>
+4. Microsoft Windows<br>
+Patches are welcome! +<p style="margin-bottom: 0in;"><br /> +</p> + +<h2>3. How to?</h2> +<p></p> + +<h3>3.1 How can I enable the Guththila parser?</h3> +<p>In Windows you have to put the <code>ENABLE_GUTHTHILA = +1</code> in the <code>build/win32/configure.in</code> +file. In Linux you have to specify the configuration option <code>--enable-guththila=yes</code>. +In a Microsoft Visual Studion Project (VC Project) this is little bit +difficult. You have to add the guththila project to the existing +Axis2/C solution. Then in the axis2_parser project, we have to remove +the libxml wrapper files and add the guththila_wrapper files. Also in +the axis2_parser project we have to change the include files and linker +input files (libs) to corresponding guththila files (<code>guththila.lib</code> +and <code>guththila/include</code>).</p> + +<h3>3.2 How do I turn off MTOM globally?</h3> +<p>MTOM can be disabled by commenting out the following line from +your axis2.xml. +(<code><parameter name="enableMTOM" +locked="false">true</parameter></code>)</p> + +<h3>3.3 How can I use Axis2/C with C++?</h3> +<p>Just add the following code to your C source files and then +use a C++ compiler. +</p> +<pre> #ifdef __cplusplus <br /> extern "C"{<br /> #endif<br /> /* YOUR C CODE HERE */<br /> #ifdef __cplusplus<br /> }<br /> #endif<br /></pre> + +<h3>3.4 How could I secure SOAP messages?</h3> +<p>To secure SOAP messages, you need to engage <a href="http://ws.apache.org/rampart/c/">Apache Rampart/C</a> +as a module, which can be downloaded from <a href="http://ws.apache.org/rampart/c/download.cgi">here</a>. +Please refer the <a href="http://ws.apache.org/rampart/c/docs/installationguide.html">installation +guide</a> and <a href="http://ws.apache.org/rampart/c/docs/configurations.html">configuration +guide</a> for more details.</p> +<p style="margin-bottom: 0in;"><br /> +</p> + +<h2>4. Why do?</h2> +<p></p> + +<h3>4.1 Why do I get an "Unresolved external symbol" error?</h3> +<p>Make sure that your <code>AXIS2C_HOME/lib</code> +directory is added to your <code>PATH</code> Environment +Variable.</p> + +<h3>4.2 Why can't I run the samples?</h3> +<p>This is usually because the <code>AXIS2C_HOME</code> +Environment Variable is not set to the correct path. Make sure that it +is set to your Axis2/C installation path.</p> + +<h3>4.3 libxml2 is installed but I get "libxml2 not found"?</h3> +<p>Make sure that you have installed the libxml2-dev packages.</p> +<p style="margin-bottom: 0in;">1. If you are using a +Debian based system run<br /> $ apt-get install libxml2-dev<br /> +</p> +<p style="margin-bottom: 0in;">2. If you are +using a RedHat/Fedora based system run<br /> + $ yum install +libxml2-dev<br /> +</p><p style="margin-bottom: 0in;">3. If you install libxml2 from source +you will not get this error<br /> +<br /> +</p> +<div class="clear"> +<hr /></div> +</body></html> diff --git a/xdocs/docs/hello/client/hello.c b/xdocs/docs/hello/client/hello.c new file mode 100644 index 0000000..1cd6760 --- /dev/null +++ b/xdocs/docs/hello/client/hello.c @@ -0,0 +1,154 @@ + +/* + * 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 <stdio.h> +#include <axiom.h> +#include <axis2_util.h> +#include <axiom_soap.h> +#include <axis2_client.h> + +axiom_node_t *build_om_request( + const axutil_env_t * env); + +const axis2_char_t *process_om_response( + const axutil_env_t * env, + axiom_node_t * node); + +int +main( + int argc, + char **argv) +{ + const axutil_env_t *env = NULL; + const axis2_char_t *address = NULL; + axis2_endpoint_ref_t *endpoint_ref = NULL; + axis2_options_t *options = NULL; + const axis2_char_t *client_home = NULL; + axis2_svc_client_t *svc_client = NULL; + axiom_node_t *payload = NULL; + axiom_node_t *ret_node = NULL; + + env = axutil_env_create_all("hello_client.log", AXIS2_LOG_LEVEL_TRACE); + + options = axis2_options_create(env); + + address = "http://localhost:9090/axis2/services/hello"; + if (argc > 1) + address = argv[1]; + if (axutil_strcmp(address, "-h") == 0) + { + printf("Usage : %s [endpoint_url]\n", argv[0]); + printf("use -h for help\n"); + return 0; + } + printf("Using endpoint : %s\n", address); + endpoint_ref = axis2_endpoint_ref_create(env, address); + axis2_options_set_to(options, env, endpoint_ref); + + client_home = AXIS2_GETENV("AXIS2C_HOME"); + if (!client_home || !strcmp(client_home, "")) + client_home = "../.."; + + svc_client = axis2_svc_client_create(env, client_home); + if (!svc_client) + { + printf("Error creating service client\n"); + AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, + "Stub invoke FAILED: Error code:" " %d :: %s", + env->error->error_number, + AXIS2_ERROR_GET_MESSAGE(env->error)); + return -1; + } + + axis2_svc_client_set_options(svc_client, env, options); + + payload = build_om_request(env); + + ret_node = axis2_svc_client_send_receive(svc_client, env, payload); + + if (ret_node) + { + const axis2_char_t *greeting = process_om_response(env, ret_node); + if (greeting) + printf("\nReceived greeting: \"%s\" from service\n", greeting); + + axiom_node_free_tree(ret_node, env); + ret_node = NULL; + } + else + { + AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, + "Stub invoke FAILED: Error code:" " %d :: %s", + env->error->error_number, + AXIS2_ERROR_GET_MESSAGE(env->error)); + printf("hello client invoke FAILED!\n"); + } + + if (svc_client) + { + axis2_svc_client_free(svc_client, env); + svc_client = NULL; + } + + if (env) + { + axutil_env_free((axutil_env_t *) env); + env = NULL; + } + + return 0; +} + +axiom_node_t * +build_om_request( + const axutil_env_t * env) +{ + axiom_node_t *greet_om_node = NULL; + axiom_element_t *greet_om_ele = NULL; + + greet_om_ele = + axiom_element_create(env, NULL, "greet", NULL, &greet_om_node); + axiom_element_set_text(greet_om_ele, env, "Hello Server!", greet_om_node); + + return greet_om_node; +} + +const axis2_char_t * +process_om_response( + const axutil_env_t * env, + axiom_node_t * node) +{ + axiom_node_t *service_greeting_node = NULL; + axiom_node_t *return_node = NULL; + + if (node) + { + service_greeting_node = axiom_node_get_first_child(node, env); + if (service_greeting_node && + axiom_node_get_node_type(service_greeting_node, env) == AXIOM_TEXT) + { + axiom_text_t *greeting = + (axiom_text_t *) + axiom_node_get_data_element(service_greeting_node, env); + if (greeting && axiom_text_get_value(greeting, env)) + { + return axiom_text_get_value(greeting, env); + } + } + } + return NULL; +} diff --git a/xdocs/docs/hello/client/hello.c.html b/xdocs/docs/hello/client/hello.c.html new file mode 100644 index 0000000..505adc4 --- /dev/null +++ b/xdocs/docs/hello/client/hello.c.html @@ -0,0 +1,147 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html><head><title>Apache Axis2/C - hello.c</title></head><body><div class="contentBox"><div class="section"><font face="Monospace">
+<font color="#808080"><i>/*<br />
+ * Copyright 2004,2005 The Apache Software Foundation.<br />
+ *<br />
+ * Licensed under the Apache License, Version 2.0 (the "License");<br />
+ * you may not use this file except in compliance with the License.<br />
+ * You may obtain a copy of the License at<br />
+ *<br />
+ * http://www.apache.org/licenses/LICENSE-2.0<br />
+ *<br />
+ * Unless required by applicable law or agreed to in writing, software<br />
+ * distributed under the License is distributed on an "AS IS" BASIS,<br />
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br />
+ * See the License for the specific language governing permissions and<br />
+ * limitations under the License.<br />
+ */</i></font><br />
+<br />
+<font color="#008000">#include <stdio.h><br /></font>
+<font color="#008000">#include <axiom.h><br /></font>
+<font color="#008000">#include <axis2_util.h><br /></font>
+<font color="#008000">#include <axiom_soap.h><br /></font>
+<font color="#008000">#include <axis2_client.h><br /></font>
+<br />
+<font color="#000000">axiom_node_t</font> *<br />
+<font color="#000000">build_om_request</font>(<font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>);<br />
+<br />
+<font color="#800000">const</font> <font color="#000000">axis2_char_t</font> *<br />
+<font color="#000000">process_om_response</font>(<font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>,<br />
+ <font color="#000000">axiom_node_t</font> *<font color="#000000">node</font>);<br />
+<br />
+<font color="#800000">int</font> <font color="#000000">main</font>(<font color="#800000">int</font> <font color="#000000">argc</font>, <font color="#800000">char</font>** <font color="#000000">argv</font>)<br />
+{<br />
+ <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font> = <font color="#000000">NULL</font>;<br />
+ <font color="#800000">const</font> <font color="#000000">axis2_char_t</font> *<font color="#000000">address</font> = <font color="#000000">NULL</font>;<br />
+ <font color="#000000">axis2_endpoint_ref_t</font>* <font color="#000000">endpoint_ref</font> = <font color="#000000">NULL</font>;<br />
+ <font color="#000000">axis2_options_t</font> *<font color="#000000">options</font> = <font color="#000000">NULL</font>;<br />
+ <font color="#800000">const</font> <font color="#000000">axis2_char_t</font> *<font color="#000000">client_home</font> = <font color="#000000">NULL</font>;<br />
+ <font color="#000000">axis2_svc_client_t</font>* <font color="#000000">svc_client</font> = <font color="#000000">NULL</font>;<br />
+ <font color="#000000">axiom_node_t</font> *<font color="#000000">payload</font> = <font color="#000000">NULL</font>;<br />
+ <font color="#000000">axiom_node_t</font> *<font color="#000000">ret_node</font> = <font color="#000000">NULL</font>;<br />
+<br />
+ <font color="#000000">env</font> = <font color="#000000">axutil_env_create_all</font>(<font color="#ff0000">"hello_client.log"</font>, <font color="#000000">AXIS2_LOG_LEVEL_TRACE</font>);<br />
+<br />
+ <font color="#000000">options</font> = <font color="#000000">axis2_options_create</font>(<font color="#000000">env</font>);<br />
+<br />
+ <font color="#000000">address</font> = <font color="#ff0000">"http://localhost:9090/axis2/services/hello"</font>;<br />
+ <font color="#000000"><b>if</b></font> (<font color="#000000">argc</font> > <font color="#0000ff">1</font>)<br />
+ <font color="#000000">address</font> = <font color="#000000">argv</font>[<font color="#0000ff">1</font>];<br />
+ <font color="#000000"><b>if</b></font> (<font color="#000000">axutil_strcmp</font>(<font color="#000000">address</font>, <font color="#ff0000">"-h"</font>) == <font color="#0000ff">0</font>)<br />
+ {<br />
+ <font color="#000000">printf</font>(<font color="#ff0000">"Usage : %s [endpoint_url]\n"</font>, <font color="#000000">argv</font>[<font color="#0000ff">0</font>]);<br />
+ <font color="#000000">printf</font>(<font color="#ff0000">"use -h for help\n"</font>);<br />
+ <font color="#000000"><b>return</b></font> <font color="#0000ff">0</font>;<br />
+ }<br />
+ <font color="#000000">printf</font>(<font color="#ff0000">"Using endpoint : %s\n"</font>, <font color="#000000">address</font>);<br />
+ <font color="#000000">endpoint_ref</font> = <font color="#000000">axis2_endpoint_ref_create</font>(<font color="#000000">env</font>, <font color="#000000">address</font>);<br />
+ <font color="#000000">axis2_options_set_to</font>(<font color="#000000">options</font>, <font color="#000000">env</font>, <font color="#000000">endpoint_ref</font>);<br />
+<br />
+ <font color="#000000">client_home</font> = <font color="#000000">AXIS2_GETENV</font>(<font color="#ff0000">"AXIS2C_HOME"</font>);<br />
+ <font color="#000000"><b>if</b></font> (!<font color="#000000">client_home</font> || !<font color="#000000">strcmp</font>(<font color="#000000">client_home</font>, <font color="#ff0000">""</font>))<br />
+ <font color="#000000">client_home</font> = <font color="#ff0000">"../.."</font>;<br />
+<br />
+ <font color="#000000">svc_client</font> = <font color="#000000">axis2_svc_client_create</font>(<font color="#000000">env</font>, <font color="#000000">client_home</font>);<br />
+ <font color="#000000"><b>if</b></font> (!<font color="#000000">svc_client</font>)<br />
+ {<br />
+ <font color="#000000">printf</font>(<font color="#ff0000">"Error creating service client\n"</font>);<br />
+ <font color="#000000">AXIS2_LOG_ERROR</font>(<font color="#000000">env</font>-><font color="#000000">log</font>, <font color="#000000">AXIS2_LOG_SI</font>, <font color="#ff0000">"Stub invoke FAILED: Error code:"</font><br />
+ <font color="#ff0000">" %d :: %s"</font>, <font color="#000000">env</font>-><font color="#000000">error</font>-><font color="#000000">error_number</font>,<br />
+ <font color="#000000">AXIS2_ERROR_GET_MESSAGE</font>(<font color="#000000">env</font>-><font color="#000000">error</font>));<br />
+ <font color="#000000"><b>return</b></font> -<font color="#0000ff">1</font>;<br />
+ }<br />
+<br />
+ <font color="#000000">axis2_svc_client_set_options</font>(<font color="#000000">svc_client</font>, <font color="#000000">env</font>, <font color="#000000">options</font>);<br />
+<br />
+ <font color="#000000">payload</font> = <font color="#000000">build_om_request</font>(<font color="#000000">env</font>);<br />
+<br />
+ <font color="#000000">ret_node</font> = <font color="#000000">axis2_svc_client_send_receive</font>(<font color="#000000">svc_client</font>, <font color="#000000">env</font>, <font color="#000000">payload</font>);<br />
+<br />
+ <font color="#000000"><b>if</b></font> (<font color="#000000">ret_node</font>)<br />
+ {<br />
+ <font color="#800000">const</font> <font color="#000000">axis2_char_t</font> *<font color="#000000">greeting</font> = <font color="#000000">process_om_response</font>(<font color="#000000">env</font>, <font color="#000000">ret_node</font>);<br />
+ <font color="#000000"><b>if</b></font> (<font color="#000000">greeting</font>)<br />
+ <font color="#000000">printf</font>(<font color="#ff0000">"\nReceived greeting: \"%s\" from service\n"</font>, <font color="#000000">greeting</font>);<br />
+<br />
+ <font color="#000000">axiom_node_free_tree</font>(<font color="#000000">ret_node</font>, <font color="#000000">env</font>);<br />
+ <font color="#000000">ret_node</font> = <font color="#000000">NULL</font>;<br />
+ }<br />
+ <font color="#000000"><b>else</b></font><br />
+ {<br />
+ <font color="#000000">AXIS2_LOG_ERROR</font>(<font color="#000000">env</font>-><font color="#000000">log</font>, <font color="#000000">AXIS2_LOG_SI</font>, <font color="#ff0000">"Stub invoke FAILED: Error code:"</font><br />
+ <font color="#ff0000">" %d :: %s"</font>, <font color="#000000">env</font>-><font color="#000000">error</font>-><font color="#000000">error_number</font>,<br />
+ <font color="#000000">AXIS2_ERROR_GET_MESSAGE</font>(<font color="#000000">env</font>-><font color="#000000">error</font>));<br />
+ <font color="#000000">printf</font>(<font color="#ff0000">"hello client invoke FAILED!\n"</font>);<br />
+ }<br />
+<br />
+ <font color="#000000"><b>if</b></font> (<font color="#000000">svc_client</font>)<br />
+ {<br />
+ <font color="#000000">axis2_svc_client_free</font>(<font color="#000000">svc_client</font>, <font color="#000000">env</font>);<br />
+ <font color="#000000">svc_client</font> = <font color="#000000">NULL</font>;<br />
+ }<br />
+<br />
+ <font color="#000000"><b>if</b></font> (<font color="#000000">env</font>)<br />
+ {<br />
+ <font color="#000000">axutil_env_free</font>((<font color="#000000">axutil_env_t</font> *) <font color="#000000">env</font>);<br />
+ <font color="#000000">env</font> = <font color="#000000">NULL</font>;<br />
+ }<br />
+<br />
+ <font color="#000000"><b>return</b></font> <font color="#0000ff">0</font>;<br />
+}<br />
+<br />
+<font color="#000000">axiom_node_t</font> *<br />
+<font color="#000000">build_om_request</font>(<font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>)<br />
+{<br />
+ <font color="#000000">axiom_node_t</font>* <font color="#000000">greet_om_node</font> = <font color="#000000">NULL</font>;<br />
+ <font color="#000000">axiom_element_t</font> * <font color="#000000">greet_om_ele</font> = <font color="#000000">NULL</font>;<br />
+<br />
+ <font color="#000000">greet_om_ele</font> = <font color="#000000">axiom_element_create</font>(<font color="#000000">env</font>, <font color="#000000">NULL</font>, <font color="#ff0000">"greet"</font>, <font color="#000000">NULL</font>, &<font color="#000000">greet_om_node</font>);<br />
+ <font color="#000000">axiom_element_set_text</font>(<font color="#000000">greet_om_ele</font>, <font color="#000000">env</font>, <font color="#ff0000">"Hello Server!"</font>, <font color="#000000">greet_om_node</font>);<br />
+<br />
+ <font color="#000000"><b>return</b></font> <font color="#000000">greet_om_node</font>;<br />
+}<br />
+<br />
+<font color="#800000">const</font> <font color="#000000">axis2_char_t</font> *<br />
+<font color="#000000">process_om_response</font>(<font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>,<br />
+ <font color="#000000">axiom_node_t</font> *<font color="#000000">node</font>)<br />
+{<br />
+ <font color="#000000">axiom_node_t</font> *<font color="#000000">service_greeting_node</font> = <font color="#000000">NULL</font>;<br />
+ <font color="#000000">axiom_node_t</font> *<font color="#000000">return_node</font> = <font color="#000000">NULL</font>;<br />
+<br />
+ <font color="#000000"><b>if</b></font> (<font color="#000000">node</font>)<br />
+ {<br />
+ <font color="#000000">service_greeting_node</font> = <font color="#000000">axiom_node_get_first_child</font>(<font color="#000000">node</font>, <font color="#000000">env</font>);<br />
+ <font color="#000000"><b>if</b></font> (<font color="#000000">service_greeting_node</font> &&<br />
+ <font color="#000000">axiom_node_get_node_type</font>(<font color="#000000">service_greeting_node</font>, <font color="#000000">env</font>) == <font color="#000000">AXIOM_TEXT</font>)<br />
+ {<br />
+ <font color="#000000">axiom_text_t</font> *<font color="#000000">greeting</font> = (<font color="#000000">axiom_text_t</font> *)<font color="#000000">axiom_node_get_data_element</font>(<font color="#000000">service_greeting_node</font>, <font color="#000000">env</font>);<br />
+ <font color="#000000"><b>if</b></font> (<font color="#000000">greeting</font> && <font color="#000000">axiom_text_get_value</font>(<font color="#000000">greeting</font> , <font color="#000000">env</font>))<br />
+ {<br />
+ <font color="#000000"><b>return</b></font> <font color="#000000">axiom_text_get_value</font>(<font color="#000000">greeting</font>, <font color="#000000">env</font>);<br />
+ }<br />
+ }<br />
+ }<br />
+ <font color="#000000"><b>return</b></font> <font color="#000000">NULL</font>;<br />
+}<br />
+<br />
+ </font></div></div><div class="clear"><hr /></div></body></html>
\ No newline at end of file diff --git a/xdocs/docs/hello/service/hello/services.xml b/xdocs/docs/hello/service/hello/services.xml new file mode 100644 index 0000000..22f97c5 --- /dev/null +++ b/xdocs/docs/hello/service/hello/services.xml @@ -0,0 +1,7 @@ +<service name="hello"> + <parameter name="ServiceClass" locked="xsd:false">hello</parameter> + <description> + Quick start guide hello service sample. + </description> + <operation name="greet"/> +</service> diff --git a/xdocs/docs/hello/service/hello_svc.c b/xdocs/docs/hello/service/hello_svc.c new file mode 100644 index 0000000..8d7de77 --- /dev/null +++ b/xdocs/docs/hello/service/hello_svc.c @@ -0,0 +1,211 @@ + +/* + * Copyright 2004,2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#include <axis2_svc_skeleton.h> +#include <axutil_log_default.h> +#include <axutil_error_default.h> +#include <axutil_array_list.h> +#include <axiom_text.h> +#include <axiom_node.h> +#include <axiom_element.h> +#include <stdio.h> + +axiom_node_t *axis2_hello_greet( + const axutil_env_t * env, + axiom_node_t * node); + +int AXIS2_CALL hello_free( + axis2_svc_skeleton_t * svc_skeleton, + const axutil_env_t * env); + +axiom_node_t *AXIS2_CALL hello_invoke( + axis2_svc_skeleton_t * svc_skeleton, + const axutil_env_t * env, + axiom_node_t * node, + axis2_msg_ctx_t * msg_ctx); + +int AXIS2_CALL hello_init( + axis2_svc_skeleton_t * svc_skeleton, + const axutil_env_t * env); + +axiom_node_t *AXIS2_CALL hello_on_fault( + axis2_svc_skeleton_t * svc_skeli, + const axutil_env_t * env, + axiom_node_t * node); + +axiom_node_t *build_greeting_response( + const axutil_env_t * env, + axis2_char_t * greeting); + +axiom_node_t * +axis2_hello_greet( + const axutil_env_t * env, + axiom_node_t * node) +{ + axiom_node_t *client_greeting_node = NULL; + axiom_node_t *return_node = NULL; + + AXIS2_ENV_CHECK(env, NULL); + + if (node) + { + client_greeting_node = axiom_node_get_first_child(node, env); + if (client_greeting_node && + axiom_node_get_node_type(client_greeting_node, env) == AXIOM_TEXT) + { + axiom_text_t *greeting = + (axiom_text_t *) + axiom_node_get_data_element(client_greeting_node, env); + if (greeting && axiom_text_get_value(greeting, env)) + { + const axis2_char_t *greeting_str = + axiom_text_get_value(greeting, env); + printf("Client greeted saying \"%s\" \n", greeting_str); + return_node = build_greeting_response(env, "Hello Client!"); + } + } + } + else + { + AXIS2_ERROR_SET(env->error, + AXIS2_ERROR_SVC_SKEL_INVALID_XML_FORMAT_IN_REQUEST, + AXIS2_FAILURE); + printf("ERROR: invalid XML in request\n"); + return_node = build_greeting_response(env, "Client! Who are you?"); + } + + return return_node; +} + +axiom_node_t * +build_greeting_response( + const axutil_env_t * env, + axis2_char_t * greeting) +{ + axiom_node_t *greeting_om_node = NULL; + axiom_element_t *greeting_om_ele = NULL; + + greeting_om_ele = + axiom_element_create(env, NULL, "greetResponse", NULL, + &greeting_om_node); + + axiom_element_set_text(greeting_om_ele, env, greeting, greeting_om_node); + + return greeting_om_node; +} + +static const axis2_svc_skeleton_ops_t hello_svc_skeleton_ops_var = { + hello_init, + hello_invoke, + hello_on_fault, + hello_free +}; + +axis2_svc_skeleton_t * +axis2_hello_create( + const axutil_env_t * env) +{ + axis2_svc_skeleton_t *svc_skeleton = NULL; + svc_skeleton = AXIS2_MALLOC(env->allocator, sizeof(axis2_svc_skeleton_t)); + + svc_skeleton->ops = &hello_svc_skeleton_ops_var; + + svc_skeleton->func_array = NULL; + + return svc_skeleton; +} + +int AXIS2_CALL +hello_init( + axis2_svc_skeleton_t * svc_skeleton, + const axutil_env_t * env) +{ + svc_skeleton->func_array = axutil_array_list_create(env, 0); + axutil_array_list_add(svc_skeleton->func_array, env, "helloString"); + return AXIS2_SUCCESS; +} + +axiom_node_t *AXIS2_CALL +hello_invoke( + axis2_svc_skeleton_t * svc_skeleton, + const axutil_env_t * env, + axiom_node_t * node, + axis2_msg_ctx_t * msg_ctx) +{ + return axis2_hello_greet(env, node); +} + +axiom_node_t *AXIS2_CALL +hello_on_fault( + axis2_svc_skeleton_t * svc_skeli, + const axutil_env_t * env, + axiom_node_t * node) +{ + axiom_node_t *error_node = NULL; + axiom_node_t *text_node = NULL; + axiom_element_t *error_ele = NULL; + error_ele = axiom_element_create(env, node, "HelloServiceError", NULL, + &error_node); + axiom_element_set_text(error_ele, env, "Hello service failed ", text_node); + return error_node; +} + +int AXIS2_CALL +hello_free( + axis2_svc_skeleton_t * svc_skeleton, + const axutil_env_t * env) +{ + if (svc_skeleton->func_array) + { + axutil_array_list_free(svc_skeleton->func_array, env); + svc_skeleton->func_array = NULL; + } + + if (svc_skeleton) + { + AXIS2_FREE(env->allocator, svc_skeleton); + svc_skeleton = NULL; + } + + return AXIS2_SUCCESS; +} + +AXIS2_EXPORT int +axis2_get_instance( + axis2_svc_skeleton_t ** inst, + const axutil_env_t * env) +{ + *inst = axis2_hello_create(env); + if (!(*inst)) + { + return AXIS2_FAILURE; + } + + return AXIS2_SUCCESS; +} + +AXIS2_EXPORT int +axis2_remove_instance( + axis2_svc_skeleton_t * inst, + const axutil_env_t * env) +{ + axis2_status_t status = AXIS2_FAILURE; + if (inst) + { + status = AXIS2_SVC_SKELETON_FREE(inst, env); + } + return status; +} diff --git a/xdocs/docs/hello/service/hello_svc.c.html b/xdocs/docs/hello/service/hello_svc.c.html new file mode 100644 index 0000000..9d4ae7a --- /dev/null +++ b/xdocs/docs/hello/service/hello_svc.c.html @@ -0,0 +1,198 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Apache Axis2/C - hello_svc.c</title><div class="contentBox"><div class="section"><font face="Monospace"> +<font color="#808080"><i>/*<br></br> + * Copyright 2004,2005 The Apache Software Foundation.<br></br> + *<br></br> + * Licensed under the Apache License, Version 2.0 (the "License");<br></br> + * you may not use this file except in compliance with the License.<br></br> + * You may obtain a copy of the License at<br></br> + *<br></br> + * http://www.apache.org/licenses/LICENSE-2.0<br></br> + *<br></br> + * Unless required by applicable law or agreed to in writing, software<br></br> + * distributed under the License is distributed on an "AS IS" BASIS,<br></br> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br></br> + * See the License for the specific language governing permissions and<br></br> + * limitations under the License.<br></br> + */</i></font><br></br> +<font color="#008000">#include <axis2_svc_skeleton.h><br></br></font> +<font color="#008000">#include <axutil_log_default.h><br></br></font> +<font color="#008000">#include <axutil_error_default.h><br></br></font> +<font color="#008000">#include <axutil_array_list.h><br></br></font> +<font color="#008000">#include <axiom_text.h><br></br></font> +<font color="#008000">#include <axiom_node.h><br></br></font> +<font color="#008000">#include <axiom_element.h><br></br></font> +<font color="#008000">#include <stdio.h><br></br></font> +<br></br> +<font color="#000000">axiom_node_t</font> *<font color="#000000">axis2_hello_greet</font>(<font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>,<br></br> + <font color="#000000">axiom_node_t</font> *<font color="#000000">node</font>);<br></br> +<br></br> +<font color="#800000">int</font> <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">hello_free</font>(<font color="#000000">axis2_svc_skeleton_t</font> *<font color="#000000">svc_skeleton</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>);<br></br> +<br></br> +<font color="#000000">axiom_node_t</font>* <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">hello_invoke</font>(<font color="#000000">axis2_svc_skeleton_t</font> *<font color="#000000">svc_skeleton</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>,<br></br> + <font color="#000000">axiom_node_t</font> *<font color="#000000">node</font>,<br></br> + <font color="#000000">axis2_msg_ctx_t</font> *<font color="#000000">msg_ctx</font>);<br></br> +<br></br> +<br></br> +<font color="#800000">int</font> <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">hello_init</font>(<font color="#000000">axis2_svc_skeleton_t</font> *<font color="#000000">svc_skeleton</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>);<br></br> +<br></br> +<font color="#000000">axiom_node_t</font>* <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">hello_on_fault</font>(<font color="#000000">axis2_svc_skeleton_t</font> *<font color="#000000">svc_skeli</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>, <font color="#000000">axiom_node_t</font> *<font color="#000000">node</font>);<br></br> +<br></br> +<br></br> +<font color="#000000">axiom_node_t</font> *<br></br> +<font color="#000000">build_greeting_response</font>(<font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>, <br></br> + <font color="#000000">axis2_char_t</font> *<font color="#000000">greeting</font>);<br></br> +<br></br> +<font color="#000000">axiom_node_t</font> *<br></br> +<font color="#000000">axis2_hello_greet</font>(<font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>, <font color="#000000">axiom_node_t</font> *<font color="#000000">node</font>)<br></br> +{<br></br> + <font color="#000000">axiom_node_t</font> *<font color="#000000">client_greeting_node</font> = <font color="#000000">NULL</font>;<br></br> + <font color="#000000">axiom_node_t</font> *<font color="#000000">return_node</font> = <font color="#000000">NULL</font>;<br></br> +<br></br> + <font color="#000000">AXIS2_ENV_CHECK</font>(<font color="#000000">env</font>, <font color="#000000">NULL</font>);<br></br> +<br></br> + <font color="#000000"><b>if</b></font> (<font color="#000000">node</font>)<br></br> + {<br></br> + <font color="#000000">client_greeting_node</font> = <font color="#000000">axiom_node_get_first_child</font>(<font color="#000000">node</font>, <font color="#000000">env</font>);<br></br> + <font color="#000000"><b>if</b></font> (<font color="#000000">client_greeting_node</font> &&<br></br> + <font color="#000000">axiom_node_get_node_type</font>(<font color="#000000">client_greeting_node</font>, <font color="#000000">env</font>) == <font color="#000000">AXIOM_TEXT</font>)<br></br> + {<br></br> + <font color="#000000">axiom_text_t</font> *<font color="#000000">greeting</font> = (<font color="#000000">axiom_text_t</font> *)<font color="#000000">axiom_node_get_data_element</font>(<font color="#000000">client_greeting_node</font>, <font color="#000000">env</font>);<br></br> + <font color="#000000"><b>if</b></font> (<font color="#000000">greeting</font> && <font color="#000000">axiom_text_get_value</font>(<font color="#000000">greeting</font> , <font color="#000000">env</font>))<br></br> + {<br></br> + <font color="#800000">const</font> <font color="#000000">axis2_char_t</font> *<font color="#000000">greeting_str</font> = <font color="#000000">axiom_text_get_value</font>(<font color="#000000">greeting</font>, <font color="#000000">env</font>);<br></br> + <font color="#000000">printf</font>(<font color="#FF0000">"Client greeted saying \"%s\" \n"</font>, <font color="#000000">greeting_str</font>);<br></br> + <font color="#000000">return_node</font> = <font color="#000000">build_greeting_response</font>(<font color="#000000">env</font>, <font color="#FF0000">"Hello Client!"</font>);<br></br> + }<br></br> + }<br></br> + }<br></br> + <font color="#000000"><b>else</b></font><br></br> + {<br></br> + <font color="#000000">AXIS2_ERROR_SET</font>(<font color="#000000">env</font>-><font color="#000000">error</font>, <font color="#000000">AXIS2_ERROR_SVC_SKEL_INVALID_XML_FORMAT_IN_REQUEST</font>, <font color="#000000">AXIS2_FAILURE</font>);<br></br> + <font color="#000000">printf</font>(<font color="#FF0000">"ERROR: invalid XML in request\n"</font>);<br></br> + <font color="#000000">return_node</font> = <font color="#000000">build_greeting_response</font>(<font color="#000000">env</font>, <font color="#FF0000">"Client! Who are you?"</font>);<br></br> + }<br></br> +<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">return_node</font>;<br></br> +}<br></br> +<br></br> +<font color="#000000">axiom_node_t</font> *<br></br> +<font color="#000000">build_greeting_response</font>(<font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>, <font color="#000000">axis2_char_t</font> *<font color="#000000">greeting</font>)<br></br> +{<br></br> + <font color="#000000">axiom_node_t</font>* <font color="#000000">greeting_om_node</font> = <font color="#000000">NULL</font>;<br></br> + <font color="#000000">axiom_element_t</font> * <font color="#000000">greeting_om_ele</font> = <font color="#000000">NULL</font>;<br></br> +<br></br> + <font color="#000000">greeting_om_ele</font> = <font color="#000000">axiom_element_create</font>(<font color="#000000">env</font>, <font color="#000000">NULL</font>, <font color="#FF0000">"greetResponse"</font>, <font color="#000000">NULL</font>, &<font color="#000000">greeting_om_node</font>);<br></br> +<br></br> + <font color="#000000">axiom_element_set_text</font>(<font color="#000000">greeting_om_ele</font>, <font color="#000000">env</font>, <font color="#000000">greeting</font>, <font color="#000000">greeting_om_node</font>);<br></br> +<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">greeting_om_node</font>;<br></br> +}<br></br> +<br></br> +<font color="#800000">static</font> <font color="#800000">const</font> <font color="#000000">axis2_svc_skeleton_ops_t</font> <font color="#000000">hello_svc_skeleton_ops_var</font> = {<br></br> + <font color="#000000">hello_init</font>,<br></br> + <font color="#000000">hello_invoke</font>,<br></br> + <font color="#000000">hello_on_fault</font>,<br></br> + <font color="#000000">hello_free</font><br></br> +};<br></br> +<br></br> +<font color="#000000">axis2_svc_skeleton_t</font> *<br></br> +<font color="#000000">axis2_hello_create</font>(<font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>)<br></br> +{<br></br> + <font color="#000000">axis2_svc_skeleton_t</font> *<font color="#000000">svc_skeleton</font> = <font color="#000000">NULL</font>;<br></br> + <font color="#000000">svc_skeleton</font> = <font color="#000000">AXIS2_MALLOC</font>(<font color="#000000">env</font>-><font color="#000000">allocator</font>,<br></br> + <font color="#000000"><b>sizeof</b></font>(<font color="#000000">axis2_svc_skeleton_t</font>));<br></br> +<br></br> + <font color="#000000">svc_skeleton</font>-><font color="#000000">ops</font> = &<font color="#000000">hello_svc_skeleton_ops_var</font>;<br></br> +<br></br> + <font color="#000000">svc_skeleton</font>-><font color="#000000">func_array</font> = <font color="#000000">NULL</font>;<br></br> + <br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">svc_skeleton</font>;<br></br> +}<br></br> +<br></br> +<font color="#800000">int</font> <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">hello_init</font>(<font color="#000000">axis2_svc_skeleton_t</font> *<font color="#000000">svc_skeleton</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>)<br></br> +{<br></br> + <font color="#000000">svc_skeleton</font>-><font color="#000000">func_array</font> = <font color="#000000">axutil_array_list_create</font>(<font color="#000000">env</font>, <font color="#0000FF">0</font>);<br></br> + <font color="#000000">axutil_array_list_add</font>(<font color="#000000">svc_skeleton</font>-><font color="#000000">func_array</font>, <font color="#000000">env</font>, <font color="#FF0000">"helloString"</font>);<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">AXIS2_SUCCESS</font>;<br></br> +}<br></br> +<br></br> +<font color="#000000">axiom_node_t</font>* <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">hello_invoke</font>(<font color="#000000">axis2_svc_skeleton_t</font> *<font color="#000000">svc_skeleton</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>,<br></br> + <font color="#000000">axiom_node_t</font> *<font color="#000000">node</font>,<br></br> + <font color="#000000">axis2_msg_ctx_t</font> *<font color="#000000">msg_ctx</font>)<br></br> +{<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">axis2_hello_greet</font>(<font color="#000000">env</font>, <font color="#000000">node</font>);<br></br> +}<br></br> +<br></br> +<font color="#000000">axiom_node_t</font>* <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">hello_on_fault</font>(<font color="#000000">axis2_svc_skeleton_t</font> *<font color="#000000">svc_skeli</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>, <font color="#000000">axiom_node_t</font> *<font color="#000000">node</font>)<br></br> +{<br></br> + <font color="#000000">axiom_node_t</font> *<font color="#000000">error_node</font> = <font color="#000000">NULL</font>;<br></br> + <font color="#000000">axiom_node_t</font>* <font color="#000000">text_node</font> = <font color="#000000">NULL</font>;<br></br> + <font color="#000000">axiom_element_t</font> *<font color="#000000">error_ele</font> = <font color="#000000">NULL</font>;<br></br> + <font color="#000000">error_ele</font> = <font color="#000000">axiom_element_create</font>(<font color="#000000">env</font>, <font color="#000000">node</font>, <font color="#FF0000">"HelloServiceError"</font>, <font color="#000000">NULL</font>,<br></br> + &<font color="#000000">error_node</font>);<br></br> + <font color="#000000">axiom_element_set_text</font>(<font color="#000000">error_ele</font>, <font color="#000000">env</font>, <font color="#FF0000">"Echo Service Failed"</font>,<br></br> + <font color="#000000">text_node</font>);<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">error_node</font>;<br></br> +}<br></br> +<br></br> +<font color="#800000">int</font> <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">hello_free</font>(<font color="#000000">axis2_svc_skeleton_t</font> *<font color="#000000">svc_skeleton</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>)<br></br> +{<br></br> + <font color="#000000"><b>if</b></font> (<font color="#000000">svc_skeleton</font>-><font color="#000000">func_array</font>)<br></br> + {<br></br> + <font color="#000000">axutil_array_list_free</font>(<font color="#000000">svc_skeleton</font>-><font color="#000000">func_array</font>, <font color="#000000">env</font>);<br></br> + <font color="#000000">svc_skeleton</font>-><font color="#000000">func_array</font> = <font color="#000000">NULL</font>;<br></br> + }<br></br> +<br></br> + <font color="#000000"><b>if</b></font> (<font color="#000000">svc_skeleton</font>)<br></br> + {<br></br> + <font color="#000000">AXIS2_FREE</font>(<font color="#000000">env</font>-><font color="#000000">allocator</font>, <font color="#000000">svc_skeleton</font>);<br></br> + <font color="#000000">svc_skeleton</font> = <font color="#000000">NULL</font>;<br></br> + }<br></br> +<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">AXIS2_SUCCESS</font>;<br></br> +}<br></br> +<br></br> +<br></br> +<font color="#000000">AXIS2_EXPORT</font> <font color="#800000">int</font><br></br> +<font color="#000000">axis2_get_instance</font>(<font color="#000000">axis2_svc_skeleton_t</font> **<font color="#000000">inst</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>)<br></br> +{<br></br> + *<font color="#000000">inst</font> = <font color="#000000">axis2_hello_create</font>(<font color="#000000">env</font>);<br></br> + <font color="#000000"><b>if</b></font> (!(*<font color="#000000">inst</font>))<br></br> + {<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">AXIS2_FAILURE</font>;<br></br> + }<br></br> +<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">AXIS2_SUCCESS</font>;<br></br> +}<br></br> +<br></br> +<font color="#000000">AXIS2_EXPORT</font> <font color="#800000">int</font><br></br> +<font color="#000000">axis2_remove_instance</font>(<font color="#000000">axis2_svc_skeleton_t</font> *<font color="#000000">inst</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>)<br></br> +{<br></br> + <font color="#000000">axis2_status_t</font> <font color="#000000">status</font> = <font color="#000000">AXIS2_FAILURE</font>;<br></br> + <font color="#000000"><b>if</b></font> (<font color="#000000">inst</font>)<br></br> + {<br></br> + <font color="#000000">status</font> = <font color="#000000">AXIS2_SVC_SKELETON_FREE</font>(<font color="#000000">inst</font>, <font color="#000000">env</font>);<br></br> + }<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">status</font>;<br></br> +}<br></br> +<br></br> +<br></br> + </font></div></div></div><div class="clear"><hr></hr></div></body></html> diff --git a/xdocs/docs/images/OM005.gif b/xdocs/docs/images/OM005.gif Binary files differnew file mode 100644 index 0000000..49209e4 --- /dev/null +++ b/xdocs/docs/images/OM005.gif diff --git a/xdocs/docs/images/archi006.jpg b/xdocs/docs/images/archi006.jpg Binary files differnew file mode 100644 index 0000000..50a2122 --- /dev/null +++ b/xdocs/docs/images/archi006.jpg diff --git a/xdocs/docs/images/arrow_left.gif b/xdocs/docs/images/arrow_left.gif Binary files differnew file mode 100644 index 0000000..01100ec --- /dev/null +++ b/xdocs/docs/images/arrow_left.gif diff --git a/xdocs/docs/images/arrow_right.gif b/xdocs/docs/images/arrow_right.gif Binary files differnew file mode 100644 index 0000000..b7c1d92 --- /dev/null +++ b/xdocs/docs/images/arrow_right.gif diff --git a/xdocs/docs/images/axis2c_repo.gif b/xdocs/docs/images/axis2c_repo.gif Binary files differnew file mode 100644 index 0000000..a672782 --- /dev/null +++ b/xdocs/docs/images/axis2c_repo.gif diff --git a/xdocs/docs/images/binary_folder_structure.jpg b/xdocs/docs/images/binary_folder_structure.jpg Binary files differnew file mode 100644 index 0000000..ccf3ed5 --- /dev/null +++ b/xdocs/docs/images/binary_folder_structure.jpg diff --git a/xdocs/docs/images/folder_structure.jpg b/xdocs/docs/images/folder_structure.jpg Binary files differnew file mode 100644 index 0000000..7dd0eda --- /dev/null +++ b/xdocs/docs/images/folder_structure.jpg diff --git a/xdocs/docs/images/folder_structure_zlib.jpg b/xdocs/docs/images/folder_structure_zlib.jpg Binary files differnew file mode 100644 index 0000000..745d1c3 --- /dev/null +++ b/xdocs/docs/images/folder_structure_zlib.jpg diff --git a/xdocs/docs/index.html b/xdocs/docs/index.html new file mode 100644 index 0000000..c49e82a --- /dev/null +++ b/xdocs/docs/index.html @@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Apache Axis2/C - Documentation</title><h2>Apache Axis2/C Documentation</h2><div class="subsection"><a name="Getting_Started"></a><h3>Getting Started</h3><ul> + <li><a href="installationguide.html">Installation Guide</a></li> +</ul></div><div class="subsection"><a name="Manual"></a><h3>Manual</h3><ul> +<li><a href="axis2c_manual.html">Axis2/C Manual</a></li> +</ul></div><div class="subsection"><a name="Additional_References"></a><h3>Additional References</h3><ul> + <li><a href="faq.html">FAQ</a></li> + <li><a href="http://ws.apache.org/axis2/1_2/Axis2ArchitectureGuide.html" class="externalLink" title="External Link"> +Architecture Guide</a></li> + <li><a href="architecture_notes.html">C Specific Architecture Notes</a></li> + <li><a href="om_tutorial.html">OM Tutorial</a></li> + <li><a href="../coding_conventions.html">Coding Conventions in Axis2/C</a></li> + <li><a href="../api/html/index.html">API Documentation</a></li> +</ul></div></div></div></div><div class="clear"><hr></hr></div></body></html> diff --git a/xdocs/docs/installationguide.html b/xdocs/docs/installationguide.html new file mode 100644 index 0000000..97c23e3 --- /dev/null +++ b/xdocs/docs/installationguide.html @@ -0,0 +1,792 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html><head><title>Apache Axis2/C - Installation Guide</title> + +</head> +<body> +<h2>Apache Axis2/C Installation Guide</h2> +<p>This document guides you on how to install Axis2/C, and run +the server and +client samples on Linux and Microsoft Windows operating systems.</p> +<p>This release comes in two forms, source and binary and you can +download them from <a href="http://ws.apache.org/axis2/c/download.cgi" class="externalLink">here</a>. This +document covers +both forms.</p> +<p>Please send your feedback to the developer mailing list: <a href="mailto:axis-c-dev@ws.apache.org">axis-c-dev@ws.apache.org</a> +(Subscription details are available on the <a href="http://ws.apache.org/axis2/c/mail-lists.html" class="externalLink" title="External Link">Axis2 site</a>.) +Please +remember to prefix the subject with [Axis2].</p> +<div class="section"><a name="Contents"></a> +<h2>Contents</h2> +<ul> +1. <a href="#1">Getting Axis2/C Working on Linux</a> +<br /> +<ul> +1.1 <a href="#1.1">Setting up Prerequisites</a> +<ul> +1.1.1 <a href="#1.1.1">Mandatory</a> <br /> +1.1.2 <a href="#1.1.2">Optional</a> <br /> +</ul> +1.2 <a href="#1.2">Using Binary Release</a> <br /> +1.3 <a href="#1.3">Using Source Release</a> <br /> +<ul> +1.3.1 <a href="#1.3.1">Basic Build</a> <br /> +1.3.2 <a href="#1.3.2">Build with Options</a> <br /> +<ul> +(a) <a href="#1.3.2.a">With Guththila</a> <br /> +(b) <a href="#1.3.2.b">With libxml2</a><br /> +(c) <a href="#1.3.2.c">With AMQP Transport</a><br /> +</ul> +1.3.3 <a href="#1.3.3">Building Samples</a> <br /> +</ul> +1.4 <a href="#1.4">Configuration</a> <br /> +<ul> +1.4.1 <a href="#1.4.1">AMQP Transport</a> <br /> +</ul> +1.5 <a href="#1.5">Running Samples</a> <br /> +<ul> +1.5.1 <a href="#1.5.1">HTTP Transport</a> <br /> +<ul> +(a) <a href="#1.5.1.a">Server</a> <br /> +(b) <a href="#1.5.1.b">Clients</a> <br /> +</ul> +1.5.2 <a href="#1.5.2">AMQP Transport</a> <br /> +<ul> +(a) <a href="#1.5.2.a">Server</a> <br /> +(b) <a href="#1.5.2.b">Client</a> <br /> +</ul> +</ul> +</ul> +<br /> +2. <a href="#2">Getting Axis2/C Working on Windows (Win32)</a><br /> +<ul> +2.1 <a href="#2.1">Setting up Prerequisites</a><br /> +<ul> +2.1.1 <a href="#2.1.1">Mandatory</a><br /> +2.1.2 <a href="#2.1.2">Optional</a><br /> +</ul> +2.2 <a href="#2.2">Using Binary Release</a><br /> +2.3 <a href="#2.3">Using Source Release</a><br /> +<ul> +2.3.1 <a href="#2.3.1">Setting Build Options</a><br /> +<ul> +(a) <a href="#2.3.1.a">Enable Guththila</a><br /> +(b) <a href="#2.3.1.b">Enable libxml2</a><br /> +(c) <a href="#2.3.1.c">Enable SSL Support</a><br /> +(d) <a href="#2.3.1.d">Enable libcurl</a><br /> +(e) <a href="#2.3.1.e">Setting zlib Location</a><br /> +</ul> +2.3.2 <a href="#2.3.2">Compiling the Source</a><br /> +</ul> +2.4 <a href="#2.4">Running Samples</a><br /> +<ul> +2.4.1 <a href="#2.4.1">HTTP transport</a><br /> +<ul> +(a) <a href="#2.4.1.a">Server</a><br /> +(b) <a href="#2.4.1.b">Clients</a><br /> +</ul> +</ul> +</ul> +<br /> +3. <a href="#3">Installing Apache2 Web Server Integration +Module (mod_axis2)</a><br /> +<ul> +3.1 <a href="#3.1">Building mod_axis2 from Source</a><br /> +<ul> +3.1.1 <a href="#3.1.1">On Linux</a><br /> +3.1.2 <a href="#3.1.2">On Windows (Win32)</a><br /> +</ul> +3.2 <a href="#3.2">Deploying in Apache2 Web Server</a><br /> +</ul> +<br /> +4. <a href="#4">Installing IIS (Interner Information +Server) Integration Module (mod_axis2_IIS)</a><br /> +<ul> +4.1 <a href="#4.1">Building mod_axis2_IIS from Source</a><br /> +4.2 <a href="#4.2">Deploying in the IIS</a><br /><br /> +</ul> +5. <a href="#5">Using Axis2/C with CGI</a><br /> +<ul> +5.1 <a href="#5.1">Deploying in Apache2</a><br /> +5.2 <a href="#5.2">Deploying in IIS</a><br /> +</ul> +</ul> +</div> +<br /> +<div class="section"><a name="1"></a> +<h2>1. Getting Axis2/C Working on Linux</h2> +<div class="subsection"><a name="1.1"></a> +<h3>1.1 Setting up Prerequisites</h3> +<div class="subsection"><a name="1.1.1"></a> +<h4>1.1.1 Mandatory</h4> +<p>By default Axis2/C is not dependent on any other software libraries.</p> +</div> +<div class="subsection"><a name="1.1.2"></a> +<h4>1.1.2 Optional</h4> +<p>(a) libxml2 - <a class="externalLink" href="http://www.xmlsoft.org/">http://www.xmlsoft.org/</a> +<br /> +(b) libiconv - <a class="externalLink" href="http://www.gnu.org/software/libiconv/">http://www.gnu.org/software/libiconv/</a> +<br /> +(c) zlib - <a class="externalLink" href="http://www.zlib.net/">http://www.zlib.net/</a> +<br /> +(d) Apache Qpid - </p> +<ul> +You need to have Qpid libraries installed on your +machine if you are going to use AMQP transport. It is imperative that +you compile and install Qpid from SVN source.<br /> +You can checkout Qpid SVN source from <a class="externalLink" href="https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid">https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid</a>. +</ul> +</div> +</div> +<div class="subsection"><a name="1.2"></a> +<h3>1.2 Using Binary Release</h3> +<p> +(a) Extract the binary tar package to a directory.<br /> +<br /> +(b) Set AXIS2C_HOME environment variable pointing to the location where +you have extracted Axis2/C.<br /> +<br /> +<code>$ AXIS2C_HOME='/your_path_to_axis2c'</code><br /> +<code>$ export AXIS2C_HOME</code><br /> +<br /> +NOTE : You will need to set AXIS2C_HOME only if you need to run Axis2/C +samples or tests. The reason is that the samples and test codes use +AXIS2C_HOME to get the path to Axis2/C. To write your own services or +clients this is not a requirement.<br /> +</p> +</div> +<div class="subsection"><a name="1.3"></a> +<h3>1.3 Using Source Release</h3> +<div class="subsection"><a name="1.3.1"></a> +<h4>1.3.1 Basic Build</h4> +(a) Extract the source tar package to a directory<br /> +<br /> +(b) Set AXIS2C_HOME environment variable pointing to the location where +you want to install Axis2/C.<br /> +<br /> +<code>$ AXIS2C_HOME='/your_desired_path_to_axis2c_installation'</code><br /> +<code>$ export AXIS2C_HOME</code><br /> +<br /> +NOTE : You will need to set AXIS2C_HOME only if you need to run Axis2/C +samples or tests. The reason is that the samples and test codes use +AXIS2C_HOME to get +the path to Axis2/C. To write your own services or clients this is not +a requirement.<br /> +<br /> +(c) Go to the directory where you extracted the source<br /> +<br /> +<code>$ cd /your_path_to_axis2c_source</code><br /> +<br /> +(d) Build the source<br /> +This can be done by running the following command sequence in the +directory where you have extracted the source.<br /> +<br /> +<code>$ ./configure --prefix=${AXIS2C_HOME}</code><br /> +<code>$ make</code><br /> +<code>$ make install</code><br /> +<br /> +Please run './configure --help' in respective sub directories for more +information on these configure options. <br /> +<br /> +NOTE : If you don't provide the --prefix configure option, it will by +default be installed into '/usr/local/axis2c' directory.<br /> +<br /> +You could run 'make check' to test if everything is working fine. +However,note that the test/core/clientapi/test_clientapi program would +fail unless AXIS2C_HOME points to the installed location.(It's looking +for Axis2/C +repository).This means you really should run 'make && +make install', then set 'AXIS2C_HOME=/path/to/install', and then 'make +check'. That's a little different than the usual 'make +&& make check && make install' process.<br /> +</div> +<div class="subsection"><a name="1.3.2"></a> +<h4>1.3.2 Build with Options</h4> +<div class="subsection"><a name="1.3.2.a"></a> +<h4>(a) With Guththila</h4> +You may need to try Axis2/C with Guththila XML parser. You can do it by +giving '--enable-guththila=yes' as a configure option.<br /> +<br /> +<code>$ ./configure --enable-guththila=yes [other configuration +options]</code><br /> +<code>$ make</code><br /> +<code>$ make install</code><br /> +</div> +<div class="subsection"><a name="1.3.2.b"></a> +<h4>(b) With libxml2</h4> +You may need to try Axis2/C with libxml2 XML parser. You can do it by +giving '--enable-libxml2=yes' as a configure option.<br /> +<br /> +<code>$ ./configure --enable-libxml2=yes [other configuration +options]</code><br /> +<code>$ make</code><br /> +<code>$ make install</code><br /> +</div> +<div class="subsection"><a name="1.3.2.c"></a> +<h4>(c) With AMQP Transport</h4> +You may need to try Axis2/C with the AMQP transport. You can do it by +giving '--with-qpid=/path/to/qpid/home' as a configure option.<br /> +<br /> +<code>$ ./configure --with-qpid=/path/to/qpid/home [other +configuration options]</code><br /> +<code>$ make</code><br /> +<code>$ make install</code><br /> +</div> +</div> +<div class="subsection"><a name="1.3.3"></a> +<h4>1.3.3 Building Samples</h4> +If you need to get the samples working, you also need to build the +samples.<br /> +<br /> +To build the samples:<br /> +<br /> +<code>$ export +LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${AXIS2C_HOME}/lib/</code><br /> +<code>$ cd samples</code><br /> +<code>$ ./configure --prefix=${AXIS2C_HOME} +--with-axis2=${AXIS2C_HOME}/include/axis2-1.6.0</code><br /> +<code>$ make</code><br /> +<code>$ make install</code><br /> +<br /> +Please run './configure --help' in samples folder for more information +on configure options.<br /> +<br /> +NOTE : If you don't provide a --prefix configure option, samples will +by default be installed into '/usr/local/axis2c/samples' directory.<br /> +</div> +</div> +<div class="subsection"><a name="1.4"></a> +<h3>1.4 Configuration</h3> +<div class="subsection"><a name="1.4.1"></a> +<h4>1.4.1 AMQP Transport</h4> +You need to add the following entries into the axis2.xml.<br /> +<br /> +<code><transportReceiver name="amqp" +class="axis2_amqp_receiver"> <br /> + <parameter name="qpid_broker_ip" +locked="false">127.0.0.1</parameter><br /> + <parameter name="qpid_broker_port" +locked="false">5672</parameter><br /> +</transportReceiver><br /> +<br /> +<transportSender name="amqp" class="axis2_amqp_sender"/></code> +</div> +</div> +<div class="subsection"><a name="1.5"></a> +<h3>1.5 Running Samples</h3> +<div class="subsection"><a name="1.5.1"></a> +<h4>1.5.1 HTTP Transport</h4> +<div class="subsection"><a name="1.5.1.a"></a> +<h4>(a) Server</h4> +You have to first start the axis2_http_server as follows.<br /> +<br /> +<code>$ cd ${AXIS2C_HOME}/bin</code><br /> +<code>$ ./axis2_http_server</code><br /> +<br /> +You should see the message<br /> + Started +Simple Axis2 HTTP +Server...<br /> +<br /> +This will start the simple axis server on port 9090. To see the +possible command line options run<br /> +<br /> +<code>$ ./axis2_http_server -h</code><br /> +<br /> +NOTE 1 : You may need to login as superuser to run the +axis2_http_server.<br /> +NOTE 2 : If you run into shared lib problems, set the LD_LIBRARY_PATH +as follows.<br /> + <code>$ +export +LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${AXIS2C_HOME}/lib</code><br /> +</div> +<div class="subsection"><a name="1.5.1.b"></a> +<h4>(b) Clients</h4> +When the axis2_http_server is up and running, you can run the sample +clients in a new shell as follows.<br /> +<br /> +<code>$ cd ${AXIS2C_HOME}/samples/bin</code><br /> +<code>$ ./echo</code><br /> +<br /> +This will invoke the echo service.<br /> +<br /> +<code>$ ./math</code><br /> +<br /> +This will invoke the math service.<br /> +<br /> +To see the possible command line options for sample clients run them +with '-h' option<br /> +<br /> +NOTE : If you run into shared lib problems, set the LD_LIBRARY_PATH as +follows.<br /> + <code>$ +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${AXIS2C_HOME}/lib</code> +</div> +</div> +<div class="subsection"><a name="1.5.2"></a> +<h4>1.5.2 AMQP Transport</h4> +<div class="subsection"><a name="1.5.2.a"></a> +<h4>(a) Server</h4> +Start the Qpid broker as follows.<br /> +<br /> +<code>$ cd ${QPID_HOME}/sbin</code><br /> +<code>$ ./qpidd --data-dir ./</code><br /> +<br /> +Start the axis2_amqp_server as follows.<br /> +<br /> +<code>$ cd ${AXIS2C_HOME}/bin</code><br /> +<code>$ ./axis2_amqp_server</code><br /> +<br /> +You should see the message<br /> + Started +Simple Axis2 AMQP Server...<br /> +<br /> +This will connect to the Qpid broker listening on 127.0.0.1:5672. To +see the possible command line options run<br /> +<br /> +<code>$ ./axis2_amqp_server -h</code><br /> +<br /> +NOTE 1 : You have the flexibility of starting the Qpid broker first and +then axis2_amqp_server or vise versa.<br /> +NOTE 2 : You may need to login as superuser to run the +axis2_amqp_server.<br /> +NOTE 3 : If you run into shared lib problems, set the LD_LIBRARY_PATH +as follows.<br /> + <code>$ +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${AXIS2C_HOME}/lib</code> +</div> +<div class="subsection"><a name="1.5.2.b"></a> +<h4>(b) Clients</h4> +When the axis2_amqp_server is up and running, you can run the sample +clients in a new shell as follows.<br /> +<br /> +<code>$ cd ${AXIS2C_HOME}/sample/bin/amqp</code><br /> +<code>$ ./echo_blocking</code><br /> +<br /> +This will invoke the echo service.<br /> +<br /> +To see the possible command line options for sample clients run them +with '-h' option<br /> +<br /> +NOTE : If you run into shared lib problems, set the LD_LIBRARY_PATH as +follows.<br /> + <code>$ +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${AXIS2C_HOME}/lib</code> +</div> +</div> +</div> +<div class="section"><a name="2"></a> +<h2>2. Getting Axis2/C Working on Windows (Win32)</h2> +<div class="subsection"><a name="2.1"></a> +<h3>2.1 Setting up Prerequisites</h3> +<div class="subsection"><a name="2.1.1"></a> +<h4>2.1.1 Mandatory</h4> +(a) The binaries shipped with this version are compiled with Microsoft +Visual Studio compiler (cl). And also the makefile that is shipped with +this version needs Microsoft Visual Studio compiler (cl) and nmake +build tool. <br /> +<br /> +NOTE : You can <a class="externalLink" href="http://msdn.microsoft.com/vstudio/express/downloads/">download</a> +Microsoft VS Express2005 Edition and Platform +SDK from Microsoft website. You need to add the path to Platform SDK +Include and Lib folders to the makefile in order for you to compile the +source.<br /> +</div> +<div class="subsection"><a name="2.1.2"></a> +<h4>2.1.2 Optional</h4> +(a) libxml2 [<a class="externalLink" href="http://www.zlatkovic.com/pub/libxml">http://www.zlatkovic.com/pub/libxml</a> +version >= libxml2-2.6.20.win32]<br /> +(b) iconv [<a class="externalLink" href="http://www.zlatkovic.com/pub/libxml">http://www.zlatkovic.com/pub/libxml</a> +version >= iconv-1.9.1.win32]<br /> +(c) zlib [<a class="externalLink" href="http://www.zlatkovic.com/pub/libxml">http://www.zlatkovic.com/pub/libxml</a> +version >= zlib-1.2.3.win32]<br /> +</div> +</div> +<div class="subsection"><a name="2.2"></a> +<h3>2.2 Using Binary Release</h3> +Extract the binary distribution to a folder of your choice.(example: +C:\axis2c)<br /> +The C:\axis2c folder structure is as follows:<br /> +<ul> +<li>bin - server and other executables</li> +<li>samples\bin - client sample binaries </li> +<li>samples\lib - sample libraries </li> +<li>samples\src - sample sources </li> +<li>lib - library modules</li> +<li>services - deployed services</li> +<li>modules - deployed modules</li> +<li>include - all Include files of Axis2/C</li> +<li>logs - system and client logs are written to this folder</li> +</ul> +Optionally you might require to copy the iconv.dll, libxml2.dll and zlib1.dll to C:\axis2c\lib as well.<br /> +(Or you can have these dll's in some other place and add that location +to PATH environment variable) +</div> +<div class="subsection"><a name="2.3"></a> +<h3>2.3 Using Source Release</h3> +<div class="subsection"><a name="2.3.1"></a> +<h4>2.3.1 Setting Build Options</h4> +<p>Please edit the +<source_distribution>\build\win32\configure.in file +to set the following build options. These are optional</p> +<div class="subsection"><a name="2.3.1.a"></a> +<h4>(a) Setting zlib Location</h4> +Set the ZLIB_BIN_DIR to the location where zlib is installed to<br /> +<br /> +Default location for zlib is E:\zlib-1.2.3.win32 and the folder +structure should look like the following<br /> +<br /> +<img alt="Figure: C:\zlib Folder Structure" src="images/folder_structure_zlib.jpg" /> +<br /> +You can either extract zlib to this folder or extract it to a location +of your choice and edit the configure.in file accordingly.<br /> +<br /> +NOTE : You need to have zlib1.dll in the library path.<br /> +</div> +<div class="subsection"><a name="2.3.1.b"></a> +<h4>(b) Enable Guththila</h4> +<li>Set the ENABLE_GUTHTHILA option to 1</li> +</div> +<div class="subsection"><a name="2.3.1.c"></a> +<h4>(c) Enable libxml2</h4> +<li>Set the ENABLE_LIBXML2 option to 1</li> +<li>Set the LIBXML2_BIN_DIR to the location where libxml2 is +installed to</li> +<li>Set the ICONV_BIN_DIR to the location where iconv is +installed to</li> +</div> +<div class="subsection"><a name="2.3.1.d"></a> +<h4>(d) Enable SSL Support</h4> +<li>Set ENABLE_SSL option to 1</li> +<li>Set OPENSSL_BIN_DIR to the location where OpenSSL is +installed to</li> +</div> +<div class="subsection"><a name="2.3.1.e"></a> +<h4>(e) Enable libcurl</h4> +<li>Set ENABLE_LIBCURL to 1</li> +<li>Set LIBCURL_BIN_DIR to the location where libcurl is +installed to</li> +</div> +<div class="subsection"><a name="2.3.2"></a> +<h4>2.3.2 Compiling the Source</h4> +<p>The following steps will take you through the source +compilation.</p> +<ul> +<li>Extract the source distribution to a folder of your choice. +(Example: C:\axis2c)</li> +<li>Edit the configure.in file as explained in the section 2.3.1</li> +<li>Open a DOS shell</li> +<li><code>cd C:\axis2c\build\win32</code></li> +<li>to access .Net tools, run +<ul> +<li><code>C:\axis2c\build\win32> vcvars32.bat</code></li> +</ul> +<p><strong>Note</strong>: You may have to set +the PATH environment variable to vcvars32.bat if MS Windows gives an +error indicating that it cannot find this batch file. This file is +located in <Your MS Visual Studio Install +Directory>\VC\bin directory.</p> +</li> +<li>To build the system and create the binary files in a +directory named deploy under the build directory, +<ul> +<li><code>C:\axis2c\build\win32>nmake install</code></li> +</ul> +</li> +<li><p>The deploy folder structure is as follows:</p></li> +<ul> +<li>bin - server and other executable</li> +<li>samples\bin - client sample binaries</li> +<li>samples\lib - client samples libraries</li> +<li>lib - library modules</li> +<li>services - deployed services</li> +<li>modules - deployed modules</li> +<li>include - all include files of Axis2 C</li> +<li>logs - system and client logs are written to this folder</li> +</ul> +</ul> +</div> +</div> +<div class="subsection"><a name="2.4"></a> +<h3>2.4 Running Samples</h3> +You need to set a couple of environment variables before you can run +the server and samples.<br /> +<br /> +Set the variable AXIS2C_HOME to the deploy folder (C:\axis2c)<br /> +Add the path to lib directory to the PATH variable (%AXIS2C_HOME%\lib)<br /> +<br /> +Copy iconv.dll, zlib1.dll, libxml2.dll to the %AXIS2C_HOME%\lib folder. This is +optional.<br /> +<div class="subsection"><a name="2.4.1"></a> +<h4>2.4.1 HTTP transport</h4> +<div class="subsection"><a name="2.4.1.a"></a> +<h4>(a) Server</h4> +<code>> cd %AXIS2C_HOME%\bin</code><br /> +<code>> axis2_http_server.exe </code><br /> +<br /> +You should see the message<br /> + Started +Simple Axis2 HTTP Server...<br /> +<br /> +By default the log is created under %AXIS2C_HOME%\logs folder with the +name axis2.log.<br /> +<br /> +NOTE : You may provide command line options to change the default +behaviour. Type 'axis2_http_server.exe -h' to learn about the usage +</div> +<div class="subsection"><a name="2.4.1.b"></a> +<h4>(b) Clients</h4> +Now you can run any sample client deployed under +%AXIS2C_HOME%\samples\bin<br /> +<br /> +Example:<br /> +<ul> +<code>> cd %AXIS2C_HOME%\samples\bin</code><br /> +<code>> echo.exe</code> +</ul> +</div> +</div> +</div> +</div> +<div class="section"><a name="3"></a> +<h2>3. Installing Apache2 Web Server Integration Module +(mod_axis2)</h2> +<div class="subsection"><a name="3.1"></a> +<h3>3.1 Building mod_axis2 from Source</h3> +<div class="subsection"><a name="3.1.1"></a> +<h4>3.1.1 On Linux</h4> +Provide the Apache2 include file location as a configure option<br /> +<br /> +<code>$ ./configure --with-apache2="<apache2 httpd include +files location>" [other +configure options]</code><br /> +<br /> +NOTE : Some apache2 distributions install APR (Apache Portable Runtime) +include files in a separate location which is required to build +mod_axis2.<br /> +<br /> +In that case use:<br /> +<code>$ ./configure --with-apache2="<apache2 include files +location>" --with-apr="<apr include files +location>" [other configure options]</code><br /> +<br /> +Then build the source tree<br /> +<code>$ make</code><br /> +<code>$ make install</code><br /> +<br /> +This will install mod_axis2.so into your +"<your_path_to_axis2c>/lib" +</div> +<div class="subsection"><a name="3.1.2"></a> +<h4>3.1.2 On Windows (Win32)</h4> +Provide the apache2 location in configure.in file in APACHE_BIN_DIR<br /> +<br /> +Example:<br /> +APACHE_BIN_DIR = E:\Apache22<br /> +<br /> +After compiling the sources (as described in section 2.3) build the +mod_axis2.dll by issuing the command 'nmake axis2_apache_module'.<br /> +This will build mod_axis2.dll and copy it to %AXIS2C_HOME%\lib +directory.<br /> +<br /> +Example:<br /> +C:\axis2c\build\deploy\lib </div> +</div> +<div class="subsection"><a name="3.2"></a> +<h3>3.2 Deploying in Apache2 Web Server</h3> +NOTE : To do the following tasks, you might need super user privileges +on your machine. If you are using the binary release of Axis2/C, please note that it is built with Apache 2.2.<br /> +<br /> +Copy the mod_axis2 (libmod_axis2.so.0.6.0 on Linux and mod_axis2.dll on +Windows) to "<apache2 modules directory>" as +mod_axis2.so <br /> +<br /> +Example:<br /> +<code>cp $AXIS2C_HOME/lib/libmod_axis2.so.0.6.0 +/usr/lib/apache2/modules/mod_axis2.so </code>(on Linux)<br /> +<code>copy C:\axis2c\build\deploy\lib\mod_axis2.dll +C:\Apache2\modules\mod_axis2.so </code>(on Windows)<br /> +<br /> +Edit the Apache2's configuration file (generally httpd.conf) and add +the following directives<br /> +<br /> +LoadModule axis2_module <apache2 modules +directory>/mod_axis2.so<br /> +Axis2RepoPath <axis2 repository path><br /> +Axis2LogFile <axis2 log file path><br /> +Axis2MaxLogFileSize <maximum size of log file><br /> +Axis2LogLevel LOG_LEVEL<br /> +<Location /axis2><br /> +SetHandler axis2_module<br /> +</Location><br /> +<br /> +NOTE: +<ul> +Axis2 log file path should have write access to all users because +by default Apache Web Server runs as nobody.<br /> +<br /> +If you want to use a Shared Global Pool with Apache you have to give +another entry called Axis2GlobalPoolSize. <br /> +You have to give the size of the shared global pool in MB. <br /> +If you don't set the value or if you set a negative value Apache module +doesn't create shared global pool.<br /> +<br /> +Axis2GlobalPoolSize <global pool size in mb> <br /> +</ul> +<br /> +LOG_LEVEL can be one of the followings<br /> +<ul> +<li>crit - Log critical errors only</li> +<li>error - Log errors critical errors</li> +<li>warn - Log warnings and above</li> +<li>info - Log info and above</li> +<li>debug - Log debug and above (default)</li> +<li>trace - Log trace messages</li> +</ul> +<br /> +NOTE: Use forward slashes "/" for path separators in <apache2 +modules directory>, <axis2 repository path> and +<axis2 log file path><br /> +<br /> +Make sure that the apache2 user has the correct permissions to above +paths<br /> +- Read permission to the repository<br /> +- Write permission to the log file<br /> +<br /> +Restart apache2 and test whether mod_axis2 module is loaded by typing +the URL <a href="http://localhost/axis2/services" class="externalLink">http://localhost/axis2/services</a> +in your Web browser +</div> +</div> +<div class="section"><a name="4"></a> +<h2>4. Installing IIS (Interner Information Server) Integration +Module (mod_axis2_IIS)</h2> +<div class="subsection"><a name="4.1"></a> +<h3>4.1 Building mod_axis2_IIS from Source</h3> +After compiling the source (as described in section 2.3) build the +mod_axis2.dll by issuing the command 'nmake axis2_IIS_module'.<br /> +This will build the mod_axis2_IIS.dll and copy it to %AXIS2C_HOME%\lib +directory.<br /> +<br /> +Example:<br /> +C:\axis2c\build\deploy\lib </div> +<div class="subsection"><a name="4.2"></a> +<h3>4.2 Deploying in the IIS</h3> +Add the following key to the registery.<br /> +<br /> +HKEY_LOCAL_MACHINE\SOFTWARE\Apache Axis2c\IIS ISAPI Redirector<br /> +<br /> +Under this registry key add the following entries.<br /> +<br /> +A String value with the name "axis2c_home". The value is the +AXIS2C_HOME.<br /> +Example : c:\axis2c<br /> +<br /> +A String value with the name "log_file". The value is the absolute path +of the log file.<br /> +Example: c:\axis2c\logs\axis2.log<br /> +<br /> +A String value with the name "log_level". The value can be one of the +followings.<br /> +<ul> +<li>trace - Log trace messages</li> +<li>error - Log errors critical errors</li> +<li>info - Log info and above</li> +<li>critical - Log critical errors only </li> +<li>debug - Log debug and above (default)</li> +<li>warning - Log warnings</li> +</ul> +<p> +You can add a string value with the name <code>services_url_prefix</code>. This is optional and defaults to "/services". +As an example, if you have "/web_services" as the prefix, then all the +services hosted would have the endpoint prefix of : <br /> +http://localhost/axis2/web_services.<br />Note: don't forget the / at the begining.<br /> +</p> +<p> +If you wish, you can also change the location as well by adding a string value with the name <code>axis2_location</code>. This is also optional and defaults to /axis2. +If you have /myserser as the value you can access your web services with a url like http://localhost/myserver/services. <br/>Note: Don't forget the / at the beginning.</p> +<p> + +<p>Now you can do all the registry editing using the JScript file axis2_iis_regedit.js provided with the distribution. +When you build axis2/C with the IIS module the file is copied to the root directory of the binary distribution. +Just double click it and everything will be set to the defaults. The axis2c_home is taken as the current directory, so make sure you run the file in the Axis2/C repository location (or root of the binary distribution). If you want to change the values you can +manually edit the the .js file or give it as command line arguments to the script when running the script. To run the jscript from the command line use the command <code>:\cscript axis2_iis_regedit.js optional arguments</code>. We recomend the manual editing as it is the easiest way to specify the values.</p> +<p><b>IIS 5.1 or Below</b></p> +Using the IIS management console, add a new virtual +directory to your IIS/PWS web site. The name of the virtual directory +must be <code>axis2</code>. Its +physical path should be the directory in which you placed +mod_axis2_IIS.dll (in our example it is +c:\axis2c\lib). When creating this new virtual directory, <b>assign +execute access to it</b>.</p> +<p>By using the IIS management console, add +mod_axis2_IIS.dll as a filter in your IIS/PWS web site and restart the +IIS +admin service.</p> +<p><b>IIS 6 & 7</b></p> +Using the IIS management console, add the mod_axis2_IIS.dll as a +Wildcard Script Map. +<ul> +<li>Executable should be the complete path to the +mod_axis2_IIS.dll</li> +<li>You can put any name as the name of the Wildcard Script Map</li> +</ul> +<p>Please don't add the mod_axis2_IIS.dll as a filter to IIS as +in the IIS 5.1 case.</p> +<p>Note: If the Axis2/C failed to load, verify that Axis2/C and +its dependent DLLs are in the System Path (not the user path). </p> +</div> +</div> +<div class="section"><a name="5"/> +<h2>5. Using Axis2/C with CGI</h2> +<div class="subsection"><a name="5.1"/> +<h3>5.1 Deploying in Apache2</h3> +If you haven't already done so you need to configure and set up an cgi-bin/ directory that holds your CGI scripts,where we will put Axis2/C cgi executable axis2.cgi.
+<br /><br />(Note: most of recent Apache web servers already have an cgi-bin dir set up, usually /usr/lib/cgi-bin/. )
+<br /><br />Add following to your Apache2 configuration (httpd.conf) file.
+<br /><br /><code>ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/</code> (Or some other directory of your choice)
+<br /><br />OR you can use
+<br /><code><Directory /usr/local/apache/cgi-bin/>
+<br />Options +ExecCGI
+<br /></Directory>
+<br /><br />AddHandler cgi-script .cgi</code>
+<br /><br />{ It's recomended to restrict all your cgi scripts to single ScriptAlias directory for security reasons.}
+<br /><br />Now we have to set up configuration parameters via environment variables for the cgi deployment using the SetEnv directive.
+<br /><br />{ You need to have mod_env enabled for this to work )
+<br /><br />Add the following to your apache2 configuration file (httpd.conf)
+<br /><br /><code>SetEnv AXIS2C_HOME <your path to axis2c home dir></code>
+<br /><br />( i.e. SetEnv AXIS2C_HOME /usr/local/axis2c/ )
+<br /><br />If you have chosen another alias for you cgi-bin you can also set up an +AXIS2C_URL_PREFIX environment variable, but it's not needed if you have chosen /cgi-bin/. +AXIS2C_URL_PREFIX defines your web services deployment url prefix. Lets say you have chosen URL
+/private/scripts/ for your cgi-bin URL and named your cgi exec as 'axis2.cgi',
+Then you need to set AXIS2_URL_PREFIX environment variable as follows:
+<br /><code>SetEnv AXIS2C_URL_PREFIX /private/scripts/axis2.cgi/</code>
+
+<br /><br />Now we have configured apache such that all requests with URL http://<domain-name>/cgi-bin/ requests +are located at your configured cgi folder. We have granted Apache server to execute CGI from that directory +and treat files with .cgi extensions as CGI executables. +<br /><br />Now you need to copy the Axis2/C cgi executable "axis2.cgi" located in <AXIS2C_HOME>\bin directory. </div> +<div class="subsection"><a name="5.2"/> +<h3>5.2 Deploying in IIS</h3> +<b>IIS 5.1</b> +<ol> +<li>Open your 'Internet services manager'</li> +<li>Under your computer name and 'Default Web Site' you must create an virtual + directory called 'cgi-bin' (if you haven't done so by now) so right click + 'Default Web Site' -> New -> Virtual Directory.</li> +<li>In wizard enter 'cgi-bin' as Alias.</li> +<li>Choose a directory of your choice for cgi scripts placement. (like C:\www\cgi-bin\)</li> +<li>In access permissions select Read and Execute.</li> +<li>Finish the wizard so that Virtual Directory is created.</li> +<li>Open your selected folder (i.e. C:\www\cgi-bin\) and copy axis2.cgi there.</li> +</ol> + +NOTE: +<br />Your Axis2 endpoints now looks like this when deployed under cgi. +<br />http://domain-name.com/cgi-bin/axis2.cgi/<services directory>/<service name> +<br /><br />For the echo service found under /services/ directory of Axis2, the endpoint will become +<br />http://domain-name.com/cgi-bin/axis2.cgi/services/echo +</div> +</div> +</div></div></body></html> diff --git a/xdocs/docs/mod_log/log_in_handler.c.html b/xdocs/docs/mod_log/log_in_handler.c.html new file mode 100644 index 0000000..d97cb99 --- /dev/null +++ b/xdocs/docs/mod_log/log_in_handler.c.html @@ -0,0 +1,92 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Apache Axis2/C - modules/mod_log/log_in_handler.c</title><div class="contentBox"><div class="section"><font face="Monospace"> +<font color="#808080"><i>/*<br></br> + * Licensed to the Apache Software Foundation (ASF) under one or more<br></br> + * contributor license agreements. See the NOTICE file distributed with<br></br> + * this work for additional information regarding copyright ownership.<br></br> + * The ASF licenses this file to You under the Apache License, Version 2.0<br></br> + * (the "License"); you may not use this file except in compliance with<br></br> + * the License. You may obtain a copy of the License at<br></br> + *<br></br> + * http://www.apache.org/licenses/LICENSE-2.0<br></br> + *<br></br> + * Unless required by applicable law or agreed to in writing, software<br></br> + * distributed under the License is distributed on an "AS IS" BASIS,<br></br> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br></br> + * See the License for the specific language governing permissions and<br></br> + * limitations under the License.<br></br> + */</i></font><br></br> +<br></br> +<font color="#008000">#include <axis2_handler_desc.h><br></br></font> +<font color="#008000">#include <axutil_array_list.h><br></br></font> +<font color="#008000">#include <axiom_soap_const.h><br></br></font> +<font color="#008000">#include <axiom_soap_envelope.h><br></br></font> +<font color="#008000">#include <axiom_soap_header.h><br></br></font> +<font color="#008000">#include <axiom_soap_header_block.h><br></br></font> +<font color="#008000">#include <axis2_op.h><br></br></font> +<font color="#008000">#include <axis2_msg_ctx.h><br></br></font> +<font color="#008000">#include <axis2_conf_ctx.h><br></br></font> +<font color="#008000">#include <axis2_msg_info_headers.h><br></br></font> +<font color="#008000">#include <axutil_property.h><br></br></font> +<br></br> +<font color="#000000">axis2_status_t</font> <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">axutil_log_in_handler_invoke</font>(<font color="#000000"><b>struct</b></font> <font color="#000000">axis2_handler</font> *<font color="#000000">handler</font>, <br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>,<br></br> + <font color="#000000"><b>struct</b></font> <font color="#000000">axis2_msg_ctx</font> *<font color="#000000">msg_ctx</font>);<br></br> +<br></br> +<font color="#000000">AXIS2_EXTERN</font> <font color="#000000">axis2_handler_t</font>* <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">axutil_log_in_handler_create</font>(<font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>, <br></br> + <font color="#000000">axutil_string_t</font> *<font color="#000000">name</font>) <br></br> +{<br></br> + <font color="#000000">axis2_handler_t</font> *<font color="#000000">handler</font> = <font color="#000000">NULL</font>;<br></br> + <br></br> + <font color="#000000">AXIS2_ENV_CHECK</font>(<font color="#000000">env</font>, <font color="#000000">NULL</font>);<br></br> + <br></br> + <font color="#000000">handler</font> = <font color="#000000">axis2_handler_create</font>(<font color="#000000">env</font>);<br></br> + <font color="#000000"><b>if</b></font> (!<font color="#000000">handler</font>)<br></br> + {<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">NULL</font>;<br></br> + }<br></br> + <br></br> + <font color="#000000">axis2_handler_set_invoke</font>(<font color="#000000">handler</font>, <font color="#000000">env</font>, <font color="#000000">axutil_log_in_handler_invoke</font>);<br></br> +<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">handler</font>;<br></br> +}<br></br> +<br></br> +<br></br> +<font color="#000000">axis2_status_t</font> <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">axutil_log_in_handler_invoke</font>(<font color="#000000"><b>struct</b></font> <font color="#000000">axis2_handler</font> *<font color="#000000">handler</font>, <br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>,<br></br> + <font color="#000000"><b>struct</b></font> <font color="#000000">axis2_msg_ctx</font> *<font color="#000000">msg_ctx</font>)<br></br> +{<br></br> + <font color="#000000">axiom_soap_envelope_t</font> *<font color="#000000">soap_envelope</font> = <font color="#000000">NULL</font>;<br></br> + <font color="#000000">axiom_node_t</font> *<font color="#000000">ret_node</font> = <font color="#000000">NULL</font>;<br></br> +<br></br> + <font color="#000000">AXIS2_ENV_CHECK</font>( <font color="#000000">env</font>, <font color="#000000">AXIS2_FAILURE</font>);<br></br> + <font color="#000000">AXIS2_PARAM_CHECK</font>(<font color="#000000">env</font>-><font color="#000000">error</font>, <font color="#000000">msg_ctx</font>, <font color="#000000">AXIS2_FAILURE</font>);<br></br> + <br></br> + <font color="#000000">AXIS2_LOG_INFO</font>(<font color="#000000">env</font>-><font color="#000000">log</font>, <font color="#FF0000">"Starting logging in handler ........."</font>);<br></br> + <br></br> + <font color="#000000">soap_envelope</font> = <font color="#000000">axis2_msg_ctx_get_soap_envelope</font>(<font color="#000000">msg_ctx</font>, <font color="#000000">env</font>);<br></br> + <br></br> + <font color="#000000"><b>if</b></font> (<font color="#000000">soap_envelope</font>)<br></br> + {<br></br> + <font color="#808080"><i>/* ensure SOAP buider state is in sync */</i></font><br></br> + <font color="#000000">axiom_soap_envelope_get_body</font>(<font color="#000000">soap_envelope</font>, <font color="#000000">env</font>); <br></br> + <font color="#000000">ret_node</font> = <font color="#000000">axiom_soap_envelope_get_base_node</font>(<font color="#000000">soap_envelope</font>, <font color="#000000">env</font>);<br></br> +<br></br> + <font color="#000000"><b>if</b></font>(<font color="#000000">ret_node</font>)<br></br> + {<br></br> + <font color="#000000">axis2_char_t</font> *<font color="#000000">om_str</font> = <font color="#000000">NULL</font>;<br></br> + <font color="#000000">om_str</font> = <font color="#000000">axiom_node_to_string</font>(<font color="#000000">ret_node</font>, <font color="#000000">env</font>);<br></br> + <font color="#000000"><b>if</b></font>(<font color="#000000">om_str</font>)<br></br> + {<br></br> + <font color="#000000">AXIS2_LOG_INFO</font>(<font color="#000000">env</font>-><font color="#000000">log</font>, <font color="#FF0000">"Input message: %s"</font>, <font color="#000000">om_str</font>);<br></br> + }<br></br> + }<br></br> + }<br></br> + <br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">AXIS2_SUCCESS</font>;<br></br> +}<br></br> +<br></br> +<br></br> + </font></div></div></div><div class="clear"><hr></hr></div></body></html> diff --git a/xdocs/docs/mod_log/log_out_handler.c.html b/xdocs/docs/mod_log/log_out_handler.c.html new file mode 100644 index 0000000..70bc464 --- /dev/null +++ b/xdocs/docs/mod_log/log_out_handler.c.html @@ -0,0 +1,90 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Apache Axis2/C - modules/mod_log/log_out_handler.c</title><div class="contentBox"><div class="section"><font face="Monospace"> +<font color="#808080"><i>/*<br></br> + * Licensed to the Apache Software Foundation (ASF) under one or more<br></br> + * contributor license agreements. See the NOTICE file distributed with<br></br> + * this work for additional information regarding copyright ownership.<br></br> + * The ASF licenses this file to You under the Apache License, Version 2.0<br></br> + * (the "License"); you may not use this file except in compliance with<br></br> + * the License. You may obtain a copy of the License at<br></br> + *<br></br> + * http://www.apache.org/licenses/LICENSE-2.0<br></br> + *<br></br> + * Unless required by applicable law or agreed to in writing, software<br></br> + * distributed under the License is distributed on an "AS IS" BASIS,<br></br> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br></br> + * See the License for the specific language governing permissions and<br></br> + * limitations under the License.<br></br> + */</i></font><br></br> +<br></br> +<font color="#008000">#include <axis2_handler_desc.h><br></br></font> +<font color="#008000">#include <axutil_array_list.h><br></br></font> +<font color="#008000">#include <axiom_soap_const.h><br></br></font> +<font color="#008000">#include <axiom_soap_envelope.h><br></br></font> +<font color="#008000">#include <axiom_soap_header.h><br></br></font> +<font color="#008000">#include <axiom_soap_header_block.h><br></br></font> +<font color="#008000">#include <axis2_op.h><br></br></font> +<font color="#008000">#include <axis2_msg_ctx.h><br></br></font> +<font color="#008000">#include <axis2_conf_ctx.h><br></br></font> +<font color="#008000">#include <axis2_msg_info_headers.h><br></br></font> +<font color="#008000">#include <axutil_property.h><br></br></font> +<br></br> +<font color="#000000">axis2_status_t</font> <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">axutil_log_out_handler_invoke</font>(<font color="#000000"><b>struct</b></font> <font color="#000000">axis2_handler</font> *<font color="#000000">handler</font>, <br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>,<br></br> + <font color="#000000"><b>struct</b></font> <font color="#000000">axis2_msg_ctx</font> *<font color="#000000">msg_ctx</font>);<br></br> +<br></br> +<font color="#000000">AXIS2_EXTERN</font> <font color="#000000">axis2_handler_t</font>* <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">axutil_log_out_handler_create</font>(<font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>, <br></br> + <font color="#000000">axutil_string_t</font> *<font color="#000000">name</font>) <br></br> +{<br></br> + <font color="#000000">axis2_handler_t</font> *<font color="#000000">handler</font> = <font color="#000000">NULL</font>;<br></br> + <br></br> + <font color="#000000">AXIS2_ENV_CHECK</font>(<font color="#000000">env</font>, <font color="#000000">NULL</font>);<br></br> + <br></br> + <font color="#000000">handler</font> = <font color="#000000">axis2_handler_create</font>(<font color="#000000">env</font>);<br></br> + <font color="#000000"><b>if</b></font> (!<font color="#000000">handler</font>)<br></br> + {<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">NULL</font>;<br></br> + }<br></br> + <br></br> + <font color="#000000">axis2_handler_set_invoke</font>(<font color="#000000">handler</font>, <font color="#000000">env</font>, <font color="#000000">axutil_log_out_handler_invoke</font>);<br></br> +<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">handler</font>;<br></br> +}<br></br> +<br></br> +<br></br> +<font color="#000000">axis2_status_t</font> <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">axutil_log_out_handler_invoke</font>(<font color="#000000"><b>struct</b></font> <font color="#000000">axis2_handler</font> *<font color="#000000">handler</font>, <br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>,<br></br> + <font color="#000000"><b>struct</b></font> <font color="#000000">axis2_msg_ctx</font> *<font color="#000000">msg_ctx</font>)<br></br> +{<br></br> + <font color="#000000">axiom_soap_envelope_t</font> *<font color="#000000">soap_envelope</font> = <font color="#000000">NULL</font>;<br></br> + <font color="#000000">axiom_node_t</font> *<font color="#000000">ret_node</font> = <font color="#000000">NULL</font>;<br></br> +<br></br> + <font color="#000000">AXIS2_ENV_CHECK</font>( <font color="#000000">env</font>, <font color="#000000">AXIS2_FAILURE</font>);<br></br> + <font color="#000000">AXIS2_PARAM_CHECK</font>(<font color="#000000">env</font>-><font color="#000000">error</font>, <font color="#000000">msg_ctx</font>, <font color="#000000">AXIS2_FAILURE</font>);<br></br> + <br></br> + <font color="#000000">AXIS2_LOG_INFO</font>(<font color="#000000">env</font>-><font color="#000000">log</font>, <font color="#FF0000">"Starting logging out handler ........."</font>);<br></br> + <br></br> + <font color="#000000">soap_envelope</font> = <font color="#000000">axis2_msg_ctx_get_soap_envelope</font>(<font color="#000000">msg_ctx</font>, <font color="#000000">env</font>);<br></br> + <br></br> + <font color="#000000"><b>if</b></font> (<font color="#000000">soap_envelope</font>)<br></br> + {<br></br> + <font color="#000000">ret_node</font> = <font color="#000000">axiom_soap_envelope_get_base_node</font>(<font color="#000000">soap_envelope</font>, <font color="#000000">env</font>);<br></br> +<br></br> + <font color="#000000"><b>if</b></font>(<font color="#000000">ret_node</font>)<br></br> + {<br></br> + <font color="#000000">axis2_char_t</font> *<font color="#000000">om_str</font> = <font color="#000000">NULL</font>;<br></br> + <font color="#000000">om_str</font> = <font color="#000000">axiom_node_to_string</font>(<font color="#000000">ret_node</font>, <font color="#000000">env</font>);<br></br> + <font color="#000000"><b>if</b></font>(<font color="#000000">om_str</font>)<br></br> + {<br></br> + <font color="#000000">AXIS2_LOG_INFO</font>(<font color="#000000">env</font>-><font color="#000000">log</font>, <font color="#FF0000">"Output message: %s"</font>, <font color="#000000">om_str</font>);<br></br> + }<br></br> + }<br></br> + }<br></br> + <br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">AXIS2_SUCCESS</font>;<br></br> +}<br></br> +<br></br> +<br></br> + </font></div></div></div><div class="clear"><hr></hr></div></body></html> diff --git a/xdocs/docs/mod_log/mod_log.c.html b/xdocs/docs/mod_log/mod_log.c.html new file mode 100644 index 0000000..5a9a508 --- /dev/null +++ b/xdocs/docs/mod_log/mod_log.c.html @@ -0,0 +1,143 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Apache Axis2/C - modules/mod_log/mod_log.c</title><div class="contentBox"><div class="section"><font face="Monospace"> +<font color="#808080"><i>/*<br></br> + * Licensed to the Apache Software Foundation (ASF) under one or more<br></br> + * contributor license agreements. See the NOTICE file distributed with<br></br> + * this work for additional information regarding copyright ownership.<br></br> + * The ASF licenses this file to You under the Apache License, Version 2.0<br></br> + * (the "License"); you may not use this file except in compliance with<br></br> + * the License. You may obtain a copy of the License at<br></br> + *<br></br> + * http://www.apache.org/licenses/LICENSE-2.0<br></br> + *<br></br> + * Unless required by applicable law or agreed to in writing, software<br></br> + * distributed under the License is distributed on an "AS IS" BASIS,<br></br> + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br></br> + * See the License for the specific language governing permissions and<br></br> + * limitations under the License.<br></br> + */</i></font><br></br> +<font color="#008000">#include <axis2_module.h><br></br></font> +<font color="#008000">#include <axis2_conf_ctx.h><br></br></font> +<br></br> +<font color="#008000">#include "mod_log.h"<br></br></font> +<br></br> +<font color="#000000">axis2_status_t</font> <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">axis2_mod_log_shutdown</font>(<font color="#000000">axis2_module_t</font> *<font color="#000000">module</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>);<br></br> +<br></br> +<font color="#000000">axis2_status_t</font> <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">axis2_mod_log_init</font>(<br></br> + <font color="#000000">axis2_module_t</font> *<font color="#000000">module</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>,<br></br> + <font color="#000000">axis2_conf_ctx_t</font> *<font color="#000000">conf_ctx</font>,<br></br> + <font color="#000000">axis2_module_desc_t</font> *<font color="#000000">module_desc</font>);<br></br> +<br></br> +<font color="#000000">axis2_status_t</font> <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">axis2_mod_log_fill_handler_create_func_map</font>(<font color="#000000">axis2_module_t</font> *<font color="#000000">module</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>);<br></br> +<br></br> +<font color="#808080"><i>/**<br></br> + * Module operations struct variable with functions assigned to members<br></br> + */</i></font><br></br> +<font color="#800000">static</font> <font color="#800000">const</font> <font color="#000000">axis2_module_ops_t</font> <font color="#000000">log_module_ops_var</font> = {<br></br> + <font color="#000000">axis2_mod_log_init</font>,<br></br> + <font color="#000000">axis2_mod_log_shutdown</font>,<br></br> + <font color="#000000">axis2_mod_log_fill_handler_create_func_map</font><br></br> +};<br></br> +<br></br> +<font color="#000000">axis2_module_t</font> *<br></br> +<font color="#000000">axis2_mod_log_create</font>(<font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>)<br></br> +{<br></br> + <font color="#000000">axis2_module_t</font> *<font color="#000000">module</font> = <font color="#000000">NULL</font>;<br></br> + <font color="#000000">module</font> = <font color="#000000">AXIS2_MALLOC</font>(<font color="#000000">env</font>-><font color="#000000">allocator</font>, <br></br> + <font color="#000000"><b>sizeof</b></font>(<font color="#000000">axis2_module_t</font>));<br></br> +<br></br> + <font color="#808080"><i>/* initialize operations */</i></font><br></br> + <font color="#000000">module</font>-><font color="#000000">ops</font> = &<font color="#000000">log_module_ops_var</font>;<br></br> +<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">module</font>;<br></br> +}<br></br> +<br></br> +<font color="#000000">axis2_status_t</font> <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">axis2_mod_log_init</font>(<br></br> + <font color="#000000">axis2_module_t</font> *<font color="#000000">module</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>,<br></br> + <font color="#000000">axis2_conf_ctx_t</font> *<font color="#000000">conf_ctx</font>,<br></br> + <font color="#000000">axis2_module_desc_t</font> *<font color="#000000">module_desc</font>)<br></br> +{<br></br> + <font color="#808080"><i>/* Any initialization stuff related to this module can be here */</i></font><br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">AXIS2_SUCCESS</font>;<br></br> +}<br></br> +<br></br> +<font color="#000000">axis2_status_t</font> <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">axis2_mod_log_shutdown</font>(<font color="#000000">axis2_module_t</font> *<font color="#000000">module</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>)<br></br> +{<br></br> + <font color="#000000"><b>if</b></font>(<font color="#000000">module</font>-><font color="#000000">handler_create_func_map</font>)<br></br> + {<br></br> + <font color="#000000">axutil_hash_free</font>(<font color="#000000">module</font>-><font color="#000000">handler_create_func_map</font>, <font color="#000000">env</font>);<br></br> + }<br></br> + <br></br> + <font color="#000000"><b>if</b></font>(<font color="#000000">module</font>)<br></br> + {<br></br> + <font color="#000000">AXIS2_FREE</font>(<font color="#000000">env</font>-><font color="#000000">allocator</font>, <font color="#000000">module</font>);<br></br> + }<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">AXIS2_SUCCESS</font>; <br></br> +}<br></br> +<br></br> +<font color="#000000">axis2_status_t</font> <font color="#000000">AXIS2_CALL</font><br></br> +<font color="#000000">axis2_mod_log_fill_handler_create_func_map</font>(<font color="#000000">axis2_module_t</font> *<font color="#000000">module</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>)<br></br> +{<br></br> + <font color="#000000">AXIS2_ENV_CHECK</font>(<font color="#000000">env</font>, <font color="#000000">AXIS2_FAILURE</font>);<br></br> + <br></br> + <font color="#000000">module</font>-><font color="#000000">handler_create_func_map</font> = <font color="#000000">axutil_hash_make</font>(<font color="#000000">env</font>);<br></br> + <font color="#000000"><b>if</b></font>(!<font color="#000000">module</font>-><font color="#000000">handler_create_func_map</font>)<br></br> + {<br></br> + <font color="#000000">AXIS2_ERROR_SET</font>(<font color="#000000">env</font>-><font color="#000000">error</font>, <font color="#000000">AXIS2_ERROR_NO_MEMORY</font>, <br></br> + <font color="#000000">AXIS2_FAILURE</font>);<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">AXIS2_FAILURE</font>;<br></br> + }<br></br> +<br></br> + <font color="#808080"><i>/* add in handler */</i></font><br></br> + <font color="#000000">axutil_hash_set</font>(<font color="#000000">module</font>-><font color="#000000">handler_create_func_map</font>, <font color="#FF0000">"LoggingInHandler"</font>, <br></br> + <font color="#000000">AXIS2_HASH_KEY_STRING</font>, <font color="#000000">axutil_log_in_handler_create</font>);<br></br> +<br></br> + <font color="#808080"><i>/* add out handler */</i></font><br></br> + <font color="#000000">axutil_hash_set</font>(<font color="#000000">module</font>-><font color="#000000">handler_create_func_map</font>, <font color="#FF0000">"LoggingOutHandler"</font>, <br></br> + <font color="#000000">AXIS2_HASH_KEY_STRING</font>, <font color="#000000">axutil_log_out_handler_create</font>);<br></br> + <br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">AXIS2_SUCCESS</font>;<br></br> +}<br></br> +<br></br> +<font color="#808080"><i>/**<br></br> + * Following functions are expected to be there in the module lib <br></br> + * that helps to create and remove module instances <br></br> + */</i></font><br></br> +<br></br> +<font color="#000000">AXIS2_EXPORT</font> <font color="#800000">int</font> <br></br> +<font color="#000000">axis2_get_instance</font>(<font color="#000000">axis2_module_t</font> **<font color="#000000">inst</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>)<br></br> +{<br></br> + *<font color="#000000">inst</font> = <font color="#000000">axis2_mod_log_create</font>(<font color="#000000">env</font>);<br></br> + <font color="#000000"><b>if</b></font>(!(*<font color="#000000">inst</font>))<br></br> + {<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">AXIS2_FAILURE</font>;<br></br> + }<br></br> +<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">AXIS2_SUCCESS</font>;<br></br> +}<br></br> +<br></br> +<font color="#000000">AXIS2_EXPORT</font> <font color="#800000">int</font> <br></br> +<font color="#000000">axis2_remove_instance</font>(<font color="#000000">axis2_module_t</font> *<font color="#000000">inst</font>,<br></br> + <font color="#800000">const</font> <font color="#000000">axutil_env_t</font> *<font color="#000000">env</font>)<br></br> +{<br></br> + <font color="#000000">axis2_status_t</font> <font color="#000000">status</font> = <font color="#000000">AXIS2_FAILURE</font>;<br></br> + <font color="#000000"><b>if</b></font> (<font color="#000000">inst</font>)<br></br> + {<br></br> + <font color="#000000">status</font> = <font color="#000000">axis2_mod_log_shutdown</font>(<font color="#000000">inst</font>, <font color="#000000">env</font>);<br></br> + }<br></br> + <font color="#000000"><b>return</b></font> <font color="#000000">status</font>;<br></br> +}<br></br> +<br></br> +<br></br> + </font></div></div></div><div class="clear"><hr></hr></div></body></html> diff --git a/xdocs/docs/mod_log/module.xml b/xdocs/docs/mod_log/module.xml new file mode 100644 index 0000000..8518b20 --- /dev/null +++ b/xdocs/docs/mod_log/module.xml @@ -0,0 +1,19 @@ +<module name="logging" class="axis2_mod_log"> + <inflow> + <handler name="LoggingInHandler" class="axis2_mod_log"> + <order phase="PreDispatch"/> + </handler> + </inflow> + + <outflow> + <handler name="LoggingOutHandler" class="axis2_mod_log"> + <order phase="MessageOut"/> + </handler> + </outflow> + + <Outfaultflow> + <handler name="LoggingOutHandler" class="axis2_mod_log"> + <order phase="MessageOut"/> + </handler> + </Outfaultflow> +</module> diff --git a/xdocs/docs/om_tutorial.html b/xdocs/docs/om_tutorial.html new file mode 100644 index 0000000..70eb038 --- /dev/null +++ b/xdocs/docs/om_tutorial.html @@ -0,0 +1,547 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Apache Axis2/C - AXOM Tutorial</title><h2>Apache Axis2/C AXIOM Tutorial</h2><div class="subsection"><a name="Contents"></a><h3>Contents</h3><ul> + <li><a href="#Introduction">Introduction</a> + <ul> + <li><a href="#What_is_OM">What is AXIOM?</a></li> + <li><a href="#For_Whom_is_This_Tutorial">For whom is this + tutorial?</a></li> + <li><a href="#What_is_Pull_Parsing">What is Pull Parsing?</a></li> + <li><a href="#Features_of_OM">Features of AXIOM</a></li> + <li><a href="#Where_Does_SOAP_Come_into_Play">Where does SOAP come into + play?</a></li> + </ul> + </li> + <li><a href="#Working_with_OM">Working with AXIOM</a> + <ul> + <li><a href="#Env">Axis2/C Environment</a></li> + <li><a href="#Creation">Building AXIOM</a></li> + <li><a href="#Addition_and_Detaching_of_Nodes">Adding and Detaching + Nodes</a></li> + <li><a href="#Traversing">Traversing</a></li> + <li><a href="#Serialization">Serialization</a></li> + <li><a href="#Reader_and_Writer">Using axiom_xml_reader and + axiom_xml_writer</a></li> + <li><a href="#Mem_Leaks">How to avoid memory leaks and double frees + when using AXIOM</a></li> + <li><a href="#Complete_Sample">Complete Sample</a></li> + </ul> + </li> +</ul><p><a id="Introduction"></a></p></div><div class="subsection"><a name="Introduction"></a><h3>Introduction</h3><p><a id="What_is_OM"></a></p></div><div class="subsection"><a name="What_is_AXIOM_"></a><h3>What is AXIOM?</h3><p>AXIOM stands for AXis Object Model and refers to the XML infoset model +that is developed for Apache Axis2. XML infoset refers to the information +included inside the XML. For programmatical manipulation, it is convenient to +have a representation of this XML infoset in a language specific manner. DOM +and JDOM are two such XML models. AXIOM is conceptually similar to such an +XML model in its external behavior but deep down it is very different.</p><p>The objective of this tutorial is to introduce the basics of AXIOM/C and +explain the best practices while using AXIOM.</p><p>AXIOM/C is a C equivalant of AXIOM/Java. We have done our best to get +almost the same kind of API in C.</p><p><a id="For_Whom_is_This_Tutorial"></a></p></div><div class="subsection"><a name="For_whom_is_this_tutorial_"></a><h3>For whom is this tutorial?</h3><p>This tutorial can be used by anybody who is interested and wants to go +deeper in to AXIOM/C. Knowledge in similar object models such as DOM will be +helpful in understanding AXIOM, but such knowledge has not been assumed. +Several links are listed in the links section that will help you understand +the basics of XML.</p><p><a id="What_is_Pull_Parsing"></a></p></div><div class="subsection"><a name="What_is_Pull_Parsing__"></a><h3>What is Pull Parsing ?</h3><p> +Pull parsing is a new trend in XML processing. The previously popular XML +processing frameworks such as DOM were "push-based", which means that the +control of parsing was with the parser itself. This approach is fine and easy +to use, but it is not efficient in handling large XML documents since a +complete memory model will be generated in the memory. Pull parsing inverts +the control and hence the parser only proceeds at the user's command. The +user can decide to store or discard events generated from the parser. AXIOM +is based on pull parsing. To learn more about XML pull parsing, see the <a href="http://www.bearcave.com/software/java/xml/xmlpull.html" class="externalLink" title="External Link">XML pull +parsing introduction</a>. <a id="Features_of_OM"></a></p></div><div class="subsection"><a name="Features_of_AXIOM"></a><h3>Features of AXIOM</h3><p>AXIOM is a lightweight, differed built XML infoset representation based on +StAX API derived from <a href="http://www.jcp.org/aboutJava/communityprocess/first/jsr173/" class="externalLink" title="External Link">JSR +173</a>, which is the standard streaming pull parser API. AXIOM can be +manipulated as flexibly as any other object model such as <a href="http://www.jdom.org/" class="externalLink" title="External Link">JDOM</a>, but underneath, the objects will be +created only when they are absolutely required. This leads to much less +memory-intensive programming.</p><p>The following is a short feature overview of AXIOM.</p><ul> + <li>Lightweight: AXIOM is specifically targeted to be lightweight. This is + achieved by reducing the depth of the hierarchy, the number of methods, + and the attributes enclosed in the objects. This makes the objects less + memory intensive.</li> + <li>Differed building: By far, this is the most important feature of AXIOM. + The objects are not made unless a need arises for them. This passes the + control of building to the object model itself, rather than an external + builder.</li> + <li>Pull based: For a differed building mechanism, a pull-based parser is + required. AXIOM is based on StAX, which is the standard pull parser API. + <p>Since different XML parsers offer different kinds of pull parser APIs, + we define an API derived from StAX. That API is defined in + <code>axiom_xml_reader.h</code>. Similarly, we define an XML writer API + in <code>axiom_xml_writer.h</code>. These two APIs work as an abstarction + layer between any XML parser and AXIOM. So any parser that is going to be + used for AXIOM should implement the <code>axiom_xml_reader</code> API and + the <code>axiom_xml_writer</code> API using a wrapper layer.</p> + <p></p> + <p>Currenly we use <a href="http://xmlsoft.org/downloads.html" class="externalLink" title="External Link">Libxml2</a> as our default XML + parser.</p> + <p></p> + </li> +</ul><p class="img"><img alt="" src="images/archi006.jpg" class="img" width="490" height="282"></img></p><p>The AXIOM Builder wraps the raw XML character stream through the +<code>axiom_xml_reader</code> API. Hence the complexities of the pull event +stream are hidden from the user.</p><p><a id="Where_Does_SOAP_Come_into_Play"></a></p></div><div class="subsection"><a name="Where_does_SOAP_come_into_play_"></a><h3>Where does SOAP come into play?</h3><p>In a nutshell, SOAP is an information exchange protocol based on XML. SOAP +has a defined set of XML elements that should be used in messages. Since +Axis2 is a "SOAP Engine" and AXIOM is designed for Axis2, a SOAP specific API +was implemented on top of AXIOM. We have defined a number of structs to +represent SOAP constructs, which wrap general AXIOM structures. Learn more +about <a href="http://www.w3schools.com/SOAP/soap_intro.asp" class="externalLink" title="External Link">SOAP</a>.</p><p> +<a id="Working_with_OM"></a></p></div><div class="subsection"><a name="Working_with_AXIOM"></a><h3>Working with AXIOM</h3><p><a id="Env"></a></p></div><div class="subsection"><a name="Axis2_C_Environment"></a><h3>Axis2/C Environment</h3><p>Before starting the discussion on AXIOM, it is necessary to get a good +understanding of the basics of Axis2/C. Axis2/C is designed to be pluggable +to any system written in C or C++. Therefore, Axis2/C has abstracted the +functionalities that differ from system to system into a structure +<code>axutil_env_t</code>, which we refer to as the Axis2 environment. The +environment holds <code>axutil_allocator_t</code>, which is used for memory +allocation and deallocation, <code>axutil_error_t</code>, which is used for +error reporting, <code>axutil_log_t</code>, which is used for logging +mechanisms, and <code>axutil_thread_t</code> which is used for threading +mechanisms.</p><p>When creating the Axis2 environment, the first thing is to create the +allocator.</p><p><code>axutil_allocator_t *allocator = NULL;</code></p><p><code>allocator = axutil_allocator_init(NULL);</code></p><p>We pass <code>NULL</code> to the above function in order to use the +default allocator functions. Then the allocator functions will use the +<code>malloc</code>, and <code>free</code> functions for memory management. +If you have your own allocator structure, with custom malloc and free +functions, you can pass them instead.</p><p>Convenient macros <code>AXIS2_MALLOC</code> and <code>AXIS2_FREE</code> +are defined to use allocator functions (please have a look at +<code>axutil_allocator.h</code> for more information).</p><p>In a similar fashion, you can create the error and log structures.</p><p><code>axutil_log_t *log = NULL;</code></p><p><code>axutil_error_t *error = NULL;</code></p><p><code>log = axutil_log_create(allocator, NULL, NULL);</code></p><p><code>log = axutil_log_create(allocator, NULL, "mylog.log");</code></p><p></p><p>Now we can create the environment by parsing the allocator, error and log +to <code>axutil_env_create_with_error_log()</code> function.</p><p><code>axutil_env_t *env = NULL;</code></p><p><code>env = axutil_env_create_with_error_log(allocator, error, +log);</code></p><p>Apart from the above abstraction, all the other library functions used are +ANSI C compliant. Further, platform dependent functions are also +abstracted.</p><p>As a rule of thumb, all <code>create</code> functions take a pointer to +the environment as its first argument, and all the other functions take +pointer to this particular struct as the first argument, and a pointer to the +environment as the second argument. (Please refer to our <a href="../coding_conventions.html">coding convention page</a> to learn more +about this.)</p><p>Example,</p><p><code>axiom_node_t *node = NULL;</code></p><p><code>axiom_node_t *child = NULL;</code></p><p><code>node = axiom_node_create(env);</code></p><p><code>child = axiom_node_get_first_child(node, env);</code></p><p>Note that we are passing the node (pointer to <code>axiom_node_t</code> ) +as the first argument and the pointer to the environment as the second.</p><p><a id="Creation"></a></p></div><div class="subsection"><a name="Building_AXIOM"></a><h3>Building AXIOM</h3><p>This section explains how AXIOM can be built either from an existing +document or programmatically. AXIOM provides a notion of a builder to create +objects. Since AXIOM is tightly bound to StAX, a StAX compliant reader should +be created first with the desired input stream.</p><p>In our AXIOM implementation, we define a struct <code>axiom_node_t</code> +which acts as the container of the other structs. <code>axiom_node_t</code> +maintains the links that form the linked list used to hold the AXIOM +structure.</p><p>To traverse this structure, the functions defined in +<code>axiom_node.h</code> must be used. To access XML information, the 'data +element' struct stored in <code>axiom_node_t</code> must be obtained using +the <code>axiom_node_get_data_element</code> function. The type of the struct +stored in the <code>axiom_node_t</code> struct can be obtained by the +<code>axiom_node_get_node_type</code> function. When we create +<code>axiom_element_t</code>, <code>axiom_text_t</code> etc., it is required +to parse a double pointer to the node struct as the last parameter of the +<code>create</code> function, so that the corresponding node struct can be +referenced using that pointer.</p><p>Example</p><p><code>axiom_node_t *my_node = NULL;</code></p><p><code>axiom_element_t *my_ele = NULL;</code></p><p><code>my_ele = axiom_element_create(env, NULL, "MY_ELEMENT", NULL, +&my_node);</code></p><p></p><p>Now if we call the <code>axiom_node_get_node_type</code> function on the +<code>my_node</code> pointer, it will return <code>AXIOM_ELEMENT</code>.</p><p><b>Code Listing 1</b></p> + <div class="source"><pre>axiom_xml_reader_t *xml_reader = NULL; +axiom_stax_builder_t *om_builder = NULL; +axiom_soap_builder_t *soap_builder = NULL; +axiom_soap_envelope_t *soap_envelope = NULL; + +xml_reader = axiom_xml_reader_create_for_file(env, "test_soap.xml", NULL); + +om_builder = axiom_stax_builder_create(env, xml_reader); + +soap_builder = axiom_soap_builder_create(env, om_builder , AXIOM_SOAP11_SOAP_ENVELOPE_NAMESPACE_URI); + +soap_envelope = axiom_soap_builder_get_soap_envelope(soap_builder, env); + +</pre></div> + <p>As the example shows, creating an AXIOM from <code>xml_reader</code> is +pretty straight forward. Elements and nodes can be created programmatically +to modify the structure as well. Currently AXIOM has two builders, namely the +<code>axiom_stax_builder_t</code> and the <code>axiom_soap_builder_t</code>. +These builders provide the necessary information to the XML infoset model to +build the AXIOM tree.</p><p><b>Code Listing 2</b></p> + <div class="source"><pre>axiom_namespace_t *ns1 = NULL; +axiom_namespace_t *ns2 = NULL; + +axiom_element_t* root_ele = NULL; +axiom_node_t* root_ele_node = NULL; + +axiom_element_t *ele1 = NULL; +axiom_node_t *ele1_node = NULL; + +ns1 = axiom_namespace_create(env, "bar", "x"); +ns2 = axiom_namespace_create(env, "bar1", "y"); + +root_ele = axiom_element_create(env, NULL, "root", ns1, &root_ele_node); +ele1 = axiom_element_create(env, root_node, "foo1", ns2, &ele1_node); + +</pre></div> + <p>Several differences exist between a programmatically created +<code>axiom_node_t</code> and a conventionally built +<code>axiom_node_t</code>. The most important difference is that the latter +will have a pointer to its builder, where as the former does not have a +builder.</p><p>The SOAP struct hierarchy is made in the most natural way for a +programmer. It acts as a wrapper layer on top of the AXIOM implementation. +The SOAP structs wrap the corresponding <code>axiom_node_t</code> structs to +store XML information.</p><p><a id="Addition_and_Detaching_of_Nodes"></a></p></div><div class="subsection"><a name="Adding_and_Detaching_Nodes"></a><h3>Adding and Detaching Nodes</h3><p>Addition and removal methods are defined in the <code>axiom_node.h</code> +header file.</p><p><b>Code Listing 3</b></p><p>Add child operation</p> + <div class="source"><pre>axis2_status_t +axiom_node_add_child(axiom_node_t *om_node, + const axutil_env_t *env, + axiom_node_t *child_node); + +</pre></div> + <p>Detach operation</p> + <div class="source"><pre>axiom_node_t * +axiom_node_detach(axiom_node_t *om_node, + const axutil_env_t *env); + +</pre></div> + <p>The detach operation resets the links and removes a node from the AXIOM +tree.</p><p>This code segment shows how child addition can be done.</p><p><b>Code Listing 4</b></p> + <div class="source"><pre>axiom_node_t *foo_node = NULL; +axiom_element_t *foo_ele = NULL; +axiom_node_t *bar_node = NULL; +axiom_element_t *bar_ele = NULL; + +foo_ele = axiom_element_create(env, NULL, "FOO", NULL, &foo_node); +bar_ele = axiom_element_create(env, NULL, "BAR", NULL. &bar_node); +axiom_node_add_child(foo_node, env, bar_node); + +</pre></div> + <p>Alternatively, we can pass the <code>foo_node</code> as the parent node at +the time of creating the <code>bar_ele</code> as follows.</p> + <div class="source"><pre> bar_ele = axiom_element_create(env, foo_node, "BAR", NULL, &bar_node); + +</pre></div> + <p>The following shows important methods available in +<code>axiom_element</code> to be used to deal with namespaces.</p><p><b>Code Listing 5</b></p> + <div class="source"><pre>axiom_namespace_t * +axiom_element_declare_namespace(axiom_element_t *om_ele, + const axutil_env_t *env, + axiom_node_t *om_node, + axiom_namespace_t *om_ns); + +axiom_namespace_t * +axiom_element_find_namespace(axiom_element_t *om_ele, + const axutil_env_t *env, + axiom_node_t *om_node, + axis2_char_t *uri, + axis2_char_t *prefix); + +axiom_namespace_t * +axiom_element_find_declared_namespace(axiom_element_t *om_element, + const axutil_env_t *env, + axis2_char_t *uri, + axis2_char_t *prefix); + +axis2_status_t +axiom_element_set_namespace(axiom_element_t *om_element, + const axutil_env_t *env, + axiom_namespace_t *ns, + axiom_node_t *element_node); + +</pre></div> + <p>An <code>axiom_element</code> has a namespace list, the declared +namespaces, and a pointer to its own namespace if one exists.</p><p>The <code>axiom_element_declare_namespace</code> function is straight +forward. It adds a namespace to the declared namespace list. Note that a +namespace that is already declared will not be declared again.</p><p><code>axiom_element_find_namespace</code> is a very handy method to locate +a namespace in the AXIOM tree. It searches for a matching namespace in its +own declared namespace list and jumps to the parent if it's not found. The +search progresses up the tree until a matching namespace is found or the root +has been reached.</p><p><code>axiom_element_find_declared_namespace</code> can be used to search +for a namespace in the current element's declared namespace list.</p><p><code>axiom_element_set_namespace</code> sets <code>axiom_element</code>'s +own namespace. Note that an element's own namespace should be declared in its +own namespace declaration list or in one of its parent elements. This method +first searches for a matching namespace using +<code>axiom_element_find_namespace</code> and if a matching namespace is not +found, a namespace is declared to this <code>axiom_element</code>'s namespace +declarations list before setting the own namespace reference.</p><p>The following sample code segment shows how the namespaces are dealt with +in AXIOM.</p><p><b>Code Listing 6</b></p> + <div class="source"><pre>axiom_namespace_t *ns1 = NULL; +axiom_namespace_t *ns2 = NULL; +axiom_namespace_t *ns3 = NULL; + +axiom_node_t *root_node = NULL; +axiom_element_t *root_ele = NULL; + +axiom_node_t *ele1_node = NULL; +axiom_element_t *ele1 = NULL; + +axiom_node_t *text_node = NULL; +axiom_text_t *om_text = NULL; + +ns1 = axiom_namespace_create(env, "bar", "x"); +ns2 = axiom_namespace_create(env, "bar1", "y"); + +root_ele = axiom_element_create(env, NULL , "root", ns1, &root_node); +ele1 = axiom_element_create(env, root_node, "foo", ns2, &ele1_node); +om_text = axiom_text_create(env, ele1_node, "blah", &text_node); + +</pre></div> + <p></p><p>Serialization of the root element produces the following XML:</p> + <div class="source"><pre><x:root xmlns:x="bar"> + <y:foo xmlns:y="bar1">blah</y:foo> +</x:root> + +</pre></div> + <p>If we want to produce</p> + <div class="source"><pre><x:foo xmlns:x="bar" xmlns:y="bar1">Test</x:foo> + +</pre></div> + <p>we can use set_namespace and declare namespace functions as follows.</p> + <div class="source"><pre>axiom_node_t *foo_node = NULL; +axiom_element_t *foo_ele = NULL; +axiom_namespace_t *ns1 = NULL; +axiom_namespace_t *ns2 = NULL; + +foo_ele = axiom_element_create(env, NULL,"foo" ,NULL, &foo_node); + +ns1 = axiom_namespace_create(env, "bar", "x"); +ns2 = axiom_namespace_create(env, "bar1","y"); + +axiom_element_set_namespace(foo_ele, env, ns1, foo_node); +axiom_element_declare_namespace(foo_ele, env, ns2, foo_node); +axiom_element_set_text(foo_ele, env, "Test", &foo_node); +</pre></div> + <p><a id="Traversing"></a></p></div><div class="subsection"><a name="Traversing"></a><h3>Traversing</h3><p>Traversing the AXIOM structure can be done by obtaining an iterator +struct. You can either call the appropriate function on an AXIOM element or +create the iterator manually. AXIOM/C offers three iterators to traverse the +AXIOM structure. They are:</p><ul> + <li>axiom_children_iterator_t</li> + <li>axiom_child_element_iterator_t</li> + <li>axiom_children_qname_iterator_t</li> +</ul><p>The iterator supports the 'AXIOM way' of accessing elements and is more +convenient than a list for sequential access. The following code sample shows +how the children can be accessed. The children can be of type +<code>AXIOM_TEXT</code> or <code>AXIOM_ELEMENT</code>.</p><p><b>Code Listing 7</b></p> + <div class="source"><pre>axiom_children_iterator_t *children_iter = NULL; +children_iter = axiom_element_get_children(om_ele, env, om_node); +if(NULL != children_iter ) +{ + while(axiom_children_iterator_has_next(children_iter, env)) + { + axiom_node_t *node = NULL; + node = axiom_children_iterator_next(children_iter, env); + if(NULL != node) + { + if(axiom_node_get_node_type(node, env) == AXIOM_ELEMENT) + { + /* processing logic goes here */ + } + } + + } +} + +</pre></div> + <p>Apart from this, every <code>axiom_node_t</code> struct has links to its +siblings. If a thorough navigation is needed, the +<code>axiom_node_get_next_sibling()</code> and +<code>axiom_node_get_previous_sibling()</code> functions can be used. A +restrictive set can be chosen by using +<code>axiom_element_xxx_with_qname()</code> methods. The +<code>axiom_element_get_first_child_with_qname()</code> method returns the +first child that matches the given <code>axutil_qname_t</code> and +<code>axiom_element_get_children_with_qname()</code> returns +<code>axiom_children_qname_iterator_t</code> which can be used to traverse +all the matching children. The advantage of these iterators is that they +won't build the whole object structure at once; it builds only what is +required.</p><table class="bodyTable"><tbody> + <tr class="a"><td><img src="images/OM005.gif" alt="" width="35" height="57"></img></td><td class="special-td">Internally, all iterator implementations stay + one step ahead of their apparent location to provide the correct + value for the <code>has_next()</code> function . This hidden + advancement can build elements that are not intended to be built at + all.</td><td></td></tr> + </tbody></table><p> + +</p><p></p><p><a id="Serialization"></a></p></div><div class="subsection"><a name="Serialization"></a><h3>Serialization</h3><p>AXIOM can be serialized using the <code>axiom_node_serialize</code> +function. The serialization uses <code>axiom_xml_writer.h</code> and +<code>axiom_output.h</code> APIs.</p><p>Here is an example that shows how to write the output to the console (we +have serialized the SOAP envelope created in code listing 1).</p><p><b>Code Listing 8</b></p> + <div class="source"><pre>axiom_xml_writer_t *xml_writer = NULL; +axiom_output_t *om_output = NULL; +axis2_char_t *buffer = NULL; + +.............. + +xml_writer = axiom_xml_writer_create(env, NULL, 0, 0); +om_output = axiom_output_create(env, xml_writer); + +axiom_soap_envelope_serialize(envelope, env, om_output); +buffer = (axis2_char_t*)axis2_xml_writer_get_xml(xml_writer, env); +printf("%s ", buffer); + +</pre></div> + <p>An easy way to serialize is to use the <code>to_string</code> function in +<code>om_element</code></p><p><b>Code Listing 9</b></p> + <div class="source"><pre>axis2_char_t *xml_output = NULL; +axiom_node_t *foo_node = NULL; +axiom_element_t *foo_ele = NULL; +axiom_namespace_t* ns = NULL; + +ns = axiom_namespace_create(env, "bar", "x"); + +foo_ele = axiom_element_create(env, NULL, "foo", ns, &foo_node); + +axiom_element_set_text(foo_ele, env, "EASY SERAILIZATION", foo_node); + +xml_output = axiom_element_to_string(foo_ele, env, foo_node); + +printf("%s", xml_output); +AXIS2_FREE(env->allocator, xml_output); + +</pre></div> + <p>Note that freeing the returned buffer is the user's responsibility.</p><p><a id="Reader_and_Writer"></a></p></div><div class="subsection"><a name="Using_axiom_xml_reader_and_axiom_xml_writer"></a><h3>Using axiom_xml_reader and axiom_xml_writer</h3><p><code>axiom_xml_reader</code> provides three create functions that can be +used for different XML input sources.</p><ul> + <li><code>axiom_xml_reader_create_for_file</code> can be used to read from + a file</li> + <li><code>axiom_xml_reader_create_for_io</code> uses a user defined + callback function to pull XML</li> + <li><code>axiom_xml_reader_create_for_memory</code> can be used to read + from an XML string that is in a character buffer</li> +</ul><p> + + +ls of the latest version can be found on the Apache Axis2/C +<ul> + <li><code>axiom_xml_writer_create_for_file</code> can be used to write to a + file</li> + <li><code>axiom_xml_writer_create_for_memory</code> can be used to write to + an internal memory buffer and obtain the XML string as a character + buffer</li> +</ul></p><p></p><p>Please refer to <code>axiom_xml_reader.h</code> and +<code>axiom_xml_writer.h</code> for more information.</p><p></p><p><a id="Mem_Leaks"></a></p></div><div class="subsection"><a name="How_to_Avoid_Memory_Leaks_and_Double_Frees_When_Using_AXIOM"></a><h3>How to Avoid Memory Leaks and Double Frees When Using AXIOM</h3><p>You have to be extremely careful when using AXIOM, in order to avoid +memory leaks and double free errors. The following guidelines will be +extremely useful:</p><p>1. The <code>axiom_element</code> struct keeps a list of attributes and a +list of namespaces, when an <code>axiom_namespace</code> pointer or an +<code>axiom_attribute</code> pointer is added to these lists, which will be +freed when the <code>axiom_element</code> is freed. Therefore a pointer to a +namespace or an attribute should not be freed, once it is used with an +<code>axiom_element</code>.</p><p>To avoid any inconvenience, clone functions have been implemented for both +the <code>axiom_namespace</code> and <code>axiom_attribute</code> +structures.</p><p>2. AXIOM returns shallow references to its string values. Therefore, when +you want deep copies of returned values, the <code>axutil_strdup()</code> +function should be used to avoid double free errors.</p><p>Example</p><p><code>axiom_namespace_t *ns = NULL;</code></p><p><code>axis2_char_t *uri = NULL;</code></p><p><code>ns = axiom_namespace_create(env, "http://ws.apache.org", +"AXIOM");</code></p><p><code>uri = axiom_namespace_get_uri(ns, env);</code></p><p><code>/* now uri points to the same place where namespace struct's uri <br></br> +pointer is pointing. Therefore following will cause a double free +*/</code></p><p><code>AXIS2_FREE(env->allocator, uri);</code></p><p><code>axiom_namespace_free(ns, env);</code></p><p>3. When creating AXIOM programatically, if you are declaring a namespace +with an <code>axiom_element</code>, it is advisable to find whether the +namespace is already available in the elements scope using the +<code>axiom_element_find_namespace</code> function. If available, that +pointer can be used instead of creating another namespace struct instance to +minimize memory usage.</p><p></p><p><a id="Complete_Sample"></a></p></div><div class="subsection"><a name="Complete_Code_for_the_AXIOM_Based_Document_Building_and_Serialization"></a><h3>Complete Code for the AXIOM Based Document Building and Serialization</h3><p>The following code segment shows how to use AXIOM for building a document +completely and then serializing it into text, pushing the output to the +console.</p><p></p><p><b>Code Listing 10</b></p> + <div class="source"><pre>#include <axiom.h> +#include <axis2_util.h> +#include <axutil_env.h> +#include <axutil_log_default.h> +#include <axutil_error_default.h> +#include <stdio.h> + +FILE *f = NULL; +int read_input_callback(char *buffer, int size, void* ctx) +{ + fread(buffer, (char), size, f); +} +int close_input_callback(void *ctx) +{ + fclose(f); +} +axutil_env_t * create_environment() +{ + axutil_allocator_t *allocator = NULL; + axutil_env_t *env = NULL; + axutil_log_t *log = NULL; + + axutil_error_t *error = NULL; + allocator = axutil_allocator_init(NULL); + log = axutil_log_create(allocator, NULL, NULL); + + error = axutil_error_create(allocator); + env = axutil_env_create_with_error_log(allocator, error, log); + env; +} + +build_and_serialize_om(axutil_env_t *env) +{ + axiom_node_t *root_node = NULL; + + axiom_element_t *root_ele = NULL; + axiom_document_t *document = NULL; + axiom_stax_builder_t *om_builder = NULL; + + axiom_xml_reader_t *xml_reader = NULL; + axiom_xml_writer_t *xml_writer = NULL; + axiom_output_t *om_output = NULL; + + axis2_char_t *buffer = NULL; + + f = fopen("test.xml","r"); + xml_reader = axiom_xml_reader_create_for_io(env, read_input_callback, + close_input_callback, NULL, NULL); + (!xml_reader) + -1; + + om_builder = axiom_stax_builder_create(env, xml_reader); + (!om_builder) + { + axiom_xml_reader_free(xml_reader, env); + AXIS2_FAILURE; + } + document = axiom_stax_builder_get_document(om_builder, env); + (!document) + { + axiom_stax_builder_free(om_builder, env); + AXIS2_FAILURE; + } + + root_node = axiom_document_get_root_element(document, env); + (!root_node) + { + axiom_stax_builder_free(om_builder, env); + AXIS2_FAILURE; + } + (root_node) + { + (axiom_node_get_node_type(root_node, env) == AXIOM_ELEMENT) + { + root_ele = (axiom_element_t*)axiom_node_get_data_element(root_node, env); + (root_ele) + { + printf(" %s" ,axiom_element_get_localname(root_ele, env)); + } + } + } + + axiom_document_build_all(document, env); + axiom_document_build_all(document, env); + + xml_writer = axiom_xml_writer_create_for_memory(env, NULL, AXIS2_TRUE, 0, AXIS2_XML_PARSER_TYPE_BUFFER); + + om_output = axiom_output_create(env, xml_writer); + + axiom_node_serialize(root_node, env, om_output); + + buffer = (axis2_char_t*)axiom_xml_writer_get_xml(xml_writer, env); + + printf("The output XML is ->>>>\n %s ", buffer); + + + + axiom_output_free(om_output, env); + + + axiom_stax_builder_free(om_builder, env); + + AXIS2_SUCCESS; + +} +int main() +{ + int status = AXIS2_SUCCESS; + + axutil_env_t *env = NULL; + axutil_allocator_t *allocator = NULL; + env = create_environment(); + + status = build_and_serialize_om(env); + + (status == AXIS2_FAILURE) + { + printf(" build AXIOM failed"); + } + + axutil_env_free(env); + + 0; +} + + +</pre></div> + </div></div></div></div><div class="clear"><hr></hr></div></body></html> diff --git a/xdocs/download.cgi b/xdocs/download.cgi new file mode 100755 index 0000000..8bdb438 --- /dev/null +++ b/xdocs/download.cgi @@ -0,0 +1,6 @@ +#!/bin/sh +# Wrapper script around mirrors.cgi script +# (we must change to that directory in order for python to pick up the +# python includes correctly) +cd /www/www.apache.org/dyn/mirrors +/www/www.apache.org/dyn/mirrors/mirrors.cgi $*
\ No newline at end of file diff --git a/xdocs/download.html b/xdocs/download.html new file mode 100644 index 0000000..bf58de5 --- /dev/null +++ b/xdocs/download.html @@ -0,0 +1,409 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html> +<head> + <title>Apache Axis2/C - Apache Axis2/C Downloads</title> + <h2>Apache Axis2/C Releases</h2> + <div align="left"> + <p>Apache Axis2/C releases are available for download as source or binary packages. For more information on Apache software releases, please see <a href="http://www.apache.org/dev/release.html" class="externalLink" title="External Link">Apache Releases FAQ</a>.</p> + </div> + <p> + <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> + </script><script type="text/javascript"> + _uacct = "UA-1954378-10"; + urchinTracker(); + </script><div align="center"> + + <table class="bodyTable"> + <tbody> + <tr class="a"> + <td width="41" align="center">Name</td> + <td width="353" align="center">Type</td> + <td width="288" align="center">Distribution</td> + <td width="69" align="center">Date</td> + <td width="119" align="center">Description</td> + </tr> + <!--##############################1.6.0 Release#############################--> + <tr class="b"> + <td align="center" valign="middle">1.6.0</td> + <td align="center">Release</td> + <td>MS Windows Distribution<br></br> - Binary Distribution <a href="[preferred]/ws/axis2/c/1_6_0/axis2c-bin-1.6.0-win32.zip" title="[preferred]/ws/axis2/1_6_0/axis2c-bin-1.6.0-win32.zip" onclick="javascript:urchinTracker ('/downloads/axis2c-bin-1.6.0-win32.zip');">zip</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-bin-1.6.0-win32.zip.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-bin-1.6.0-win32.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-bin-1.6.0-win32.zip.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-bin-1.6.0-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="[preferred]/ws/axis2/c/1_6_0/axis2c-src-1.6.0.zip" title="[preferred]/ws/axis2/c/1_6_0/axis2c-src-1.6.0.zip" onclick="javascript:urchinTracker ('/downloads/axis2c-src-1.6.0.zip');">zip</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-src-1.6.0.zip.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-src-1.6.0.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-src-1.6.0.zip.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-src-1.6.0.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="[preferred]/ws/axis2/c/1_6_0/axis2c-bin-1.6.0-linux.tar.gz" title="[preferred]/ws/axis2/c/1_6_0/axis2c-bin-1.6.0-linux.tar.gz" onclick="javascript:urchinTracker ('/downloads/axis2c-bin-1.6.0-linux.tar.gz');">tar.gz</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-bin-1.6.0-linux.tar.gz.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-bin-1.6.0-linux.tar.gz.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-bin-1.6.0-linux.tar.gz.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-bin-1.6.0-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="[preferred]/ws/axis2/c/1_6_0/axis2c-src-1.6.0.tar.gz" title="[preferred]/ws/axis2/c/1_6_0/axis2c-src-1.6.0.tar.gz" onclick="javascript:urchinTracker ('/downloads/axis2c-src-1.6.0.tar.gz');">tar.gz</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-src-1.6.0.tar.gz.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-src-1.6.0.tar.gz.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-src-1.6.0.tar.gz.asc" + class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_6_0/axis2c-src-1.6.0.tar.gz.asc">PGP</a> + </td> + <td>20-04-2009</td> + <td>1.6.0 Release (Mirrored)</td> + </tr> + +<!--##############################1.5.0 Release#############################--> + <tr class="b"> + <td align="center" valign="middle">1.5.0</td> + <td align="center">Release</td> + <td>MS Windows Distribution<br></br> - Binary Distribution <a href="[preferred]/ws/axis2/c/1_5_0/axis2c-bin-1.5.0-win32.zip" title="[preferred]/ws/axis2/1_5_0/axis2c-bin-1.5.0-win32.zip" onclick="javascript:urchinTracker ('/downloads/axis2c-bin-1.5.0-win32.zip');">zip</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-bin-1.5.0-win32.zip.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-bin-1.5.0-win32.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-bin-1.5.0-win32.zip.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-bin-1.5.0-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="[preferred]/ws/axis2/c/1_5_0/axis2c-src-1.5.0.zip" title="[preferred]/ws/axis2/c/1_5_0/axis2c-src-1.5.0.zip" onclick="javascript:urchinTracker ('/downloads/axis2c-src-1.5.0.zip');">zip</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-src-1.5.0.zip.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-src-1.5.0.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-src-1.5.0.zip.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-src-1.5.0.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="[preferred]/ws/axis2/c/1_5_0/axis2c-bin-1.5.0-linux.tar.gz" title="[preferred]/ws/axis2/c/1_5_0/axis2c-bin-1.5.0-linux.tar.gz" onclick="javascript:urchinTracker ('/downloads/axis2c-bin-1.5.0-linux.tar.gz');">tar.gz</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-bin-1.5.0-linux.tar.gz.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-bin-1.5.0-linux.tar.gz.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-bin-1.5.0-linux.tar.gz.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-bin-1.5.0-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="[preferred]/ws/axis2/c/1_5_0/axis2c-src-1.5.0.tar.gz" title="[preferred]/ws/axis2/c/1_5_0/axis2c-src-1.5.0.tar.gz" onclick="javascript:urchinTracker ('/downloads/axis2c-src-1.5.0.tar.gz');">tar.gz</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-src-1.5.0.tar.gz.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-src-1.5.0.tar.gz.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-src-1.5.0.tar.gz.asc" + class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_5_0/axis2c-src-1.5.0.tar.gz.asc">PGP</a> + </td> + <td>06-05-2008</td> + <td>1.5.0 Release (Mirrored)</td> + </tr> +<!--##############################1.4.0 Release#############################--> + <tr class="b"> + <td align="center" valign="middle">1.4.0</td> + <td align="center">Release</td> + <td>MS Windows Distribution<br></br> - Binary Distribution <a href="[preferred]/ws/axis2/c/1_4_0/axis2c-bin-1.4.0-win32.zip" title="[preferred]/ws/axis2/1_4_0/axis2c-bin-1.4.0-win32.zip" onclick="javascript:urchinTracker ('/downloads/axis2c-bin-1.4.0-win32.zip');">zip</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-bin-1.4.0-win32.zip.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-bin-1.4.0-win32.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-bin-1.4.0-win32.zip.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-bin-1.4.0-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="[preferred]/ws/axis2/c/1_4_0/axis2c-src-1.4.0.zip" title="[preferred]/ws/axis2/c/1_4_0/axis2c-src-1.4.0.zip" onclick="javascript:urchinTracker ('/downloads/axis2c-src-1.4.0.zip');">zip</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-src-1.4.0.zip.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-src-1.4.0.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-src-1.4.0.zip.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-src-1.4.0.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="[preferred]/ws/axis2/c/1_4_0/axis2c-bin-1.4.0-linux.tar.gz" title="[preferred]/ws/axis2/c/1_4_0/axis2c-bin-1.4.0-linux.tar.gz" onclick="javascript:urchinTracker ('/downloads/axis2c-bin-1.4.0-linux.tar.gz');">tar.gz</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-bin-1.4.0-linux.tar.gz.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-bin-1.4.0-linux.tar.gz.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-bin-1.4.0-linux.tar.gz.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-bin-1.4.0-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="[preferred]/ws/axis2/c/1_4_0/axis2c-src-1.4.0.tar.gz" title="[preferred]/ws/axis2/c/1_4_0/axis2c-src-1.4.0.tar.gz" onclick="javascript:urchinTracker ('/downloads/axis2c-src-1.4.0.tar.gz');">tar.gz</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-src-1.4.0.tar.gz.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-src-1.4.0.tar.gz.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-src-1.4.0.tar.gz.asc" + class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_4_0/axis2c-src-1.4.0.tar.gz.asc">PGP</a> + </td> + <td>03-03-2008</td> + <td>1.4.0 Release (Mirrored)</td> + </tr> + +<!--##############################1.3.0 Release #############################--> + <tr class="b"> + <td align="center" valign="middle">1.3.0</td> + <td align="center">Release</td> + <td>MS Windows Distribution<br></br> - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_3_0/axis2c-bin-1.3.0-win32.zip" title="http://archive.apache.org/dist/ws/axis2/1_3_0/axis2c-bin-1.3.0-win32.zip" onclick="javascript:urchinTracker ('/downloads/axis2c-bin-1.3.0-win32.zip');">zip</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-bin-1.3.0-win32.zip.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-bin-1.3.0-win32.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-bin-1.3.0-win32.zip.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-bin-1.3.0-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_3_0/axis2c-src-1.3.0.zip" title="http://archive.apache.org/dist/ws/axis2/c/1_3_0/axis2c-src-1.3.0.zip" onclick="javascript:urchinTracker ('/downloads/axis2c-src-1.3.0.zip');">zip</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-src-1.3.0.zip.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-src-1.3.0.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-src-1.3.0.zip.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-src-1.3.0.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_3_0/axis2c-bin-1.3.0-linux.tar.gz" title="http://archive.apache.org/dist/ws/axis2/c/1_3_0/axis2c-bin-1.3.0-linux.tar.gz" onclick="javascript:urchinTracker ('/downloads/axis2c-bin-1_3_0-linux.tar.gz');">tar.gz</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-bin-1.3.0-linux.tar.gz.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-bin-1.3.0-linux.tar.gz.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-bin-1.3.0-linux.tar.gz.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-bin-1.3.0-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_3_0/axis2c-src-1.3.0.tar.gz" title="http://archive.apache.org/dist/ws/axis2/c/1_3_0/axis2c-src-1.3.0.tar.gz" onclickd="javascript:urchinTracker ('/downloads/axis2c-src-1.3.0.tar.gz');">tar.gz</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-src-1.3.0.tar.gz.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-src-1.3.0.tar.gz.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-src-1.3.0.tar.gz.asc" + class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_3_0/axis2c-src-1.3.0.tar.gz.asc">PGP</a> + </td> + <td>29 - 02 - 2008</td> + <td>1.3.0 Release (Archived)</td> + </tr> + +<!--##############################1.2.0 Release #############################--> + <tr class="a"> + <td align="center" valign="middle">1.2.0</td> + <td align="center">Release</td> + <td>MS Windows Distribution<br></br> - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_2_0/axis2c-bin-1.2.0-win32.zip" title="http://archive.apache.org/dist/ws/axis2/1_2_0/axis2c-bin-1.2.0-win32.zip" onclick="javascript:urchinTracker ('/downloads/axis2c-bin-1.2.0-win32.zip');">zip</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-bin-1.2.0-win32.zip.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-bin-1.2.0-win32.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-bin-1.2.0-win32.zip.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-bin-1.2.0-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_2_0/axis2c-src-1.2.0.zip" title="http://archive.apache.org/dist/ws/axis2/c/1_2_0/axis2c-src-1.2.0.zip" onclick="javascript:urchinTracker ('/downloads/axis2c-src-1.2.0.zip');">zip</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-src-1.2.0.zip.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-src-1.2.0.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-src-1.2.0.zip.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-src-1.2.0.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_2_0/axis2c-bin-1.2.0-linux.tar.gz" title="http://archive.apache.org/dist/ws/axis2/c/1_2_0/axis2c-bin-1.2.0-linux.tar.gz" onclick="javascript:urchinTracker ('/downloads/axis2c-bin-1.2.0-linux.tar.gz');">tar.gz</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-bin-1.2.0-linux.tar.gz.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-bin-1.2.0-linux.tar.gz.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-bin-1.2.0-linux.tar.gz.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-bin-1.2.0-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_2_0/axis2c-src-1.2.0.tar.gz" title="http://archive.apache.org/dist/ws/axis2/c/1_2_0/axis2c-src-1.2.0.tar.gz" onclick="javascript:urchinTracker ('/downloads/axis2c-src-1.2.0.tar.gz');">tar.gz</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-src-1.2.0.tar.gz.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-src-1.2.0.tar.gz.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-src-1.2.0.tar.gz.asc" + class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_2_0/axis2c-src-1.2.0.tar.gz.asc">PGP</a> + </td> + <td>17 - 01 - 2008</td> + <td>1.2.0 Release (Archived)</td> + </tr> +<!--##############################1.1.0 Release #############################--> + <tr class="a"> + <td align="center" valign="middle">1.1.0</td> + <td align="center">Release</td><td>MS Windows Distribution<br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_1_0/axis2c-bin-1.1.0-win32.zip" title="http://archive.apache.org/dist/ws/axis2/1_1_0/axis2c-bin-1.1.0-win32.zip" onclick="javascript:urchinTracker ('/downloads/axis2c-bin-1.1.0-win32.zip');">zip</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-bin-1.1.0-win32.zip.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-bin-1.1.0-win32.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-bin-1.1.0-win32.zip.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-bin-1.1.0-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_1_0/axis2c-src-1.1.0.zip" title="http://archive.apache.org/dist/ws/axis2/c/1_1_0/axis2c-src-1.1.0.zip" onclick="javascript:urchinTracker ('/downloads/axis2c-src-1.1.0.zip');">zip</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-src-1.1.0.zip.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-src-1.1.0.zip.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-src-1.1.0.zip.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-src-1.1.0.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_1_0/axis2c-bin-1.1.0-linux.tar.gz" title="http://archive.apache.org/dist/ws/axis2/c/1_1_0/axis2c-bin-1.1.0-linux.tar.gz" onclick="javascript:urchinTracker ('/downloads/axis2c-bin-1.1.0-linux.tar.gz');">tar.gz</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-bin-1.1.0-linux.tar.gz.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-bin-1.1.0-linux.tar.gz.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-bin-1.1.0-linux.tar.gz.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-bin-1.1.0-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_1_0/axis2c-src-1.1.0.tar.gz" title="http://archive.apache.org/dist/ws/axis2/c/1_1_0/axis2c-src-1.1.0.tar.gz" onclick="javascript:urchinTracker ('/downloads/axis2c-src-1.1.0.tar.gz');">tar.gz</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-src-1.1.0.tar.gz.md5" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-src-1.1.0.tar.gz.md5">MD5</a> + <a href="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-src-1.1.0.tar.gz.asc" class="externalLink" title="http://www.apache.org/dist/ws/axis2/c/1_1_0/axis2c-src-1.1.0.tar.gz.asc">PGP</a></td><td>30 - 09 - 2007</td><td>1.1.0 Release (Mirrored)</td></tr> + + <tr class="b"><td align="center" valign="middle">1.0.0</td><td align="center">Release</td><td>MS Windows Distribution<br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-bin-1.0.0-win32.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/1_0_0/axis2c-bin-1.0.0-win32.zip" onclick="javascript:urchinTracker ('/downloads/axis2c-bin-1.0.0-win32.zip');">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-bin-1.0.0-win32.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-bin-1.0.0-win32.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-bin-1.0.0-win32.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-bin-1.0.0-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-src-1.0.0.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-src-1.0.0.zip" onclick="javascript:urchinTracker ('/downloads/axis2c-src-1.0.0.zip');">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-src-1.0.0.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-src-1.0.0.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-src-1.0.0.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-src-1.0.0.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-bin-1.0.0-linux.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-bin-1.0.0-linux.tar.gz" onclick="javascript:urchinTracker ('/downloads/axis2c-bin-1.0.0-linux.tar.gz');">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-bin-1.0.0-linux.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-bin-1.0.0-linux.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-bin-1.0.0-linux.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-bin-1.0.0-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-src-1.0.0.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-src-1.0.0.tar.gz" onclick="javascript:urchinTracker ('/downloads/axis2c-src-1.0.0.tar.gz');">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-src-1.0.0.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-src-1.0.0.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-src-1.0.0.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/1_0_0/axis2c-src-1.0.0.tar.gz.asc">PGP</a></td><td>06 - 05 - 2007</td><td>1.0.0 Release (Archived)</td></tr> + <tr class="a"><td align="center" valign="middle">0.96</td><td align="center">Release</td><td>MS Windows Distribution<br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-bin-0.96-win32.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/0_96/axis2c-bin-0.96-win32.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-bin-0.96-win32.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-bin-0.96-win32.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-bin-0.96-win32.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-bin-0.96-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-src-0.96.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-src-0.96.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-src-0.96.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-src-0.96.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-src-0.96.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-src-0.96.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-bin-0.96-linux.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-bin-0.96-linux.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-bin-0.96-linux.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-bin-0.96-linux.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-bin-0.96-linux.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-bin-0.96-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-src-0.96.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-src-0.96.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-src-0.96.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-src-0.96.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-src-0.96.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_96/axis2c-src-0.96.tar.gz.asc">PGP</a></td><td>22 - 12 - 2006</td><td>0.96 Release (Archived)</td></tr> + <tr class="b"><td align="center" valign="middle">0.95</td><td align="center">Release</td><td>MS Windows Distribution<br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-bin-0.95-win32.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/0_95/axis2c-bin-0.95-win32.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-bin-0.95-win32.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-bin-0.95-win32.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-bin-0.95-win32.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-bin-0.95-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-src-0.95.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-src-0.95.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-src-0.95.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-src-0.95.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-src-0.95.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-src-0.95.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-bin-0.95-linux.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-bin-0.95-linux.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-bin-0.95-linux.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-bin-0.95-linux.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-bin-0.95-linux.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-bin-0.95-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-src-0.95.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-src-0.95.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-src-0.95.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-src-0.95.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-src-0.95.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_95/axis2c-src-0.95.tar.gz.asc">PGP</a></td><td>26 - 10 - 2006</td><td>0.95 Release (Archived)</td></tr> + <tr class="a"><td align="center" valign="middle">0.94</td><td align="center">Release</td><td>MS Windows Distribution<br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-bin-0.94-win32.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/0_94/axis2c-bin-0.94-win32.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-bin-0.94-win32.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-bin-0.94-win32.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-bin-0.94-win32.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-bin-0.94-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-src-0.94.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-src-0.94.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-src-0.94.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-src-0.94.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-src-0.94.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-src-0.94.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-bin-0.94-linux.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-bin-0.94-linux.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-bin-0.94-linux.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-bin-0.94-linux.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-bin-0.94-linux.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-bin-0.94-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-src-0.94.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-src-0.94.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-src-0.94.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-src-0.94.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-src-0.94.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_94/axis2c-src-0.94.tar.gz.asc">PGP</a></td><td>03 - 10 - 2006</td><td>0.94 Release (Archived)</td></tr> + <tr class="b"><td align="center" valign="middle">0.93</td><td align="center">Release</td><td>MS Windows Distribution<br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-bin-0.93-win32.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/0_93/axis2c-bin-0.93-win32.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-bin-0.93-win32.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-bin-0.93-win32.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-bin-0.93-win32.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-bin-0.93-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-src-0.93.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-src-0.93.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-src-0.93.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-src-0.93.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-src-0.93.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-src-0.93.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-bin-0.93-linux.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-bin-0.93-linux.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-bin-0.93-linux.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-bin-0.93-linux.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-bin-0.93-linux.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-bin-0.93-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-src-0.93.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-src-0.93.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-src-0.93.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-src-0.93.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-src-0.93.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_93/axis2c-src-0.93.tar.gz.asc">PGP</a></td><td>31 - 08 - 2006</td><td>0.93 Release (Archived)</td></tr> + <tr class="a"><td align="center" valign="middle">0.92</td><td align="center">Release</td><td>MS Windows Distribution<br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-bin-0.92-win32.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/0_92/axis2c-bin-0.92-win32.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-bin-0.92-win32.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-bin-0.92-win32.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-bin-0.92-win32.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-bin-0.92-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-src-0.92.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-src-0.92.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-src-0.92.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-src-0.92.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-src-0.92.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-src-0.92.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-bin-0.92-linux.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-bin-0.92-linux.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-bin-0.92-linux.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-bin-0.92-linux.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-bin-0.92-linux.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-bin-0.92-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-src-0.92.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-src-0.92.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-src-0.92.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-src-0.92.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-src-0.92.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_92/axis2c-src-0.92.tar.gz.asc">PGP</a></td><td>16 - 06 - 2006</td><td>0.92 Release (Archived)</td></tr> + <tr class="b"><td align="center" valign="middle">0.91</td><td align="center">Release</td><td>MS Windows Distribution<br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-bin-0.91-win32.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/0_91/axis2c-bin-0.91-win32.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-bin-0.91-win32.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-bin-0.91-win32.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-bin-0.91-win32.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-bin-0.91-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-src-0.91.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-src-0.91.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-src-0.91.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-src-0.91.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-src-0.91.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-src-0.91.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-bin-0.91-linux.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-bin-0.91-linux.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-bin-0.91-linux.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-bin-0.91-linux.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-bin-0.91-linux.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-bin-0.91-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-src-0.91.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-src-0.91.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-src-0.91.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-src-0.91.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-src-0.91.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_91/axis2c-src-0.91.tar.gz.asc">PGP</a></td><td>15 - 05 - 2006</td><td>0.91 Release (Archived)</td></tr> + <tr class="a"><td align="center" valign="middle">0.90</td><td align="center">Release</td><td>MS Windows Distribution<br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-bin-0.90-win32.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/0_90/axis2c-bin-0.90-win32.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-bin-0.90-win32.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-bin-0.90-win32.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-bin-0.90-win32.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-bin-0.90-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-src-0.90.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-src-0.90.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-src-0.90.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-src-0.90.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-src-0.90.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-src-0.90.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-bin-0.90-linux.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-bin-0.90-linux.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-bin-0.90-linux.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-bin-0.90-linux.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-bin-0.90-linux.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-bin-0.90-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-src-0.90.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-src-0.90.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-src-0.90.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-src-0.90.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-src-0.90.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/0_90/axis2c-src-0.90.tar.gz.asc">PGP</a></td><td>31 - 03 - 2006</td><td>0.90 Release (Archived)</td></tr> + <tr class="b"><td align="center" valign="middle">M0.5</td><td align="center"><p>Milestone</p> + </td><td>MS Windows Distribution<br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-bin-M0.5-win32.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/M0_5/axis2c-bin-M0.5-win32.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-bin-M0.5-win32.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-bin-M0.5-win32.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-bin-M0.5-win32.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-bin-M0.5-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-src-M0.5.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-src-M0.5.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-src-M0.5.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-src-M0.5.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-src-M0.5.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-src-M0.5.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-bin-M0.5-linux.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-bin-M0.5-linux.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-bin-M0.5-linux.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-bin-M0.5-linux.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-bin-M0.5-linux.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-bin-M0.5-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-src-M0.5.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-src-M0.5.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-src-M0.5.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-src-M0.5.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-src-M0.5.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0_5/axis2c-src-M0.5.tar.gz.asc">PGP</a> + <br></br> + </td><td>10 - 03 - 2006</td><td>0.5 Milestone (Archived)</td></tr> + <tr class="a"><td align="center" valign="middle">M0.4</td><td align="center">Milestone</td><td>MS Windows Distribution<br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/M0.4/win32/axis2c-bin-M0.4-win32.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.4/win32/axis2c-bin-M0.4-win32.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.4/win32/axis2c-bin-M0.4-win32.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.4/win32/axis2c-bin-M0.4-win32.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.4/win32/axis2c-bin-M0.4-win32.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.4/win32/axis2c-bin-M0.4-win32.zip.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/M0.4/axis2c-src-M0.4.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.4/axis2c-src-M0.4.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.4/axis2c-src-M0.4.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.4/axis2c-src-M0.4.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.4/axis2c-src-M0.4.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.4/axis2c-src-M0.4.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/M0.4/linux/axis2c-bin-M0.4-linux.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.4/linux/axis2c-bin-M0.4-linux.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.4/linux/axis2c-bin-M0.4-linux.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.4/linux/axis2c-bin-M0.4-linux.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.4/linux/axis2c-bin-M0.4-linux.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.4/linux/axis2c-bin-M0.4-linux.tar.gz.asc">PGP</a> + <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/M0.4/axis2c-src-M0.4.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.4/axis2c-src-M0.4.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.4/axis2c-src-M0.4.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.4/axis2c-src-M0.4.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.4/axis2c-src-M0.4.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.4/axis2c-src-M0.4.tar.gz.asc">PGP</a> + <br></br> + </td><td>02 - 17 - 2006</td><td>0.4 Milestone (Archived)</td></tr> + <tr class="b"><td align="center" valign="middle">M0.3</td><td align="center">Milestone</td><td>Linux Distribution <br></br> + - Binary Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/M0.3/axis2c-bin-M0.3-linux.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.3/axis2c-bin-M0.3-linux.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.3/axis2c-bin-M0.3-linux.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.3/axis2c-bin-M0.3-linux.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.4/linux/axis2c-bin-M0.4-linux.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.4/linux/axis2c-bin-M0.4-linux.tar.gz.asc">PGP</a> + <br></br> + Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/M0.3/axis2c-src-M0.3-linux.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.3/axis2c-src-M0.3-linux.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.3/axis2c-src-M0.3-linux.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.3/axis2c-src-M0.3-linux.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.3/axis2c-src-M0.3-linux.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.3/axis2c-src-M0.3-linux.tar.gz.asc">PGP</a> + <br></br> + </td><td>02 - 02 - 2006</td><td>0.3 Milestone (Archived)</td></tr> + <tr class="a"><td align="center" valign="middle">M0.2</td><td align="center">Milestone</td><td>MS Windows Distribution<br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/M0.2/axis2c-src-M0.2-win32.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.2/axis2c-src-M0.2-win32.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.2/axis2c-src-M0.2-win32.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.2/axis2c-src-M0.2-win32.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.2/axis2c-src-M0.2-win32.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.2/axis2c-src-M0.2-win32.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/M0.2/axis2c-src-M0.2-linux.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.2/axis2c-src-M0.2-linux.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.2/axis2c-src-M0.2-linux.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.2/axis2c-src-M0.2-linux.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.2/axis2c-src-M0.2-linux.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.2/axis2c-src-M0.2-linux.tar.gz.asc">PGP</a></td><td>12 - 08 - 2005</td><td>0.2 Milestone (Archived)</td></tr> + <tr class="b"><td align="center" valign="middle">M0.1</td><td align="center">Milestone</td><td>MS Windows Distribution<br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/M0.1/axis2c-src-M0.1-win32.zip" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.1/axis2c-src-M0.1-win32.zip">zip</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.1/axis2c-src-M0.1-win32.zip.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.1/axis2c-src-M0.1-win32.zip.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.1/axis2c-src-M0.1-win32.zip.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.1/axis2c-src-M0.1-win32.zip.asc">PGP</a> + <br></br> + Linux Distribution <br></br> + - Source Distribution <a href="http://archive.apache.org/dist/ws/axis2/c/M0.1/axis2c-src-M0.1-linux.tar.gz" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.1/axis2c-src-M0.1-linux.tar.gz">tar.gz</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.1/axis2c-src-M0.1-linux.tar.gz.md5" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.1/axis2c-src-M0.1-linux.tar.gz.md5">MD5</a> + <a href="http://archive.apache.org/dist/ws/axis2/c/M0.1/axis2c-src-M0.1-linux.tar.gz.asc" class="externalLink" title="http://archive.apache.org/dist/ws/axis2/c/M0.1/axis2c-src-M0.1-linux.tar.gz.asc">PGP</a> + <br></br> + </td><td>11 - 25 - 2005</td><td>0.1 Milestone (Archived)</td></tr> + </tbody></table> +</div><div align="left"> +<p>[if-any logo] <a href="[link]"><img align="right" src="[logo]" border="0" alt=""></img></a>[end] The currently selected mirror is <b>[preferred]</b>. If +you encounter a problem with this mirror, please select another mirror. If +all mirrors are failing, there are <i>backup</i> mirrors (at the end of the +mirrors list) that should be available.</p> + +<form action="[location]" method="get" id="SelectMirror"> + Other mirrors: + <select name="Preferred">[if-any http][for http] + <option value="[http]" selected="selected">[http]</option>[end][end][if-any ftp][for ftp] + <option value="[ftp]">[ftp]</option>[end][end][if-any backup][for backup] + <option value="[backup]">[backup] (backup)</option>[end][end] + </select> + + <input type="submit" value="Change"></input></form> + +<p>You may also consult the <a href="http://www.apache.org/mirrors/" class="externalLink" title="External Link">complete +list of mirrors</a>.</p> + +<p><strong>Note:</strong> When downloading from a mirror, please check the <a href="http://www.apache.org/dev/release-signing#md5" class="externalLink" title="External Link">md5sum</a> and verify +the <a href="http://www.apache.org/dev/release-signing#openpgp" class="externalLink" title="External Link">OpenPGP</a> +compatible signature from the main Apache site. They can be downloaded by +following the links above. This <a href="http://www.apache.org/dist/ws/axis2/c/KEYS" class="externalLink" title="External Link">KEYS</a> file contains the +public keys that can be used for verifying signatures. It is recommended that +(when possible) + a <a href="http://www.apache.org/dev/release-signing#web-of-trust" + class="externalLink" title="External Link">web of trust</a> is + used to confirm the identity of these keys.</p> +</div></p></div></div></div><div class="clear"><hr></hr></div></body></html> diff --git a/xdocs/index.html b/xdocs/index.html new file mode 100644 index 0000000..d4bca06 --- /dev/null +++ b/xdocs/index.html @@ -0,0 +1,99 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Apache Axis2/C - The Web Services Engine</title> + <h2>Welcome to Apache Axis2/C</h2> + <p>Apache Axis2/C is a Web services engine implemented in the C programming language. It is based on the extensible and flexible <a href="http://ws.apache.org/axis2/1_2/Axis2ArchitectureGuide.html" class="externalLink" title="External Link">Axis2 architecture</a>. Apache Axis2/C can be used to provide and consume WebServices. It has been implemented with portability and ability to embed in mind, hence could be used as a Web services enabler in other software.</p> + + <p>Apache Axis2/C supports <a href="http://www.w3.org/TR/2000/NOTE-SOAP-20000508/" class="externalLink" title="External Link">SOAP 1.1</a> and <a href="http://www.w3.org/TR/soap12-part1/" class="externalLink" title="External Link">SOAP 1.2</a>, as well as <a href="http://www.xfront.com/REST-Web-Services.html" class="externalLink" title="External Link">REST</a> style of Webservices. A single service could be exposed both as a SOAP style as well as a REST style service simultaneously. It also has built in <a href="http://www.w3.org/TR/soap12-mtom/" class="externalLink" title="External Link">MTOM</a> support, that can be used to exchange binary data.</p> + + <p>Apache Axis2/C is efficient, modular and is designed with extensibility. The extensible design allows it to support the full WS-* stack with the concept of modules. Apache Axis2/C is the Web services engine that supports the most number of WS-* specification implementations in C, with guaranteed interoperability. This enables using C in Service Oriented Architecture (SOA) implementations, and would be very useful when integrating legacy systems into SOA. + <br></br> + The following WS-* specifications are supported, either as built in modules + or as separate Apache projects: </p> + <ul> + <li><a href="http://www.w3.org/Submission/ws-addressing/" class="externalLink" title="External Link">WS-Addressing</a> - Built in to Axis2/C </li> + <li><a href="http://www.w3.org/Submission/WS-Policy/" class="externalLink" title="External Link">WS-Policy</a> - Built in to Axis2/C </li> + <li><a href="http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=wss" class="externalLink" title="External Link">WS-Security</a> - Implemented by <a href="http://ws.apache.org/axis2/modules/rampart/1_2/security-module.html" class="externalLink" title="External Link">Apache Rampart/C</a> project </li> + <li> <a href="http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf" class="externalLink" title="External Link">WS-SecurityPolicy</a> - Built in to Axis2/C </li> + <li> <a href="http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=wsrm" class="externalLink" title="External Link">WS-ReliableMessaging</a> - Implemented by <a href="http://ws.apache.org/sandesha/sandesha2/c" class="externalLink" title="External Link">Apache Sandesha2/C</a>project + </li> + <li><a href="http://www.w3.org/Submission/WS-Eventing/" class="externalLink" title="External Link">WS-Eventing</a> - Implemented by <a href="http://ws.apache.org/savan/c/" class="externalLink" title="External Link">Apache Savan/C</a>project</li> + </ul> + <div class="subsection"> + <a name="Latest_Release"></a> + <h3>Latest Release</h3> + </div> + <div class="subsection"> + <a name="20_April_2009_-_Apache_Axis2_C_Version_1_6_0_Released"></a> + <h3>20th April 2009 - Apache Axis2/C Version 1.6.0 Released</h3> + <p><a href="http://ws.apache.org/axis2/c/download.cgi" class="externalLink" title="External Link">Download 1.6.0</a></p> + </div> + <div class="subsection"> + <a name="Key_Features"></a> + <h3>Key Features</h3> + <ol> + <li>Support for one-way messaging (In-Only) and request response messaging (In-Out)</li> + <li>Client APIs: Easy to use service client API and more advanced operation client API</li> + <li>Transports supported: HTTP + <ul> + <li>Inbuilt HTTP server called simple axis server</li> + <li>Apache2 httpd module called mod_axis2 for server side</li> + <li>IIS module for server side. Supports IIS 5.1, 6 and 7</li> + <li>Client transport with ability to enable SSL support</li> + <li>Basic HTTP Authentication</li> + <li>AMQP Transport based on Apache Qpid (Experimental)<li> + <li>libcurl based client transport</li> + <li>CGI interface</li> + </ul> + </li> + <li>Module architecture, mechanism to extend the SOAP processing model</li> + <li>WS-Addressing support, both the submission (2004/08) and final (2005/08) versions, implemented as a module</li> + <li>MTOM/XOP support</li> + <li>XPath support for Axiom XML Object model</li> + <li>AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages; This has complete XML infoset support </li> + <li>XML parser abstraction + <ul> + <li>Libxml2 wrapper</li> + <li>Guththila pull parser support</li> + </ul> + </li> + <li>Both directory based and archive based deployment models for deploying services and modules </li> + <li>Description hierarchy providing access to static data of Axis2/C runtime (configuration, service groups, services, operations and messages) </li> + <li>Context hierarchy providing access to dynamic Axis2/C runtime information(corresponding contexts to map to each level of description hierarchy) </li> + <li>Message receiver abstraction + <ul> + <li>Inbuilt raw XML message receiver</li> + </ul> + </li> + <li>Code generation tool for stub and skeleton generation for a given WSDL (based on Java tool) <ul> + <li>Axis Data Binding (ADB) support </li> + </ul> + </li> + <li>Transport proxy support</li> + <li>REST support (more POX like) using both HTTP POST and GET </li> + <li>Comprehensive documentation + <ul> + <li>Axis2/C Manual </li> + </ul> + </li> + <li>WS-Policy implementation called Neethi/C, with WS-SecurityPolicy extension</li> + <li>TCP Transport, for both client and server side </li> + </ol></div> + <div class="subsection"> + <a name="Major_Changes_Since_Last_Release"></a> + <h3>Changes Since Last Release</h3> + <ol> + <li>XPath support for Axiom XML object model</li> + <li>CGI support</li> + <li>Improvements to MTOM to send, receive very large attachments</li> + <li>Improvements to AMQP transport</li> + <li>Improvements to WSDL2C codegen tool</li> + <li>Many bug fixes.</li> + <li>Memory leak fixes</li> + </ol> + </div> + <div class="subsection"> + <a name="Archived_News"></a> + <h3>Archived News</h3> + <p>Refer to information on the <a href="archived_news.html">previous releases</a>. + </p> + </div></div><div class="clear"><hr></hr></div> +</body></html> diff --git a/xdocs/lists_issues.html b/xdocs/lists_issues.html new file mode 100644 index 0000000..6db8226 --- /dev/null +++ b/xdocs/lists_issues.html @@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Apache Axis2/C - Mailing Lists and Issue Tracking</title> +<h2>Mailing Lists</h2><p>These are the mailing lists that have been established for + this project. For each list, there is a subscribe, unsubscribe, + and an archive link. + </p><table class="bodyTable"><thead> + <tr class="b"><th>List + Name</th><th>Subscribe</th><th>Unsubscribe</th><th>Archive</th></tr> + </thead><tbody> + <tr class="a"><td>Axis C Developer List</td><td> + <a href="mailto:axis-c-dev-subscribe@ws.apache.org?subject=subscribe">Subscribe</a> + </td><td> + <a href="mailto:axis-c-dev-unsubscribe@ws.apache.org?subject=unsubscribe">Unsubscribe</a> + </td><td> + <a href="http://marc.theaimsgroup.com/?l=axis-c-dev&r=1&w=2" class="externalLink" title="External Link">Archive</a> + </td></tr> + <tr class="b"><td>Axis C User List</td><td> + <a href="mailto:axis-c-user-subscribe@ws.apache.org?subject=subscribe">Subscribe</a> + </td><td> + <a href="mailto:axis-c-user-unsubscribe@ws.apache.org?subject=unsubscribe">Unsubscribe</a> + </td><td> + <a href="http://marc.theaimsgroup.com/?l=axis-c-user&r=1&w=2" class="externalLink" title="External Link">Archive</a> + </td></tr> +</tbody></table></div><div class="section"><a name="Issue_Tracking"></a><h2>Issue Tracking</h2><p> + <a href="http://issues.apache.org/jira/browse/AXIS2C" class="externalLink" title="External Link">http://issues.apache.org/jira/browse/AXIS2C</a></p></div><div class="section"><a name="Svn_Location"></a><h2>Svn Location</h2><p> +<a href="https://svn.apache.org/repos/asf/webservices/axis2/trunk/c">https://svn.apache.org/repos/asf/webservices/axis2/trunk/c</a></p></div></div></div><div class="clear"><hr></hr></div></body></html> diff --git a/xdocs/navigation.xml b/xdocs/navigation.xml new file mode 100644 index 0000000..f507b5f --- /dev/null +++ b/xdocs/navigation.xml @@ -0,0 +1,29 @@ +<!-- Created By Samisa Abeysinghe --> +<project name="Axis2C"> + <body> + <menu name="Apache Axis2/C"> + <item name="Apache Axis2/C Home" href="index.html"/> + <item name="Download Axis2/C" href="http://ws.apache.org/axis2/c/download.cgi"> + <item name="Releases" href="http://ws.apache.org/axis2/c/download.cgi"/> + </item> + <item name="Documentation" href="docs/index.html"> + <item name="Installation Guide" href="docs/installationguide.html"/> + <item name="Axis2/C manual" href="docs/axis2c_manual.html"/> + <item name="Axis2/C FAQ" href="docs/faq.html"/> + </item> + <item name="Get Involved" href="lists_issues.html"> + <item name="Mailing Lists & Issue Tracking" href="lists_issues.html"/> + <item name="Checkout Source Code" href="svn.html"/> + </item> + <item name="Developer Guidelines" href="coding_conventions.html"> + <item name="Coding Convention" href="coding_conventions.html"/> + <item name="Versionning" href="versioning.html"/> + </item> + <item name="Project Information" href="team-list.html"> + <item name="Project Team" href="team-list.html"/> + <item name="Source Code" + href="http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/c/"/> + </item> + </menu> + </body> +</project> diff --git a/xdocs/svn.html b/xdocs/svn.html new file mode 100644 index 0000000..4b19bc3 --- /dev/null +++ b/xdocs/svn.html @@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Apache Axis2/C - Developing Apache Axis2/C</title><h2>Developing Apache Axis2/C</h2><p>This document provides information on how to use SVN to get an SVN +checkout/update and make commits to the source repository.</p><div class="subsection"><a name="Contents"></a><h3>Contents</h3><ul> + <li><a href="#svn">Working with Subversion (SVN)</a></li> + <li><a href="#checkout">Checking-out Axis2 from Subversion</a></li> +</ul><p><a name="svn"></a></p></div><div class="subsection"><a name="Working_with_Subversion__SVN_"></a><h3>Working with Subversion (SVN)</h3><p>The Apache Axis2/C development team uses Subversion (SVN) for source +control. Subversion is a compelling replacement for CVS, developed under the +auspices of the Tigris community and is licensed under an Apache compatible +license. To learn more about Subversion or to download the latest +distribution, visit the <a href="http:///subversion.tigris.org" class="newWindow" title="New Window" target="_blank">Subversion project site</a>. If you are looking for +guidelines on setting up/installing Subversion, please read the ASF <a href="http://www.apache.org/dev/version-control.html" class="newWindow" title="New Window" target="_blank">Source +Code Repositories page</a>.</p><p><a name="checkout"></a></p></div><div class="subsection"><a name="Checking-out_Apache_Axis2_C_from_Subversion"></a><h3>Checking-out Apache Axis2/C from Subversion</h3><p>When checking out the latest version of Apache Axis2/C from the Apache +Foundation's Subversion repository, you must use one of the following URLs, +depending on your level of access to the Apache Axis2/C source code:</p><ul> + <li><b>If you are not a committer:</b><a href="http://svn.apache.org/repos/asf/webservices/axis2/trunk/c" class="newWindow" title="New Window" target="_blank">http://svn.apache.org/repos/asf/webservices/axis2/trunk/c</a></li> + <li><b>If you are a committer:</b> <a href="https://svn.apache.org/repos/asf/webservices/axis2/trunk/c" class="newWindow" title="New Window" target="_blank">https://svn.apache.org/repos/asf/webservices/axis2/trunk/c</a></li> +</ul><p> +If you are a committer, make sure that you have set your svnpasswd. To do +this you must log into svn.apache.org. For more information, please read the +ASF <a href="http://www.apache.org/dev/version-control.html" class="newWindow" title="New Window" target="_blank">Source Code Repositories page</a>. + +</p><p>Once you have successfully installed Subversion, you can checkout the +Axis2/C trunk by running the following command:</p><p><strong>svn co <repository URL> <folder name></strong></p><p>where 'repository URL' is one of the URLs from the previous list and +'folder name' is the name of the folder into which the source code is to be +checked out.</p><br></br><p>To update your working copy to the latest version from the repository, +execute:</p><p><strong>svn update</strong></p><br></br><p>If you would like to submit a patch, execute:</p><p><strong>svn diff</strong></p><p>The above command will create a unified diff that can be attached to the +Apache Axis2/C JIRA issue tracker.</p><br></br></div></div></div></div><div class="clear"><hr></hr></div></body></html> diff --git a/xdocs/versioning.html b/xdocs/versioning.html new file mode 100644 index 0000000..1c2903b --- /dev/null +++ b/xdocs/versioning.html @@ -0,0 +1,7 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Apache Axis2/C - Versioning</title><h2>Versioning of Apache Axis2/C</h2><p>Apache Axis2/C contains both applications, like HTTPD, and libraries, like +APR. It also contains a number of related sub-projects. It allows third-party +service modules to be written against its API (such as HTTPD), and may also +compile its own third-party modules (e.g., mod_axis2) to be used with +HTTPD.</p><p>These complexities probably mean that we need to develop a fairly +comprehensive set of versioning rules.</p><p>Being an Apache project, the Axis2/C project follows the APR guidelines on +versioning. <a href="http://apr.apache.org/versioning.html" class="externalLink" title="External Link">http://apr.apache.org/versioning.html</a></p><p></p></div></div></div><div class="clear"><hr></hr></div></body></html> |