Hello!
I might have a very stupid answer, but here is what I have cooked up. (Someone may have a far better solution than this!)
Before we get too far into this, I would like to give a hint that may prevent some troubles later: having the root node “Customers” (plural) leads me to suspect that there will be multiple “cs:customer” nodes within it.
If this is the case, I would recommend that you reconsider this for Tamino. You will gain more benefit from Tamino if you store multiple “cs:customer” documents [in a Collection called “Customers”] rather than one huge “Customers” document [containing all the “customer” documents].
(One huge document is more suited for a filesystem. Tamino will be much faster with multiple documents.)
To get on with answering your question: firstly you should probably change the XML instance so that the “cs” namespace is defined:
<Customers xmlns:cs="http://namespaces.flibble.com/names/cs">
<cs:customer>
</cs:customer>
</Customers></pre><BR>(Use whichever URI is appropriate for the namespace.)<BR><BR>Second, define the "customer" schema (with the "cs" namespace) in Tamino:<BR><pre class="ip-ubbcode-code-pre"><?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema targetNamespace="http://namespaces.flibble.com/names/cs"
xmlns:cs="http://namespaces.flibble.com/names/cs"
xmlns:tsd="http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>
<tsd:schemaInfo name="customer">
<tsd:collection name="temp"></tsd:collection>
<tsd:doctype name="cs:customer">
<tsd:logical>
<tsd:content>closed</tsd:content>
</tsd:logical>
</tsd:doctype>
<tsd:adminInfo>
<tsd:created>2003-02-07T15:19:06.899-08:00</tsd:created>
<tsd:modified>2003-02-07T15:22:46.815-08:00</tsd:modified>
<tsd:version>TSD4</tsd:version>
<tsd:server>4.1.1.1</tsd:server>
</tsd:adminInfo>
</tsd:schemaInfo>
</xs:appinfo>
</xs:annotation>
<xs:element name="customer" type="xs:string"></xs:element>
</xs:schema></pre><BR><BR>Then define the "Customers" schema (with no namespace) in Tamino:<BR><pre class="ip-ubbcode-code-pre"><?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema xmlns:cs="http://namespaces.flibble.com/names/cs"
xmlns:tsd="http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>
<tsd:schemaInfo name = "Customers">
<tsd:collection name="temp"></tsd:collection>
<tsd:doctype name = "Customers">
<tsd:logical>
<tsd:content>closed</tsd:content>
</tsd:logical>
</tsd:doctype>
<tsd:adminInfo>
<tsd:created>2003-02-07T15:24:29.262-08:00</tsd:created>
<tsd:modified>2003-02-07T15:24:29.262-08:00</tsd:modified>
<tsd:version>TSD4</tsd:version>
<tsd:server>4.1.1.1</tsd:server>
</tsd:adminInfo>
</tsd:schemaInfo>
</xs:appinfo>
</xs:annotation>
<xs:import namespace="http://namespaces.flibble.com/names/cs"
schemaLocation="customer"></xs:import>
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
<xs:element name="Customers">
<xs:complexType>
<xs:sequence>
<xs:element ref="cs:customer" maxOccurs="unbounded"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
(The “Customers” schema imports the “customer” schema and its targetNamespace “cs”.)
I hope that is helpful,
Trevor.
#API-Management#Tamino#webMethods