You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/01/06 03:40:39 UTC

[jira] [Commented] (THRIFT-3523) XML Generator

    [ https://issues.apache.org/jira/browse/THRIFT-3523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15084574#comment-15084574 ] 

ASF GitHub Bot commented on THRIFT-3523:
----------------------------------------

GitHub user bgould opened a pull request:

    https://github.com/apache/thrift/pull/774

    THRIFT-3523 : XML Generator

    I've put together an XML model for Thrift IDL that is very similar in concept and structure to the model created by the JSON generator of the Thrift compiler.  The code is based on the JSON generator, and inherits the 'merge' option from that module for including the model of all includes in a single file if desired.
    
    This generator is useful if you wish to extend the Thrift compiler with some XML based templating engine such as XSLT.  For example I have prototyped transforms that can create valid XML schema and WSDL files from Thrift IDL, as well as transform SOAP requests and responses to and from Thrift messages.  Those transforms are not included because they may be outside the scope of Thrift, but I can provide them if interested.  Regardless, I feel the XML model is generally useful and might be a good addition to the Thrift compiler.
    
    Also included is an XML schema for the model file format and tests that generate XML from existing IDL in the Thrift test suite to validate against that schema.  These tests are Ant based and so only run when --with-java is enabled in ./configure

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/bgould/thrift xml-generator

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/thrift/pull/774.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #774
    
----
commit e09407675ea70a5bc4d5d25bfa2174e1518acf0c
Author: BCG <bg...@users.noreply.github.com>
Date:   2015-12-28T06:15:00Z

    Added XML generator.

----


> XML Generator
> -------------
>
>                 Key: THRIFT-3523
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3523
>             Project: Thrift
>          Issue Type: New Feature
>          Components: Compiler (General)
>            Reporter: Benjamin Gould
>            Assignee: Benjamin Gould
>            Priority: Minor
>
> I've put together an XML model for Thrift IDL that is very similar in concept and structure to the model created by the JSON generator of the Thrift compiler.  The code is based on the JSON generator, and inherits the 'merge' option from that module for including the model of all includes in a single file if desired.
> This generator is useful if you wish to extend the Thrift compiler with some XML based templating engine such as XSLT.  For example I have prototyped transforms that can create valid XML schema and WSDL files from Thrift IDL, as well as transform SOAP requests and responses to and from Thrift messages.  Those transforms are not included because they may be outside the scope of Thrift, but I can provide them if interested.  Regardless, I feel the XML model is generally useful and might be a good addition to the Thrift compiler.
> Also included is an XML schema for the model file format and tests that generate XML from existing IDL in the Thrift test suite to validate against that schema.  These tests are Ant based and so only run when --with-java is enabled in ./configure



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)