On Wednesday, July 9, 2008 3:45:36 AM UTC+2, Kenton Varda wrote:
>
> On Tue, Jul 8, 2008 at 6:23 PM, Wang Ning <dani...@gmail.com <javascript:>> 
> wrote:
>
>> I am doing some work about SOAP Engine and ESB(Enterprise Service Bus) 
>> which has RPC Style service invoking. Now I use xml as the soap 
>> specification provide, then I need to do some databinding between xml and 
>> java(I only use java for the SOAP Engine and ESB). I wonder if I can 
>> leverage Protocol Buffer for my work. If Protocol Buffer provide some 
>> method to convert protocol buffer data to soap xml data or json format it, 
>> I think I will try protocol buffer in my project.
>>
>> WDYT?
>
>
> It's pretty easy to write encoders that convert protocol message objects 
> to and from any encoding -- XML, JSON, whatever.  You just have to use the 
> protobuf reflection interface.  Check out how the TextFormat class is 
> implemented for an example (all three languages have this class, though 
> Python's only does printing at the moment, not parsing).
>
 
Hey guys, 
I wrote a small python converter from json/dict to protobuf and vice versa. 
https://github.com/NextTuesday/py-pb-converters It should cover even 
repeated fields. Only requirement is that one needs the classes generated 
by protobuf on the .proto files... Hope its useful, and feel free to report 
issues. 

Cheers Seif

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to