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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -