zig8953
zig8953

Reputation: 47

WCF When responding via Message.CreateMessage tags are swapped

I am implementing the IDispatchMessageInspector in the BeforeSendReply method, in which the signed xml is loaded. For clarity, an xml document without a signature.

string testXml = System.IO.File.ReadAllText("C:\\test\\test.xml");
XmlReader reader = XmlReader.Create(new StringReader(testXml));
var message = Message.CreateMessage(reader, int.MaxValue, reply.Version);
reply = message;

After receiving the response in SoapUI, the tags are swapped. The upper xml loaded from the file, the lower response in SoapUI This response does not pass validation, by checksum.

Please tell me, is it possible to return the data without changes?

The function for the signature returns a string. Maybe there are other ways to return the answer?

enter image description here

Upvotes: 0

Views: 109

Answers (0)

Related Questions