[protobuf] Protobuf over HTTP

2010-11-24 Thread mvbaffa
Hi,

I have a Flex 4 client and I want to make it talk to a WCF/JSON
Service. I have read that protobuf-net fill the WCF part of my
communication. I hope that some actionscript protobuf project can do
the actionscript part.

Sorry about asking this, maybe this is a basic question but I could
not find in documentation the answer.

What is the channel used by Protobuf ???

- It uses sockets ???
- How can I send information with Protobuf using and HTTP tunnel.

Do you have any reference of a real example sending and receiving
information using, including HTTP protocol.

Thanks in advance.

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



Re: [protobuf] Protobuf over HTTP

2010-11-24 Thread Pavel Shramov
On Wed, Nov 24, 2010 at 02:54:58AM -0800, mvbaffa wrote:
 Do you have any reference of a real example sending and receiving
 information using, including HTTP protocol.
Search mailing list for 'http'. It was discussed numerious times already.

For example I'm using protobuf over http (with actionscript too).
Nothing difficult, just set propert Content-Type and be happy
Pavel

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



Re: [protobuf] Protobuf over HTTP

2010-11-24 Thread Marc Gravell
Note that the protobuf-net *inside WCF* is going to be largely .NET/WCF
specific.

If you want to talk cross-platform, vanilla HTTP would be preferable, or
alternatively just transfer a `byte[]` or `Stream` in your regular
web-service tools of choice.

(note also: MTOM may be helpful if your toolset supports it at both ends)

If you are going HTTP, note that it is pretty easy to hook into MVC:
http://marcgravell.blogspot.com/2010/06/extending-aspnet-mvc-with-custom.html

http://marcgravell.blogspot.com/2010/06/extending-aspnet-mvc-with-custom.htmlMarc
(protobuf-net)

On 24 November 2010 10:54, mvbaffa mvba...@gmail.com wrote:

 Hi,

 I have a Flex 4 client and I want to make it talk to a WCF/JSON
 Service. I have read that protobuf-net fill the WCF part of my
 communication. I hope that some actionscript protobuf project can do
 the actionscript part.

 Sorry about asking this, maybe this is a basic question but I could
 not find in documentation the answer.

 What is the channel used by Protobuf ???

 - It uses sockets ???
 - How can I send information with Protobuf using and HTTP tunnel.

 Do you have any reference of a real example sending and receiving
 information using, including HTTP protocol.

 Thanks in advance.

 --
 You received this message because you are subscribed to the Google Groups
 Protocol Buffers group.
 To post to this group, send email to proto...@googlegroups.com.
 To unsubscribe from this group, send email to
 protobuf+unsubscr...@googlegroups.comprotobuf%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/protobuf?hl=en.




-- 
Regards,

Marc

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



[protobuf] Re: Protobuf over HTTP

2010-11-24 Thread mvbaffa
I will look for the threads, Thank you.

I have a huge legacy in WCF/JSON and WCF/WsHttpBinding. I need to make
it work with Flex. I have already used Fluorine but I would like to
use protobuf now for my services.

I intend to use protobuf-net in the server and protobuf-actionscript3
in the client. This is the first time I use protobuf. I need an
example, specially in Flex. If I use in the server a WCF/protobuf-net
how could I call in ActionScript this service.

To be frank I still do not understand how to configure protobuf. How
do I define the endpoints in Flex using the URLRequest,
HttpService ???

Pavel and Marc, please, can you send some code so that I can test the
Flex and WCF.

Thanks in advance

On Nov 24, 9:16 am, Pavel Shramov shra...@mexmat.net wrote:
 On Wed, Nov 24, 2010 at 02:54:58AM -0800, mvbaffa wrote:
  Do you have any reference of a real example sending and receiving
  information using, including HTTP protocol.

 Search mailing list for 'http'. It was discussed numerious times already.

 For example I'm using protobuf over http (with actionscript too).
 Nothing difficult, just set propert Content-Type and be happy
                         Pavel

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



Re: [protobuf] Re: Protobuf over HTTP

2010-11-24 Thread Marc Gravell
As yet, there is no single common RPC standard for use with protobuf. 
Protobuf-net hacks itself into WCF by swapping out some WCF guts, but while 
that will work with WCF-to-WCF it won't make sense to flex. That is why I 
suggested just sending a byte-array, since this is easily represented by most 
platforms (either as base-64 or MTOM). Of course you then need to deal with the 
byte-array at each end, but that is not usually a problem.

Marc

On 24 Nov 2010, at 13:41, mvbaffa mvba...@gmail.com wrote:

 I will look for the threads, Thank you.
 
 I have a huge legacy in WCF/JSON and WCF/WsHttpBinding. I need to make
 it work with Flex. I have already used Fluorine but I would like to
 use protobuf now for my services.
 
 I intend to use protobuf-net in the server and protobuf-actionscript3
 in the client. This is the first time I use protobuf. I need an
 example, specially in Flex. If I use in the server a WCF/protobuf-net
 how could I call in ActionScript this service.
 
 To be frank I still do not understand how to configure protobuf. How
 do I define the endpoints in Flex using the URLRequest,
 HttpService ???
 
 Pavel and Marc, please, can you send some code so that I can test the
 Flex and WCF.
 
 Thanks in advance
 
 On Nov 24, 9:16 am, Pavel Shramov shra...@mexmat.net wrote:
 On Wed, Nov 24, 2010 at 02:54:58AM -0800, mvbaffa wrote:
 Do you have any reference of a real example sending and receiving
 information using, including HTTP protocol.
 
 Search mailing list for 'http'. It was discussed numerious times already.
 
 For example I'm using protobuf over http (with actionscript too).
 Nothing difficult, just set propert Content-Type and be happy
 Pavel
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Protocol Buffers group.
 To post to this group, send email to proto...@googlegroups.com.
 To unsubscribe from this group, send email to 
 protobuf+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/protobuf?hl=en.
 

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



