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 Interchange Server + Adapters » child BO's not picked up! [solved]

Post new topic  Reply to topic
 child BO's not picked up! [solved] « View previous topic :: View next topic » 
Author Message
lehare
PostPosted: Tue Feb 14, 2006 3:02 am    Post subject: child BO's not picked up! [solved] Reply with quote

Apprentice

Joined: 25 Jul 2005
Posts: 48

I'm using a JText adapter to pick up a Flat File -

BO definition:

IdNumber [string] 10
UserName [string] 10
Dep [Dependents] <----start of child BO
DependentKey [string] 2
Sex [String] 6
Race [String] 8 <---- end of child BO
UserSurname [String] 20
_____________________________________________________________

'67890 Gail 01FemaleAfrican Hlongwane ' <---- Test File


the above is my test file which is parsed by the Visual Tester correctly as shown below
<StartBO:FaritecUser>

BusinessObject = FaritecUser
Verb = Create
Locale = en

IdNumber = 67890
UserName = Gail
<StartChild>
Dep = 1
<StartBO:Dependents>
BusinessObject = Dependents
Verb = CxBlank
Locale = en_US

DependentKey = 01
Sex = Female
Race = African
ObjectEventId = CxIgnore
<EndBO:Dependents>
<EndChild>
UserSurname = Hlongwane
ObjectEventId = CxIgnore

<EndBO:FaritecUser>
____________________________________________________________

but when i try to parse my test file with the option of dumping it in the EVENT directory ... the output is as follows [and its WRONG]

<StartBO:FaritecUser>

BusinessObject = FaritecUser
Verb = Create
Locale = en_US

IdNumber = 67890
UserName = Gail
<StartChild>
Dep = CxBlank
<StartBO:Dep>
<EndBO:Dep>
<EndChild>
UserSurname = 1FemaleAfrican Hlong
ObjectEventId = wane


<EndBO:FaritecUser>

what could i be doing wrong ....


Last edited by lehare on Mon Feb 20, 2006 12:19 am; edited 1 time in total
Back to top
View user's profile Send private message
vk
PostPosted: Tue Feb 14, 2006 10:50 pm    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

Lehare,

In the Parent BO, have you set the 'Required' property for the Child BO?

If not, maybe that is the reason why the connector is treating the bytes after UserName as part of UserSurName. Also can you try moving UserSurName above the Child BO and see if it works?

Regards,
VK.
Back to top
View user's profile Send private message
lehare
PostPosted: Mon Feb 20, 2006 12:26 am    Post subject: Reply with quote

Apprentice

Joined: 25 Jul 2005
Posts: 48

i spotted where i was going wrong,

I have modified the source class ... com.crosswords.DataHandlers.text.fixedwidth to get the Business Object and Verb from the meta_data business object [MO_DataHandler_DefaultFixedWidthConfig.xsd] - but i overlooked the cardinality part of it whilst i was modifying the class...

i realised that after looking @ the test file template used for fixed with files below

[Bus_Obj_Name<blank_space_padding_for_size>] [Verb<blank_space_padding_for_size>] [Attr1<blank_space_padding_for_size>] [Attr2...<blank_space_padding_for_size>] [Number-of-child-object_instances<blank_space_padding_for_size>] [Child_Object_Name<blank_space_padding_for_size>] [Child_Object_Verb<blank_space_padding_for_size>] [Child_Object_Attr1<blank_space_padding_for_size>] [Child_Object_Attr2...<blank_space_padding_for_size>] <EndBO:Bus_Obj_Name>

thanx for the help
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 Interchange Server + Adapters » child BO's not picked up! [solved]
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.