[ http://issues.apache.org/jira/browse/AXIS2C-198?page=all ]

Dimuthu Chathuranga updated AXIS2C-198:
---------------------------------------

    Attachment: codegen.tar.bz


Now it support to fill the typemapper using extension. So to support ADB it 
needs only an extension filling adb types to the typemapper. Typemapper for 
simple types can be easily loaded using xml file as in java. But not like in 
java here the dafalut way to load typemapper is done using the xml. I felt it 
is more flexible.

example of typemapper.xml for c without adb

<mappings dbf="c-default">
    <mapping default="yes">
        <qname namespace="http://www.w3.org/2001/XMLSchema"; 
prefix="">content</qname>
        <value>axiom_node_t*</value>
    </mapping>
</mappings>

The algorithem used..
1. check whether the message element qnames( which represent the parameters of 
operations ) exist in the typmapper, 
2. if exist use the mapping type.
3. if not use the default type.

The installation would be like this 
directories are shown inside ()

(AXIS2C_HOME)
  |
  |
  +----------(lib) --- libw2c_codegen.so
  |           |
  |           |
  |           +--------(codegen)----------extensions, writers, emitters
  |                                    e.g:
  |                                      libw2c_c_emitter.so
  |                                      libw2c_cskel_header_writer.so
  |                                      libw2c_cstub_header_writer.so
  |                                      libw2c_csvc_skeleton_writer.so
  |                                      libw2c_cservice_xml_writer.so
  |                                      libw2c_cskel_source_writer.so
  |                                      libw2c_cstub_source_writer.so
  |                                      libw2c_databinding_default_ext.so
  |
  |
  |
  +----------(conf)-----codegen-config.properties
  |            |        resource.properties
  |            |
  |            +--------(templates)----------(c)---- xslt templates
  |            |
  |            |
  |            +--------(typemappers)-------c.default.typemap.xml
  |
  |
  +-----------(bin)------w2c


TODOS:
1. Improve doc comments.
2. write schema to c code generator and an extension to wsdl2c tool.
3. reduce memory leaks.

thanks
dimuthu


> WSDL2C Code generation tool ( C Implementation )
> ------------------------------------------------
>
>                 Key: AXIS2C-198
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-198
>             Project: Axis2-C
>          Issue Type: New Feature
>    Affects Versions: Current (Nightly)
>         Environment: Windows / Linux
>            Reporter: Dimuthu Chathuranga
>            Priority: Minor
>         Attachments: codegen.tar.bz, codegen.tar.bz2, codegen.tar.gz, 
> codegen.tar.gz
>
>
> WSDL2C code generation tool would be implemented following the same 
> architecture of the Axis2/Java WSDL2Java tool.
> As discussed in axis-c dev mailing list it will be using following components
> XSLT Parser - both libxslt(http://xmlsoft.org/XSLT/intro.html)  and apache 
> Xalan ( build option to change the parser)
> WSDL Parser - Woden/C
> OM - Axiom/C
> In addition to these components, it would use axis2 util libraries for 
> utility functions.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to