I have the following situation:
1.Step:
Mapping the incoming document against our internal schema. The output
document structure after mapping looks like this:
<openimmo><Estate><Object><…></Object><Address><…></Address></Estate><Estate><Object><…></Object><Address><…></Address></Estate><openimmo>
This output document ends up in Folder “Out”. This works great.
2.Step:
Debatching the output document so I can work with single
<Object> and single <Address> documents. Because
<Object> and <Address> each represent DB table in our MS SQL
database and for some other reasons. Therefore I have an
envelope with this structure:
<openimmo><Estate><any>
Body XPath is set to /*[local-name()=’openimmo’ and
namespace-uri()=’http://Company/Import/OpenImmo’%5D/*%5Blocal-name()=’Estate’
and namespace-uri()=”]
In addition to this I have schemas for <Object> and
<Address> nodes which have the same structure like inside the
output document (after mapping) and a custom pipeline with xml
disassembler stage and document schemas (collection) has both schemas
(Object and Address) and envelope schemas (collection) has the
openimmo envelope schema.
3.Step:
Setup the SingleMsgReceivePort with custom pipeline and
ReceiveLocation is the “Out” folder (Step 1). But when the pipeline
receives the mapped document (Step 1) I get the following error message:
Reason: Document type “http://Company/Import/OpenImmo#openimmo” does
not match any of the given schemas. Why?! I have the envelope schema
with “http://Company/Import/OpenImmo#openimmo”. Should work, heh!?
I have to say the document root looks like this: <ns0:openimmo
xmlns:ns0=”…..”>. Is the error because of the namespace prefix?