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 8656113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:11:56+00:00 2026-06-12T15:11:56+00:00

I have a problem with message parsing on WCF service. I ran server-side of

  • 0

I have a problem with message parsing on WCF service.
I ran server-side of WCF application. Another company sends me such HTTP POST request:

POST /telemetry/telemetryWebService HTTP/1.1
Host: 192.168.0.160:12123
Content-Length: 15870
Expect: 100-continue
Connection: Keep-Alive

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header>
    <wsse:Security> ... </wsse:Security>
  </soapenv:Header>
<soapenv:Body>
...
</soapenv:Body>
</soapenv:Envelope>

How you can see this in this HTTP request missing 2 important headers: Soap Action and Content-type.That’s why my service cannot process this request correctly.

I need to catch the request until it starts to be processed and manually add these headers.

I’ve already tried IDispatchMessageInspector, but whithout any result.

  • 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-12T15:11:57+00:00Added an answer on June 12, 2026 at 3:11 pm

    Thank you all.

    1) You need to create you own custom message encoder, where you can create the Content-type by default. Yщu can read it here with examples.

    2) You need to create custom message filter because you need to skip messages without SoapAction

    public class CustomFilter : MessageFilter
    {
        private int minSize;
        private int maxSize;
        public CustomFilter()
            : base()
        {
    
        }
        public CustomFilter(string paramlist)
            : base()
        {
            string[] sizes = paramlist.Split(new char[1] { ',' });
            minSize = Convert.ToInt32(sizes[0]);
            maxSize = Convert.ToInt32(sizes[1]);
        }
        public override bool Match(System.ServiceModel.Channels.Message message)
        {
            return true;
        }
        public override bool Match(MessageBuffer buffer)
        {
            return true;
        }
    }
    

    3) You need to create custom message selector for assigning incoming messages to operations. Cybermaxs‘s example is very good.

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

Sidebar

Related Questions

THIS IS THE FULL SCRIPT http://goo.gl/HoCxk I have a problem with this function: $('.message').click(function(){
I have a problem related to parsing a SOAP message. This is the message:
Greetings, I have problem with errorPlacement, I'm trying to place the error message next
I am new to QTP and I have a problem with error validation message.
So here is the problem. I have a method (or message as they are
I have some problem with JSON parsing. When I hit URL, I've got JSON
im having problem whith a POST request. I have to receive an XML message
Deployment of a WCF Service in the IIS is giving the following error: Server
I have a wcf service (parser service, byte[]=>string) [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession, ConcurrencyMode = ConcurrencyMode.Multiple)]
I'm having a problem when passing a parameter to the WCF service. The parameter

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.