Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7765359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:08:52+00:00 2026-06-01T15:08:52+00:00

WCF gurus, you probably already know the answer I cannot find … let’s say

  • 0

WCF gurus,

you probably already know the answer I cannot find …

let’s say I have some web service (WCF) and a client application (based on curl library). Sometimes on the server site I got the strange error:

The OperationFormatter could not deserialize any information from the Message because the Message is empty (IsEmpty = true).
System.Runtime.Serialization.SerializationException: The OperationFormatter could not deserialize any information from the Message because the Message is empty (IsEmpty = true).
Source: System.ServiceModel
Stack trace:
at System.ServiceModel.Dispatcher.PrimitiveOperationFormatter.DeserializeRequest(Message message, Object[] parameters)
Rethrown as:
System.ServiceModel.CommunicationException: Error in deserializing body of request message for operation ‘…’. The OperationFormatter could not deserialize any information from the Message because the Message is empty (IsEmpty = true).
Source: System.ServiceModel
Stack trace:
at System.ServiceModel.Dispatcher.PrimitiveOperationFormatter.DeserializeRequest(Message message, Object[] parameters)
at System.ServiceModel.Dispatcher.DemultiplexingDispatchMessageFormatter.DeserializeRequest(Message message, Object[] parameters)
at System.ServiceModel.Dispatcher.UriTemplateDispatchFormatter.DeserializeRequest(Message message, Object[] parameters)
at System.ServiceModel.Dispatcher.CompositeDispatchFormatter.DeserializeRequest(Message message, Object[] parameters)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.DeserializeInputs(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
…

On the client site I see (in the log) that a client sends a request and the request is not empty (has some body) but I would like to verify that WCF receives this request from the wire.
How can I do that?
Ideally I would log an incoming request (raw bytes) in the error handler like System.ServiceModel.Dispatcher.IErrorHandler, otherwise collect the data somewhere and then log them while the error happens (some kind of low-level http traffic proxy on the server side?).

Another solution could be install Wireshark on the server site but I prefer avoid it because it happens on customer site and I do not have any access to her machine.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:08:53+00:00Added an answer on June 1, 2026 at 3:08 pm

    I think, I found good a little bit complicated solution. If you need to do something like what I have asked in the question, you need to implement MessageEncoder and install it via MessageEncodingBindingElement. Override ReadMessage(...) methods in MessageEncoder, there you will have access to the buffer that contains raw incoming body.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

WCF service has one method ( Let's say TestMethod) in which I try to
I have a new question for WCF gurus. So, I have a class User
Simple question for MS insiders and/or WCF gurus: How do I specify by config
WCF-service is hosted by ASP.NET web-site. ASP.NET Membership is not used in web-site. User
A WCF web service with the right class and method attributes can be accessed
Does WCF RIA services supports custom methods? also in which dll can i find
A WCF service has been written and can be hosted in any web site.
WCF binding chooser algorithm I have watched a speak at a TechEd conference that
Noob WCF/REST question here! I need to build a simple web service (one method
Monotouch/WCF: why cannot override the wcf binding default timeout setting: public class MyServiceClient :

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.