Class SoapOperationOutboundConnectorBase<T>

Type Parameters:
T - Service interface type
All Implemented Interfaces:
ConnectorDefinition, OutboundConnectorDefinition, DeclarativeElement, Orchestratable<ConnectorOrchestrationInfo>, IntegrationScenarioConsumerDefinition, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public abstract class SoapOperationOutboundConnectorBase<T> extends GenericOutboundConnectorBase
Base class for SOAP outbound connectors.

This class allows to bind one operation of a SOAP service interface to the integration scenario of the connector.

The base implementation will bind JAXB marshallers automatically.

In standard cases, adapter developers need only to implement getServiceAddress() and getServiceOperationName() optionally getServiceInterfaceClass()

  • Constructor Details

    • SoapOperationOutboundConnectorBase

      protected SoapOperationOutboundConnectorBase()
  • Method Details

    • defineOutgoingEndpoint

      protected org.apache.camel.builder.EndpointProducerBuilder defineOutgoingEndpoint()
      Description copied from class: GenericOutboundConnectorBase
      Defines the outgoing endpoint for this connector.
      Specified by:
      defineOutgoingEndpoint in class GenericOutboundConnectorBase
      Returns:
      the outgoing endpoint
      See Also:
      • StaticEndpointBuilders
      • FileEndpointBuilderFactory.FileEndpointBuilder
    • defineRequestMarshalling

      protected Optional<MarshallerDefinition> defineRequestMarshalling()
      Description copied from class: GenericOutboundConnectorBase
      Handle meant to be overloaded if the definition of a marshaller for the request type is needed.
      Overrides:
      defineRequestMarshalling in class GenericOutboundConnectorBase
      Returns:
      Marshaller for the request type
    • defineResponseUnmarshalling

      protected Optional<UnmarshallerDefinition> defineResponseUnmarshalling()
      Description copied from class: GenericOutboundConnectorBase
      Handle meant to be overloaded if the definition of an unmarshaller for the response type is needed.
      Overrides:
      defineResponseUnmarshalling in class GenericOutboundConnectorBase
      Returns:
      Unmarshaller for the response type
    • getJaxbContextPathForRequestModel

      protected String getJaxbContextPathForRequestModel()
      Returns the JAXB context path for the request model.
      Returns:
      Context path - defaults to the package name of the request model class
    • getJaxbContextPathForResponseModel

      protected Optional<String> getJaxbContextPathForResponseModel()
      Returns the JAXB context path for the response model.
      Returns:
      Context path - defaults to the package name of the response model class
    • getServiceInterfaceClass

      public Class<T> getServiceInterfaceClass()
      Returns the service interface class

      This is typically the service interface generated from a WSDL resource

      Returns:
      Service interface class
    • getServiceOperationName

      public abstract String getServiceOperationName()
      Returns the name of the operation that should be bound to the connector/integration scenario
      Returns:
      Service operation name
    • getServiceAddress

      protected String getServiceAddress()
    • getSOAPMessageFormat

      protected org.apache.camel.component.cxf.common.DataFormat getSOAPMessageFormat()
    • getDataFormat

      protected org.apache.camel.converter.jaxb.JaxbDataFormat getDataFormat() throws jakarta.xml.bind.JAXBException
      Throws:
      jakarta.xml.bind.JAXBException