Can you try the SOAP specific subclass of Fault: org.apache.cxf.binding.soap.SoapFault
The SOAP binding converts generic "Fault"s into SoapFaults and I think it specifically maps generic faults to either soap:Server or soap:Client. If you need to manipulate the SOAP fault stuff, you need to use the specific subclass. Dan On Friday 25 January 2008, azo80 wrote: > Hi, > I am having problem with setting custom FaultCode in SOAP Fault > response. I know when using XFire it could be achieved by extending > XFireFault and setting QName faultCode parameter. > > Tried to do same thing with CXF Fault class by extending it in my > ResultSetFaultMessage and call in constructor: > > public ResultSetFaultMessage(String faultInfo, String faultCode) { > super((Throwable)null, new QName(faultCode)); > this.setMessage(faultInfo); > } > > However it doesn't seem to work when throwing ResultSetFaultMessage in > my code. I'm still sending soap:Server instead of my custom fault > code. > > Any thouught? -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog