Debatching XML File with custom Pipeline

Home Page Forums BizTalk 2004 – BizTalk 2010 Debatching XML File with custom Pipeline

Viewing 0 reply threads
  • Author
    Posts
    • #25840

      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&#8217;
      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&#8221; does
      not match any of the given schemas. Why?! I have the envelope schema
      with “http://Company/Import/OpenImmo#openimmo&#8221;. 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?

Viewing 0 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.