Loading non-XML

It is the part from “Requests using X-Machine Commands” book:

"You can insert XML objects and non-XML objects into a Tamino database. Tamino decides whether an object is an XML object or a non-XML objecrt depending on the MIME type specified in the HTTP header. …"

For XML objects - all right.
Question: How load non-XML objects?
:confused:
Thenk you for attention.

Hello there.

Please have a look at this page of the documentation:
   C:\Program Files\Software AG\Tamino\Tamino 3.1.2.1\Help\MAPPING\MAPNON.HTM

There you will find quite a detailed explanation of storing non-XML.
(If that isn’t enough, please ask a further question!)

I hope that helps,
Trevor.

I tested from browser:
1)
<A HREF=“http://localhost/tamino/welcome3_1_1_1/DCM?_process=<?xml%20version="1.0"%20encoding="windows-1251"?>0211<Date_Time>0000.00.00-00:00:00</Date_Time>” TARGET=_blank>http://localhost/tamino/welcome3_1_1_1/DCM?_process=<?xml%20version="1.0"%20encoding="windows-1251"?>0211<Date_Time>0000.00.00-00:00:00</Date_Time>

OK:
<?xml version="1.0" encoding="iso-8859-1" ?>
- <ino:response xmlns:ino=“http://namespaces.softwareag.com/tamino/response2” xmlns:xql=“http://metalab.unc.edu/xql/”>
- <ino:message ino:returnvalue=“0”>
ino:messagelinedocument processing started</ino:messageline>
</ino:message>
<ino:object ino:collection=“DCM” ino:doctype=“DCMXML” ino:id=“21” />
- <ino:message ino:returnvalue=“0”>
ino:messagelinedocument processing ended</ino:messageline>
</ino:message>
</ino:response>

2)
http://localhost/tamino/welcome3_1_1_1/DCM/DCMnonXML?_process=F:/IS_DCM/NONXML/avi.avi

NOT OK:
<?xml version="1.0" encoding="iso-8859-1" ?>
- <ino:response xmlns:ino=“http://namespaces.softwareag.com/tamino/response2” xmlns:xql=“http://metalab.unc.edu/xql/”>
- <ino:message ino:returnvalue=“0”>
ino:messagelinedocument processing started</ino:messageline>
</ino:message>
- <ino:message ino:returnvalue=“8702”>
<ino:messagetext ino:code=“INOXPE8702”>Invalid document prolog</ino:messagetext>
ino:messagelineLine 1, Column 1: Invalid document prolog</ino:messageline>
</ino:message>
</ino:response>

3)
http://localhost/tamino/welcome3_1_1_1/DCM/DCMnonXML/F:/IS_DCM/i-clips.gif

NO RESPONSE.

I think, what variant 2 likely realized in Interactive Interface.

Your first method of inserting documents is a correct method to use for inserting XML documents and nonxml documents.

The second and third do not work because the syntax is incorrect.

You mention the Interactive Interface and method 2
which was http://localhost/tamino/welcome3_1_1_1/DCM/DCMnonXML?_process=F:/IS_DCM/NONXML/avi.avi

The Tamino Interactive Interface does a HTTP POST and on the post the browser will open the file and feed the contents of the file as the body of the request. So passing a filename as above is not valid. However the response from Tamino seems to imply that DCMnonXML is not a document type for storing non xml.

How do you really want to store NonXML? Are you wanting to do something like the Tamino Interactive Interface or are you going to be storing documents using Java or JScript for example?

Thank you for explanation. This is helpful for me.

About loading non-XML.

I am loading now non-XML files with help of
ActiveX from JScript function:

nonXMLObject = new ActiveXObject(“TAMINONONXML.TaminoNonXmlCtrl1”)

lDoc = nonXMLObject.SetNonXmlWithFilename(CollectionName +’/’
+DocTypeNamenonXML+’/’
+LetterFileName,
nonXMLFullFileName,
ContentType)

All right. But, I must register TaminoNonXML.ocx
on every client’s place:

regsvr32 TaminoNonXml.ocx

The instrument of Interactive Interface require
only small TII.JS.
But, I can not obtain response-data (innerText or innerHTML) from “xqlout” frame to my JS-function.

Good luck.