How to avoid the message: "getFaultSubCodes operation not supported by SOAP 1.1" using CXF

My java webapp uses CXF to publish some web services with SOAP 1.1.

In my server logs (Apache Tomcat catalina.out file) I get entries: GRAVE: SAAJ0303: getFaultSubcodes operation not supported by SOAP 1.1

These log lines occur every time the java webapp business code throws an instance of javax.xml.ws.soap.SOAPFaultException. This exception is handled by Apache CXF org.apache.cxf.jaxws.interceptors.WebFaultOutInterceptor, which calls getFaultSubcodes on the SOAPFault instance.

With SOAP 1.1 SOAPFault, the getFaultSubcodes call throws a UnsupportedOperationException caught by CXF, but the SOAPFault implementation class logs the message. Is there a specific CXF error trap with SOAP 1.1?

Does anyone know how to avoid CXF causing an unsupported GetFaultSubcodes operation?

+4
source share
1 answer

Here is a good explanation and here is a related (authorized) release reported July 25, 2017.

You have at least these two solutions:

  • SOAP, 1.2 factory, . OP: SOAP faultCode SOAPFaultException. SOAP 1.1 1.2 faultCode.

SOAPFactory fac = SOAPFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);

  1. , CXF - 3.0.15, 3.1.13 3.2.0. ( 11 2017 ).
+2

All Articles