Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.이 콘텐츠는 선택한 언어로 제공되지 않습니다.
39.2. Create a Provider<?> Implementation Class
Overview 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
The fundamental prerequisite for using provider mode is to define a custom
Provider<>
class that implements the invoke()
method. In fact, the sole purpose of this class is to provide runtime type information for Apache CXF: the invoke()
method never gets called!
By implementing the provider class in the way shown here, you are merely indicating to the Apache CXF runtime that the WS endpoint should operate in in PAYLOAD mode and the type of the message PAYLOAD should be
SAXSource
.
The SAXSourceService provider class 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
The definition of the provider class is relatively short and the complete definition of the customer provider class,
SAXSourceService
, is as follows:
The customer provider class,
SAXSourceService
, must be annotated by the @WebServiceProvider
annotation to mark it as a provider class and can be optionally annotated by the @ServiceMode
annotation to select PAYLOAD mode.