RFCencode

The service converts an RFC call that is stored in the pipeline to an XML string in a format specified by the SAP RFC-XML (XRFC) specification. This service needs the RFC calls in values representation as input.

Input parameters
serverName
SAP system that is used as a repository. This name must match a configured RFC connection alias at SAP® ERP.
$encoding
Optional. Specifies the encoding that is used in the output document's XML header, for example, iso-8859-1
$call
Optional. A flag that indicates whether the pipeline is interpreted as a call or as a response.
  • true for call.
  • false for response.
$envelope
Optional. XRFC, bXML, or SOAP. Specifies the type of document generated.
Return values
xmlData
String. Contains the RFC-XML representation of the RFC.
contentType
Content type that is associated with the generated document, for example, application/x-sap.rfc.

Example

Use the service to create RFC-XML corresponding to the pipeline and perhaps forward it to another server, for example, through HTTP. It is done in the XML transport's outbound process for function modules.