Skip to content

Fixed issue #1194, with unit tests - #1195

Open
VladimirChumakov wants to merge 1 commit into
DigDes:developfrom
VladimirChumakov:develop
Open

VladimirChumakov wants to merge 1 commit into
DigDes:developfrom
VladimirChumakov:develop

Conversation

@VladimirChumakov

Copy link
Copy Markdown

Fixes #1194

Problem

Custom SOAP headers in incoming messages get corrupted by SoapCore before being passed to registered IMessageInspector2 in AfterReceiveRequest call.

Fix

The fix is in ParsedMessageHeader.cs file, OnWriteHeaderContents method where the attributes are now written with a namespace prefix, if known, otherwise falls back to the existing functionality.

Tests

Tests are in src\SoapCore.Tests\Serialization\Issue1194 folder, and test both Soap 1.2 and 1.1 messages.
The new tests fail before the fix and pass after.
The rest of the test suite is unaffected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Messages received in IMessageInspector2.AfterReceiveRequest have SOAP headers corrupted

1 participant