@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
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.
[RFC_NAME]/INPUT
element[RFC_NAME]/OUTPUT
element[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.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
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
RfcXmlGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeService() |
void |
doService(AdaptrisMessage msg) |
AdaptrisConnection |
getConnection() |
protected void |
initService() |
boolean |
isEnabled(com.adaptris.core.licensing.License license) |
protected void |
prepareService() |
void |
setConnection(AdaptrisConnection connection)
Set the connection used to connect to SAP.
|
void |
start() |
void |
stop() |
prepare
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsConfirmation, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isConfirmation, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, rethrowServiceException, retrieveComponentState, setContinueOnFail, setIsConfirmation, setIsTrackingEndpoint, setLookupName, setUniqueId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
continueOnFailure, isBranching, setUniqueId
createName, createQualifier, isConfirmation, isTrackingEndpoint
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
getUniqueId
close, init
prepare
getLookupName
protected void prepareService() throws CoreException
prepareService
in class com.adaptris.core.licensing.LicensedService
CoreException
public boolean isEnabled(com.adaptris.core.licensing.License license)
isEnabled
in interface com.adaptris.core.licensing.LicensedComponent
protected void initService() throws CoreException
initService
in class ServiceImp
CoreException
public void start() throws CoreException
start
in interface ComponentLifecycle
start
in class ServiceImp
CoreException
public void stop()
stop
in interface ComponentLifecycle
stop
in class ServiceImp
protected void closeService()
closeService
in class ServiceImp
public void doService(AdaptrisMessage msg) throws ServiceException
doService
in interface Service
ServiceException
public AdaptrisConnection getConnection()
getConnection
in interface ConnectedService
public void setConnection(AdaptrisConnection connection)
setConnection
in interface ConnectedService
connection
- the connection, either a SharedConnection
or a ConfiguredRfcConnection
Copyright Adaptris