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

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -