ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Error on deploying application with DFDL schema

Post new topic  This topic is locked: you cannot edit posts or make replies.
 Error on deploying application with DFDL schema « View previous topic :: View next topic » 
Author Message
snredditch2
PostPosted: Mon Jul 14, 2014 5:09 pm    Post subject: Error on deploying application with DFDL schema Reply with quote

Newbie

Joined: 14 Jul 2014
Posts: 9

I'm new to the world of DFDL so I thought I'd have a go at parsing the Video Library Sample TDS message using DFDL instead of MRM.

On trying to deploy the BAR file containing the DFDL schema, I am getting the following error:

<CTDM2201E : DFDL property is not expected. Property 'dfdl:separator', object 'xsd:element #Borrowed'.'

If I run 'Test Parse Model' with the following input file:


{Name:[Title:Mr*FirstName:Fred*LastName:Bloggs]&Address:[HouseNo:12*Street:Willow Avenue*Town:Salisbury]&ID:P&PassportNo:J123456TT&Borrowed:[Fast Cars+2003-05-23+3.00]&Borrowed:[Cut To The Chase+2003-05-23+3.75]&Magazine:1}

all is well.

I'm running IBM Integration Bus version 9.0.0.2 on Windows (64 bit)


DFDL schema:
-----------------

Code:
<?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" xmlns:ibmDfdlExtn="http://www.ibm.com/dfdl/extensions" xmlns:ibmSchExtn="http://www.ibm.com/schema/extensions" xmlns:recSepFieldsFmt="http://www.ibm.com/dfdl/RecordSeparatedFieldFormat" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <xsd:import namespace="http://www.ibm.com/dfdl/RecordSeparatedFieldFormat" schemaLocation="IBMdefined/RecordSeparatedFieldFormat.xsd"/>
   <xsd:annotation>
      <xsd:appinfo source="http://www.ogf.org/dfdl/">
         <dfdl:format byteOrder="{$dfdl:byteOrder}" encoding="{$dfdl:encoding}" escapeSchemeRef="recSepFieldsFmt:RecordEscapeScheme" occursCountKind="fixed" ref="recSepFieldsFmt:RecordSeparatedFieldsFormat"/>
      </xsd:appinfo>
   </xsd:annotation>

   <xsd:element ibmSchExtn:docRoot="true" name="VideoStoreDetails">
      <xsd:complexType>
         <xsd:sequence dfdl:separator="%CR;%LF;%WSP*;">
            <xsd:element dfdl:initiator="{{" dfdl:terminator="}" dfdl:occursCountKind="implicit" maxOccurs="unbounded" name="body">
                 <xsd:complexType>
                  <xsd:sequence dfdl:separator="&amp;">
                     <xsd:element dfdl:initiator="Name:[" dfdl:terminator="]" name="Name">
                        <xsd:complexType>
                           <xsd:sequence dfdl:separator="*">
                              <xsd:element dfdl:initiator="Title:" dfdl:lengthKind="delimited" name="Tital" type="xsd:string"/>
                              <xsd:element dfdl:initiator="FirstName:" dfdl:lengthKind="delimited" name="FirstName" type="xsd:string"/>
                              <xsd:element dfdl:initiator="LastName:" dfdl:lengthKind="delimited" name="LastName" type="xsd:string"/>
                           </xsd:sequence>
                        </xsd:complexType>
                     </xsd:element>
                     <xsd:element dfdl:initiator="Address:[" dfdl:terminator="]" name="Address">
                        <xsd:complexType>
                           <xsd:sequence dfdl:separator="*">
                              <xsd:element dfdl:initiator="HouseNo:" dfdl:lengthKind="delimited" name="HouseNo" type="xsd:string"/>
                               <xsd:element dfdl:initiator="Street:" dfdl:lengthKind="delimited" name="Street" type="xsd:string"/>
                              <xsd:element dfdl:initiator="Town:" dfdl:lengthKind="delimited" name="Town" type="xsd:string"/>
                           </xsd:sequence>
                        </xsd:complexType>
                     </xsd:element>
                     <xsd:element dfdl:initiator="ID:" dfdl:lengthKind="delimited" name="ID" type="xsd:string"/>
                     <xsd:element dfdl:initiator="PassportNo:" dfdl:lengthKind="delimited" name="PassportNo" type="xsd:string"/>
                     <xsd:element dfdl:initiator="Borrowed:[" dfdl:separator="&amp;Borrowed:[" dfdl:terminator="]" dfdl:occursCountKind="implicit" maxOccurs="unbounded" name="Borrowed">
                        <xsd:complexType>
                           <xsd:sequence dfdl:separator="+">
                              <xsd:element dfdl:lengthKind="delimited" name="VideoTitle" type="xsd:string"/>
                              <xsd:element dfdl:lengthKind="delimited" name="BorrowedDate" type="xsd:string"/>
                              <xsd:element dfdl:lengthKind="delimited" name="Charge" type="xsd:string"/>
                           </xsd:sequence>
                        </xsd:complexType>
                     </xsd:element>
                     <xsd:element dfdl:initiator="Magazine:" dfdl:lengthKind="delimited" name="Magazine" type="xsd:string"/>
                  </xsd:sequence>
               </xsd:complexType>
            </xsd:element>
            </xsd:sequence>
         </xsd:complexType>
      </xsd:element>                  
</xsd:schema>
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 14, 2014 8:17 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Locked as duplicate of http://www.mqseries.net/phpBB2/viewtopic.php?t=67927

Please do not post into multiple forums. If you posted into the wrong forum, ask a moderator to move to the right forum.

Thanks
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  This topic is locked: you cannot edit posts or make replies. Page 1 of 1

MQSeries.net Forum Index » General Discussion » Error on deploying application with DFDL schema
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.