2 Replies Latest reply on Apr 12, 2010 11:25 AM by jc Souvignet

    CXF / SOAP 1.2 FAULT - Bad request : Fault Code Sender - HTTPStatuscode 400

    jc Souvignet Newbie



      I use CXF 2.2.7 standalone to create web service.


      I would implement web service and throw a fault soap when the in message did not contain the appropriate information.


      From Soap 1.2 specification :

      Fault code should be "Sender" and Http status code should be 400.


      I don't know how implement this behaviour. I haven't found any example to  help me.


      So I create an Interceptor "SenderSoapFaultOutInterceptor" to do so.

      I set one information in message context to identify this type of error, and my interceptor check the value to modify or note the message.



      Do there are something in CXF Framework to do so without my implementation ?

      Does this implementation is in the feeling spirit of CXF product ?


      Thanks in advance for your reply.