Can someone recommend me how to set faultcode in SOAPFault in webservice which is sent to the client. I throw an exception marked with @Webfault annotation. I can set fault message but not faultcode. I tried different methods, nothing works. The maximum what I can do is to set it with a wrong prefix (e.g. n4:1234 while i need 1234). I already tried native DOM methods in a handler, but it doesn't work either. Can anybody help me?