Originally posted by: SystemAdmin
Hello,
I am testing WTX 8.4.0.3 and I tried to use z/OS XML System Services.
Manual says like this:
“To use z/OS XML System Services to parse an XML document, supply the input schema as a binary Optimized Schema Representation (OSR) file. Use the z/OS xsdorg command to generate the OSR file. Specify the path to the OSR file in the Schema > Type > Metadata property of the input card "
I have used the z/OS xsdorg command to create OSR-file from schema.
Because I run my map in z/os, input card’s definitions is like this: Schema -> Type -> Metadata -> //DD:PN010103
In my execution JCL, PN010103 points to OSR-file like this: //PN010103 DD PATH='/tmp/o.osr',PATHOPTS=(ORDONLY)
I have two version of the map, one where input TypeTree is imported from schema and other where input TypeTree is native schema.
With native schema input TypeTree, I get these error messages:
(Level 0: Offset 0, len 0, comp 1 of 0, Ä1, DI 000000000001:)
External Parser returned Error:
TYPE X'0002' (XMLParser: Invalid metadata location.).
With input TypeTree imported from schema, I get these error messages:
(Level 2: Offset 0, len 3, comp 1 of 3, Ä1, DI 000000000001:)
Data at offset 0 ('<?x') was found to be of TYPE
X'0005' (version Prolog XSD).
(Level 2: Offset 0, len 8, comp 2 of 3, Ä1, DI 000000000002:)
Data at offset 0 ('<?xml ve') was found to be of TYPE
X'0006' (encoding Prolog XSD).
(Level 1: Offset 0, len 41, comp 1 of 2, Ä1, DI 000000000003:)
Data at offset 0 ('<?xml version="1...') was found to be of TYPE
X'0004' (Decl Prolog XSD).
(Level 0: Offset 0, len 406, comp 1 of 0, Ä1, DI 000000000004:)
Data at offset 0 ('<?xml version="1...') is INVALID data of TYPE
X'0002' (Doc XSD).
(Level 0: Offset 0, len 406, comp 1 of 0, Ä1, DI 000000000005:)
External Parser returned Error:
TYPE X'0002' (Error (-1), "XMLParser: Input XML data is invalid."
SAXParseException, Fatal error Ýline: 1 column: 1¨ An exception occurred€ Type:UTFDataFormatException, Message:invalid byte (X) of a -byte sequence.
Error (-1), "XMLParser: Input XML data is invalid."
SAXParseException, Fatal error Ýline: 12 column: 26¨ Fatal error encountered during schema scan
If //PN010103 points to "normal" schema file both maps run fine.
I am quite lost with this. Can anyone please help me.
Riitta
#IBMSterlingTransformationExtender#DataExchange#IBM-Websphere-Transformation-Extender