All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.codecentric.cxf.autodetection.diagnostics.WebServiceClientMissingFailureAnalyzer Maven / Gradle / Ivy

Go to download

Boot starter for SOAP-Webservices with Apache CXF using JAX-WS & JAXB with Annotations only

The newest version!
package de.codecentric.cxf.autodetection.diagnostics;

import org.springframework.boot.diagnostics.AbstractFailureAnalyzer;
import org.springframework.boot.diagnostics.FailureAnalysis;

/**
 * FailureAnalyzer to show custom Failure Message, if a WebServiceClient annotated class is missing
 * (which is mandatory for autodetection and instantiation of the CXF endpoint(s))
 *
 * @author jonashackt
 */
public class WebServiceClientMissingFailureAnalyzer extends AbstractFailureAnalyzer {

    @Override
    protected FailureAnalysis analyze(Throwable rootFailure, WebServiceClientNotFoundException cause) {
        return new FailureAnalysis(WebServiceClientNotFoundException.MESSAGE,
                "Use the cxf-spring-boot-starter-maven-plugin (https://github.com/codecentric/cxf-spring-boot-starter-maven-plugin) " +
                        "to generate the needed class files from your WSDL & XSDs", cause);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy