Class RfcXmlGenerator

  • All Implemented Interfaces:
    AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, ConnectedService, com.adaptris.core.licensing.LicensedComponent, MessageEventGenerator, Service, StateManagedComponent
    Direct Known Subclasses:
    BapiXmlGenerator

    @ComponentProfile(summary="Helper that generates an XML input file for a SAP RFC",
                      tag="service,sap,rfc",
                      recommended={ConfiguredRfcConnection.class,DynamicRfcConnection.class})
    public class RfcXmlGenerator
    extends com.adaptris.core.licensing.LicensedService
    implements ConnectedService
    Service implementation that generates an XML input file sample for a RFC.

    This service determines the RFC to invoke based on the the xpath local-name(/*). After querying the configured repository, it generates a sample document that contains all the elements required to execute a RFC. If you map your input file to the generated example, then it will be possible to use DynamicBapiProducer or DynamicRfcProducer as your producer without explicitly configuring any ExportParameter or ImportParameter instances.

    • Input parameters will always be a child of the [RFC_NAME]/INPUT element
    • Output parameters will always be a child of the [RFC_NAME]/OUTPUT element
    • Table parameters will be a child of the [RFC_NAME]/INPUT/TABLES element and also the [RFC_NAME]/OUTPUT/TABLES element as tables could form both a an input and output parameter; how you can have multiple rows for a table parameter should be obvious from the resulting XML.
    • CHANGING parameters are not currently supported.
    • Every element has attribute information for mapping and informational purposes; it is redundant at runtime

    In the adapter configuration file this class is aliased as sapjco3-rfc-xml-generator which is the preferred alternative to the fully qualified classname when building your configuration.

    License Required: ENTERPRISE