I need to trigger functions in Tamino for my work. I was following the intructions in “JAVA Trigger Sample”. At step 2 when you need to define the schema "TriggerJ_schema.tsd, instead of the successful message I get the following message:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
−
−
Not a valid request
Value of command _DEFINE must be text.
I think it seems the Define form did not read the content my schema file.
I tried to use SoftwareAG Tamino X-Plorer to define my schema. It worked wells. But since I don’t follow exactly the steps in the README for JavaTrigger example so there’s no SXSJSample schema defined in collection SXSJSample when you defineTriggerJ_schema.tsd
Any ideas to overcome this? Thanks you for reading my troublesome post :
it looks the browser sends the content of the schema file (TriggerJ_schema.tsd) as a mime/content type which Tamino does not perceive as text. There are two approaches to solve this:
(1) workaround: rename the schema file to use another extension instead of .tsd, e.g. .txt or .xml
(2) towards a real solution: activate Tamino’s XML request log or use an HTTP sniffer and check the mimetype associated to the DEFINE command.
If you are using IE it is likely that the content type being sent to Tamino is based on the file extension and applications associated to the extension. When working under Windows: which type of file is given for .tsd in Windows explorer?