biztalk - Set namespace prefix on FaultCode c#.net -
i expecting following response faultcode send client if fault occurs in faultexception. custom certificate validator put on biztalk receive location
<faultcode xmlns:ssek="http://myschemas.testns.org/testns/2006-05-10/">ssek:invalidcertificate</faultcode>
but when have written following code.
faultcode code = new faultcode("invalidcertificate", "http://myschemas.testns.org/testns/2006-05-10/"); throw new faultexception("received invalid client certificate", code);
faultcode coming
<faultcode xmlns:a="http://myschemas.testns.org/testns/2006-05-10/">a:invalidcertificate</faultcode>
i want modify prefix "a" "ssek".
please can me this.
regards kundan
related msdn article, default behavior when faultcode serialized.
to override generation, can create custom messageformatter. there article explaining how attribute on contract operations.
hope helpe you.
Comments
Post a Comment