Convert XSDs to Protos

I have a set of services coupled with whole bunch of XSDs. Clients that use my service use XML and in the future will use protobufs. Is there a tool out there that will convert my XSDs into proto files?

The plan here is to define the interface once using XSD and then autogenerate the protos so that both interfaces remain in sync.

Answers


Protomak is a tool dedicated to exactly this task.

The lastest release supports:

  • Xsd to Proto files with support for
    • Anonymous types
    • Complex types
    • Inherited complex types
    • Restrictions for enumerations
  • Maven plugin
  • Ant build task

Disclaimer: I worked on this project


This looks like it might fit the bill for you:

https://github.com/tranchis/xsd2thrift

I haven't used it myself, but the project description sounds like exactly what you're looking for.


Need Your Help

creating python lists on the fly and comparing them

python list python-2.7 set comparison

I need to open multiple files and compare the contents of them. The way I am doing in now is dirty. I want to know an elegant way of doing it. I need to open multiple files and see the common eleme...

Does IE raise Idle Event to ActiveX in it? If any, how to register my own code to the idle event

delphi internet-explorer activex python-idle

I developed an activex for IE using Delphi 2007 for win32. My question is: How can I get an idle event like getting one from the message loop of TApplication?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.