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 » WMB8.0.0.2 - Cast in mapper

Post new topic  Reply to topic
 WMB8.0.0.2 - Cast in mapper « View previous topic :: View next topic » 
Author Message
orman
PostPosted: Thu Aug 08, 2013 9:21 am    Post subject: WMB8.0.0.2 - Cast in mapper Reply with quote

Apprentice

Joined: 08 Aug 2013
Posts: 40

hey,

I have to convert some maps from wmb6.1.0.11 to wmb8.0.0.2
i got a map using "Show Derived Type" - this one create an xml with xsi:type and the derived type i choosed

i wanted to do the same with wmb8, using Cast function, but after the map i get an xml with no xsi:type so it fails on validation ..

in order to fix it i had to add the xsi after the map in esql the namespace .. i don't realy like to do it.. is there anthoer option guys ?

Thanks alot,
Or.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Aug 08, 2013 9:39 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Did you try xsi:nil ?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Thu Aug 08, 2013 9:45 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The v8 GDM should build the output tree based on the message model.

The CAST will only convert the value of the source field into what's needed to fit into the value of the destination field.

It sounds like the destination field has the wrong type, either in the schema or in the map.
Back to top
View user's profile Send private message
orman
PostPosted: Thu Aug 08, 2013 9:46 am    Post subject: .. Reply with quote

Apprentice

Joined: 08 Aug 2013
Posts: 40

How can xsi:nill to help me?

i want the output of the mapping of wmb8 to contain xsi:type as i get in wmb6 .. the cast function doesnt do the same work ..
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Aug 08, 2013 10:40 am    Post subject: Re: .. Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

orman wrote:
How can xsi:nill to help me?

i want the output of the mapping of wmb8 to contain xsi:type as i get in wmb6 .. the cast function doesnt do the same work ..


It may not solve your problem and mqjeff is probably on the closer track. xsi:nil will generate an xsi structure in your output.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fcm28656_.htm

Maybe I did not read your original post correctly, but I thought you said the output was correct except it did not produce an xsi:type in your payload and therefore the payload failed validation.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Thu Aug 08, 2013 3:29 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
in order to fix it i had to add the xsi after the map in esql the namespace .. i don't realy like to do it.
Did you try explicitly adding the xsi:type attribute using the Mapping node? I agree with mqjeff that it should not be necessary, but I'm fairly sure that the workaround can be done using Mapping node facilities.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
orman
PostPosted: Thu Aug 08, 2013 8:14 pm    Post subject: Reply with quote

Apprentice

Joined: 08 Aug 2013
Posts: 40

Quote:
Did you try explicitly adding the xsi:type attribute using the Mapping node? I agree with mqjeff that it should not be necessary, but I'm fairly sure that the workaround can be done using Mapping node facilities.


i tried to the the attributes in the map - fail .. just with esql it worked

Quote:
The CAST will only convert the value of the source field into what's needed to fit into the value of the destination field.

It sounds like the destination field has the wrong type, either in the schema or in the map.


But its the same MS as 6.1 .. i tried to use Library - but got the same output and with MS ..

This new GDM is doing alot of mess :S bahh
Back to top
View user's profile Send private message
NealM
PostPosted: Thu Aug 08, 2013 9:21 pm    Post subject: Reply with quote

Master

Joined: 22 Feb 2011
Posts: 230
Location: NC or Utah (depends)

Have you updated your Toolkit with the interim fix for 8002 that came out in July? There were a few mapper fixes included.
Also, a PMR doesn't hurt; the developers have been responsive to our mapper issues, they just need an explanation of why the way they have it set up might not be in the user's best interest.
Back to top
View user's profile Send private message
orman
PostPosted: Thu Aug 08, 2013 10:04 pm    Post subject: Reply with quote

Apprentice

Joined: 08 Aug 2013
Posts: 40

Quote:
Have you updated your Toolkit with the interim fix for 8002 that came out in July? There were a few mapper fixes included.
.


No i didn't .. i checked the fixes list
    7. Mapper
    APAR IC90814 GDM Editor creates map select transform Where clauses with namespaced elements that can fail in runtime
    APAR IC91188 MAP shows no error when cast item is unavailable
    APAR IC92156 Null pointer exception when converting msgmap to map
    APAR IC92618 The plugin com.ibm.etools.mft.uri.map was not included in the V8002 install image
    APAR IC92655 Check optional input present for custom ESQL transform
    APAR IC92689 Msgmap converter does not support abstract submap input/output
    APAR IC92881 Local environment schema missing elements in ServiceRegistry
    APAR IC93539 Unexpected condition on converted customer ESQL transform
    APAR IC93651 .msgmap to .map conversion can fail with a ClassCastException


it doesnt seems like the my issue fixed there..


PMR idea is good too, i will try it
and by the time, i will try to use the new interim fix for 8002

If someone has the it, can he/she test the output of casting inherited element in GDM?
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Aug 22, 2013 4:24 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Just to follow this up, this is a known problem, and there is a fix available. Please open a PMR ( if you haven't already done so ) and IBM will supply a fix.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
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 » WMB8.0.0.2 - Cast in mapper
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.