[protobuf] Re: Protobuf over HTTP

2010-11-24 Thread mvbaffa
I supposed I could send information from Flex using ProtoBuf-
Actionscript and a WCF Service using a ProtoBufSerializationBehavior,
from protobuf-net, could receive and deserialize the information. In
that case I would need only to make avaiable the same services I
already have with a diferent behaviour configuration.

Is this is a correct assumption 

This way I can make, almost automatically, everything that is already
working for Javascript to work for Flex/Air. That's why to use
protobuf-net in the server is so important.

The problem is to make Protobuf work  for actionscript. I can already
compile my .proto in .as classes. What I need is a simple getting
started to make Flex send and receive protobuf packages.

Is there anyone that can publish a simple code to send and receive
protubuf in actionscript ???

Thanks in advance.

On Nov 24, 3:01 pm, Marc Gravell marc.grav...@gmail.com wrote:
 As yet, there is no single common RPC standard for use with protobuf. 
 Protobuf-net hacks itself into WCF by swapping out some WCF guts, but while 
 that will work with WCF-to-WCF it won't make sense to flex. That is why I 
 suggested just sending a byte-array, since this is easily represented by most 
 platforms (either as base-64 or MTOM). Of course you then need to deal with 
 the byte-array at each end, but that is not usually a problem.

 Marc

 On 24 Nov 2010, at 13:41, mvbaffa mvba...@gmail.com wrote:



  I will look for the threads, Thank you.

  I have a huge legacy in WCF/JSON and WCF/WsHttpBinding. I need to make
  it work with Flex. I have already used Fluorine but I would like to
  use protobuf now for my services.

  I intend to use protobuf-net in the server and protobuf-actionscript3
  in the client. This is the first time I use protobuf. I need an
  example, specially in Flex. If I use in the server a WCF/protobuf-net
  how could I call in ActionScript this service.

  To be frank I still do not understand how to configure protobuf. How
  do I define the endpoints in Flex using the URLRequest,
  HttpService ???

  Pavel and Marc, please, can you send some code so that I can test the
  Flex and WCF.

  Thanks in advance

  On Nov 24, 9:16 am, Pavel Shramov shra...@mexmat.net wrote:
  On Wed, Nov 24, 2010 at 02:54:58AM -0800, mvbaffa wrote:
  Do you have any reference of a real example sending and receiving
  information using, including HTTP protocol.

  Search mailing list for 'http'. It was discussed numerious times already.

  For example I'm using protobuf over http (with actionscript too).
  Nothing difficult, just set propert Content-Type and be happy
                          Pavel

  --
  You received this message because you are subscribed to the Google Groups 
  Protocol Buffers group.
  To post to this group, send email to proto...@googlegroups.com.
  To unsubscribe from this group, send email to 
  protobuf+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/protobuf?hl=en.- Hide quoted text -

 - Show quoted text -

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



[protobuf] Re: Issue 83 in protobuf: protobuf does not compile cleanly in 64-bit mode in Visual Studio 2008

2010-11-24 Thread protobuf


Comment #17 on issue 83 by heydunne: protobuf does not compile cleanly in  
64-bit mode in Visual Studio 2008

http://code.google.com/p/protobuf/issues/detail?id=83

My apologies; the functions did not change; I was reading an *internally*  
patched version  of 2.2.0.
FWIW, we modified src/google/protobuf/io/coded_stream.h with the attached  
patch ( it does not resolve all the issues described in this bug report,  
but it resolved our compilation problems  with WriteString and  
WriteStringToArray without runtime issues, and without having to suppress  
compilation warnings; perhaps it might help others here )
As an aside, thanks for making protobuf open-source, it's had a profound  
positive effect on some of our ipc work.

thanks






Attachments:
difference.txt  266 bytes

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



Re: [protobuf] Re: Protobuf over HTTP

2010-11-24 Thread Marc Gravell
That all depends on how ProtoBuf-Actionscript encodes the payload. I know
nothing about that, so can't really comment.

On 24 November 2010 19:28, mvbaffa mvba...@gmail.com wrote:

 pposed I could send information from Flex using ProtoBuf-
 Actionscript




-- 
Regards,

Marc

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



[protobuf] Issue 239 in protobuf: Missing file

2010-11-24 Thread protobuf

Status: New
Owner: ken...@google.com
Labels: Type-Defect Priority-Medium

New issue 239 by fraser.hutchison: Missing file
http://code.google.com/p/protobuf/issues/detail?id=239

It appears that the file  
\google\protobuf\compiler\java\java_string_field.cc is missing from the  
libprotoc project (for MSVC).  This causes two linker errors when building  
protoc.


protoc builds successfully when java_string_field.cc is added.

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