youalibala / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 0 forks source link

Why is my WCF server returning empty responses using protobuf-net? #380

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Please include an e-mail address if this might need a dialogue!
==============
I've updated an existing WCF application to add protobuf-net support. 
Updated all my OperationContracts with the ProtoBehavior attribute.

What steps will reproduce the problem?
1. If I removed ProtoBehavior attribute, it returns the expected result.

What is the expected output? What do you see instead?
Expected : Have to return List<Products>.
Current Behaviour : It returns null Object.

What version of the product are you using? On what operating system?
I have installed protobuf-net through the NuGet. Windows 7

Please provide any additional information below.

I wanted to integrate ProtoBuf.Net with WCF and was searching for the solution. 
But I didnt get any perfect solution. Can you please anyone help me? If 
possible please send me a sample solution for WCF integration to my Email ID 
Rani1883@gmail.

Thanks in Advance.

Original issue reported on code.google.com by Rani1...@gmail.com on 23 May 2013 at 3:45

GoogleCodeExporter commented 8 years ago
If you look at issue 385 
https://code.google.com/p/protobuf-net/issues/detail?id=385 you can see how I 
added the ProtoBehavior via a config file in a sample WCF project. You could 
try modifying that project to demo what you're trying to accomplish.

Original comment by xeri...@gmail.com on 4 Jun 2013 at 2:29