xml - C# WCF Client <--> Service Behavior switching -
lets want have service uses 2 different forms of serialization , have client has 2 buttons, 1 first behavior (xml) , second 1 lets (protobuf)
is there need in order let client choose serilization should used?
i got 2 endpointbehaviors in app.config service. xml , protobuf.
am missing something? interface got protocontract attribute , datacontract got of protomember attributes.
anyone knows want , can me out? sorry no code, theorem @ point.
provide code please.
i think miss second interface. need interface each form of serialization.
something this:
[servicecontract] public interface ifirstservice { //methods } [servicecontract] public interface isecondservice { //methods } [servicebehavior] public class yourclass: ifirstservice, isecondservice { //methods }
Comments
Post a Comment