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 » WebSphere Message Broker (ACE) Support » DFDL Parser

Post new topic  Reply to topic
 DFDL Parser « View previous topic :: View next topic » 
Author Message
shekarpr09
PostPosted: Thu Apr 07, 2022 8:07 am    Post subject: DFDL Parser Reply with quote

Newbie

Joined: 07 Apr 2022
Posts: 2

Hi All,

I have a requirement that ACEv11 will receive a DFDL message which will have 10 fields and convert to CSV.
But If client sends 11 fields in the input I have to ignore 11th field , can any suggest is there any option to set property in DFDL model configuration.
Thanks In Advance!
Back to top
View user's profile Send private message
abhi_thri
PostPosted: Thu Apr 07, 2022 8:28 am    Post subject: Reply with quote

Knight

Joined: 17 Jul 2017
Posts: 516
Location: UK

hi...so you are dealing with a fixed length DFDL model and want to ignore anything coming after the 10th element?

Similar topic is discussed here - http://mqseries.net/phpBB/viewtopic.php?t=69774&sid=776b622c1be8094b43284499385da186
Back to top
View user's profile Send private message
shekarpr09
PostPosted: Thu Apr 07, 2022 9:32 pm    Post subject: Reply with quote

Newbie

Joined: 07 Apr 2022
Posts: 2

@abhi_thri

i gone through which you provided link but that's a different case , here i need to parse the xml with dfdl even if we have extra fields.
Back to top
View user's profile Send private message
abhi_thri
PostPosted: Fri Apr 08, 2022 1:24 am    Post subject: Reply with quote

Knight

Joined: 17 Jul 2017
Posts: 516
Location: UK

hi....sorry, so your input is an xml file and you are trying to parse it with dfdl, why so as dfdl is used for 'text/binary format' data,

https://www.ibm.com/docs/en/app-connect/11.0.0?topic=model-data-format-description-language-dfdl

for xml input files you should ideally look using xmlnsc domain and validate the message against the xsd schemas deployed via a library. If you don't have an xsd and unsure about the number/type of the fields in the xml file then don't validate it, receive it as xmlnsc and map just those 10 fields to the outbound csv format.
Back to top
View user's profile Send private message
timber
PostPosted: Tue Apr 12, 2022 9:21 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

I agree with abhi_thri.

I suggest that you
- read this: https://www.ibm.com/docs/en/app-connect/11.0.0?topic=overview-message-domains-parsers
- explain why you decided to use DFDL (assuming that there was a reason)
- provide an example of your XML input with and without the 'extra' fields.

If you don't explain your task, it is very difficult to provide useful answers.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DFDL Parser
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.