I understand it differently. Probably existing interfaces should be replaced or 
an alternative intf. should be made available. I did sth. similar, we have a 
web service that offers a dual interface: Thrift and SOAP. I did that by means 
of xText and generated nearly the full interface infrastructure, and a good 
part of the Test Client application from it.

However, I started at a different point, because none of the services did exist 
before. Can I have a look at some example data?
________________________________
Von: Ben Craig
Gesendet: 04.10.2013 15:41
An: [email protected]
Betreff: Re: Generate .thrift file based on example .json file?

> From: Andrew Pennebaker <[email protected]>
> To: Thrift Users <[email protected]>,
> Date: 10/04/2013 08:33 AM
> Subject: Re: Generate .thrift file based on example .json file?
>
> Repeated. A lot of XML-based projects could benefit from this, as well
as
> Thrift-based projects, as interoperability would increase.

There isn't a mapping from an arbitrary json schema to a given .thrift
file.  Thrift has a specific json schema that is unlikely to match
existing json byte-streams.


> On Wed, Oct 2, 2013 at 10:52 AM, Jens Geyer <[email protected]>
wrote:
>
> > Is this a real use case? Is it a one time thing or more an
hypothetical,
> > repeated thing?
> > ________________________________
> > Von: Andrew Pennebaker
> > Gesendet: 02.10.2013 16:08
> > An: Thrift Users
> > Betreff: Generate .thrift file based on example .json file?
> >
> > TJSONProtocol is cool, but I'm wondering if there's a way to generate
a
> > .thrift file based on an example .json file.
> >
> > For example, a service might want to transition from JSON to Thrift,
and
> > not have to manually convert each .json field into the corresponding
> > .thrift field.
> >
> > How difficult would it be to automating this?.
> >

Reply via email to