Client code seems to ignore the attribute ProtoBehavior, while server
respect it
Is there a sample code for the following scenario?
I write dotnet (C#)client
Try to connect to WCF service
The service interface have [ProtoBehavior] on the relevant behavior
    [ServiceContract(
        Namespace = Constants.Namespace/**/,
        SessionMode = SessionMode.NotAllowed/**/)]
    public interface IGridService
    {
        [OperationContract
#if USE_PROTOBUF
        , ProtoBehavior
#endif
        ]
        [FaultContract(typeof(ArgumentFault))]
        ComplexUpdateResult ComplexUpdate(ComplexUpdateRequest
request);
    }

I’ve put protobuf-net project in my solution
Breakpoints at all methods of ProtoBehaviorAttribute
When I run the host in the debugger – the breakpoints are reached, but
not when I run the client
And on the network (Via wireshark or Fiddler2) I, indeed, see that the
client send date the message as XML rather than ProtoBuf

Any idea what am I missing in order for the client to treat the
attribute?

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

Reply via email to