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 Serialization error

Post new topic  Reply to topic
 DFDL Serialization error « View previous topic :: View next topic » 
Author Message
Kazim_Baig
PostPosted: Mon May 02, 2016 10:21 pm    Post subject: DFDL Serialization error Reply with quote

Novice

Joined: 26 Apr 2016
Posts: 19
Location: Bangalore

Hi All,
I'm working with DFDL, where my message model is
InstantPaymentReq
body
MessageType
PaymentType
CardNumber
In a compute node I'm trying to access these elements like
SET OutputRoot.DFDL.*:InstantPaymentReq.body[1].MessageType = '1234';
SET OutputRoot.DFDL.*:InstantPaymentReq.body[1].PaymentType = '1234';
SET OutputRoot.DFDL.*:InstantPaymentReq.body[1].CardNumber = '65165161651';


After this compute node, I'm getting a error like
Text:CHARACTER:An error occurred whilst serializing with DFDL
Insert
Type:INTEGER:5
Text:CHARACTER:CTDU4001E: Root element 'InstantPaymentReq' in namespace '' does not exist.
Insert
Type:INTEGER:5
Text:CHARACTER:/Root/DFDL/InstantPaymentReq

Can someone please provide a solution for this?
Back to top
View user's profile Send private message Send e-mail
timber
PostPosted: Mon May 02, 2016 11:18 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

Check that the namespaces in OutputRoot match the namespaces in your DFDL xsd.
Back to top
View user's profile Send private message
timber
PostPosted: Mon May 02, 2016 11:23 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

In the other thread, you said
Quote:
I don't have any global element in my xsd files.
If true, then that's your problem. DFDL cannot work unless there is a global element in your xsd with the name 'InstantPaymentReq'.
Back to top
View user's profile Send private message
maurito
PostPosted: Tue May 03, 2016 2:28 am    Post subject: Reply with quote

Partisan

Joined: 17 Apr 2014
Posts: 358

you need to EXPLICITLY set the namespace in the SET statement,
Code:

SET OutputRoot.DFDL.*:InstantPaymentReq.body[1].MessageType = '1234';

Setting it to * will not work for output.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue May 03, 2016 4:21 am    Post subject: Re: DFDL Serialization error Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Kazim_Baig wrote:
SET OutputRoot.DFDL.*:InstantPaymentReq.body[1].MessageType = '1234';


elementXYZ[1] is exactly the same as elementXYZ. You should make sure to use a reference variable in your code any time you are accessing elementXYZ[n], where n != 1.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Kazim_Baig
PostPosted: Tue May 03, 2016 8:22 pm    Post subject: Reply with quote

Novice

Joined: 26 Apr 2016
Posts: 19
Location: Bangalore

Hi All,
Issue resolved. I had kept all the message models in a shared library. Now I have kept the message model in the application it self. Its working now. Must be some issue with the name space.
Back to top
View user's profile Send private message Send e-mail
Kazim_Baig
PostPosted: Wed May 04, 2016 12:49 am    Post subject: Reply with quote

Novice

Joined: 26 Apr 2016
Posts: 19
Location: Bangalore

Hey timber!!
http://www.mqseries.net/phpBB2/viewtopic.php?p=406339#406339
one more query..
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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