Skip to content

Commit

Permalink
Fix message creation for exceptions on server side.
Browse files Browse the repository at this point in the history
Windows runtime adds "urn:" for every 'Action' node in header. It was not a problem until we pass exceptions with inner exception. In such case deserialization on windows fails.
Adding "urn:" for each 'Action' node solves the problem.
  • Loading branch information
Mateusz Mor committed Aug 30, 2013
1 parent 7e2236c commit 5896e35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Message BuildExceptionMessage (MessageProcessingContext mrc, Exception ex, bool
if (fe != null && IsGenericFaultException (fe.GetType (), out gft)) {
foreach (var fci in mrc.Operation.FaultContractInfos) {
if (fci.Detail == gft)
return Message.CreateMessage (req.Version, fe.CreateMessageFault (), fci.Action);
return Message.CreateMessage (req.Version, fe.CreateMessageFault (), "urn:"+fci.Action);
}
}

Expand Down

0 comments on commit 5896e35

Please sign in to comment.