Hi Joey,
if I’ve got You right, You want to store & retrieve an XML document in Tamino and map part(s) of it to an ADABAS database using Natural 5.
This can be done using a Mapping Server Extension (SXS) written in Natural 5, when Tamino runs on a Windows platform (COM is used as infrastructure).
There are some hints that may help You:
1. Relate Server Extension functions (map-in, map-out, delete) to the respective node for mapping. Keep in mind, that all sub-nodes must be handled by these SXS functions.
2. The parameter types must be “XML-OBJ” if XML-data, “charstr” if non-XML data is passed between Schema and SXS and vice versa.
3. When using “XML-OBJ” the Tamino document processor hands over a XML-wellformed node, and the composer expects this when receiving the data.
4. The SXS’s Natural code is “responsible” to convert XML or non-XML formatted node to Your ADABAS format and vice versa.
5. The SXS’s Natural code is “responsible” to store and retrieve the code correctly in Yor ADABAS system (or wherever You place it).
6. When enquiring a document from Tamino, the Map-Out Server Extension will only be executed, when a Map-In SXS had been executed upon processing the document.
Execution of Query Functions is indepented of mapping. It can be used to accees ADABAS data too. In this case the result has to be converted to wellformed XML by the Natural SXS.
Hope that helps, Best regards,
Michael
#API-Management#webMethods#Tamino