Questions tagged [wcf-serialization]

19 questions
1
vote
1 answer

Why is a message in WCF seemingly always in SOAP format?

I have implemented a message inspector in WCF by implementing IDispatchMessageInspector. Putting a break point on this method... public object AfterReceiveRequest(ref Message request, IClientChannel channel, InstanceContext instanceContext) { //…
Remotec
  • 10,304
  • 25
  • 105
  • 147
0
votes
1 answer

WCF with XmlSerializer: namespace collision when returning generic contracts

The background I'm developing a REST API for a C#.NET web application using WCF. I configured it to use the XmlSerializer rather than its default DataContractSerializer, for greater control over the XML format. I created a generic…
Pathoschild
  • 4,636
  • 2
  • 23
  • 25
0
votes
0 answers

Auto serialize Entity Framework entities WCF

It is possible to "auto" serialize all entities from a database when solution is build? (I use WCF, WPF and Entity Framework 6) I observed that some of entities are serialized without doing anything. In Service Reference configuration (at client)…
BMA
  • 33
  • 6
0
votes
1 answer

WCF strage behavior with object serialization

Recently I came across a weird behavior in WCF serialization. Its a simple service which exposes one operation contract and returns object of a class (This class is not decorated with [Serializable] or [DataContract] attributes. However when I call…
Nitin K
  • 47
  • 9
1
2