Author |
Message
|
Terence |
Posted: Tue Aug 16, 2011 5:40 am Post subject: Issues about the type of properties? |
|
|
Novice
Joined: 08 Aug 2011 Posts: 12
|
Mapping node is a nightmare, it is very strict.
The input message properties type is changed from SOAPPROPERTYPARSER to MQPROPERTYPARSER, then all the mapping nodes complain the invalid error to terminate the flow, in fact the mapping output is print out and it is what i expected. does the type of properties be modified in ESQL? Thanks!
The first message is original message, the mapping nodes can work well with it. The second message is the modified message, the mapping nodes can not work.
1)Original message
Code: |
( ['SOAPRoot' : 0x2aaaff2f7860]
(0x01000000:Name ):Properties = ( ['MQPROPERTYPARSER' : 0x2aaaff2e9a50]
(0x03000000:NameValue):MessageSet = 'PublicTransitMessageSets' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 1208 (INTEGER)
(0x03000000:NameValue):Transactional = FALSE (BOOLEAN)
(0x03000000:NameValue):Persistence = FALSE (BOOLEAN)
(0x03000000:NameValue):CreationTime = GMTTIMESTAMP '2011-08-05 10:51:26.968273' (GMTTIMESTAMP)
(0x03000000:NameValue):ExpirationTime = -1 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):ReplyIdentifier = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):ReplyProtocol = 'SOAP_AXIS2' (CHARACTER)
(0x03000000:NameValue):Topic = NULL
(0x03000000:NameValue):ContentType = 'text/xml; charset=utf-8' (CHARACTER)
(0x03000000:NameValue):IdentitySourceType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceToken = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedType = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedToken = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000:Name ):HTTPResponseHeader = ( ['WSRSPHDR' : 0x2aaaff67b850]
(0x03000000:NameValue):X-Original-HTTP-Status-Line = 'HTTP/1.1 200 OK' (CHARACTER)
(0x03000000:NameValue):X-Original-HTTP-Status-Code = 200 (INTEGER)
(0x03000000:NameValue):Content-Type = 'text/xml; charset=utf-8' (CHARACTER)
(0x03000000:NameValue):Content-Language = 'en-US' (CHARACTER)
(0x03000000:NameValue):Content-Length = '558' (CHARACTER)
(0x03000000:NameValue):Date = 'Fri, 05 Aug 2011 10:52:00 GMT' (CHARACTER)
(0x03000000:NameValue):Server = 'WebSphere Application Server/7.0' (CHARACTER)
)
(0x01000000:Folder):XMLNSC = ( ['xmlnsc' : 0x2aaaff67ed40]
(0x01000000:Folder)http://www.ibm.com/xmlns/transportation/public/mmdemo/ATISRouteBuilderInterface:buildATISRoutesRequestMsg = (
(0x01000000:Folder):routeRequest = (
(0x01000000:Folder ):messageHeader = (
(0x01000000:Folder ):sender =
(0x03000000:PCDataField):messageID = 12345 (INTEGER)
(0x03000000:PCDataField):timeStamp = TIMESTAMP '2011-08-05 18:52:01.160' (TIMESTAMP)
(0x03000000:PCDataField):msgCount = 1 (INTEGER)
)
(0x03000000:PCDataField):startTime = TIMESTAMP '2011-08-05 10:50:00' (TIMESTAMP)
(0x01000000:Folder ):routeOutline = (
(0x03000000:PCDataField):isItinerary = FALSE (BOOLEAN)
(0x01000000:Folder ):origin = (
(0x03000000:PCDataField):pointName = 'Pier 83' (CHARACTER)
(0x01000000:Folder ):geoLocationPoint = (
(0x03000000:PCDataField):latitude = 40761884 (INTEGER)
(0x03000000:PCDataField):longitude = -74001404 (INTEGER)
)
)
(0x01000000:Folder ):destination = (
(0x03000000:PCDataField):pointName = 'United Nations' (CHARACTER)
(0x01000000:Folder ):geoLocationPoint = (
(0x03000000:PCDataField):latitude = 40748627 (INTEGER)
(0x03000000:PCDataField):longitude = -73969660 (INTEGER)
)
)
(0x03000000:PCDataField):startTime = TIMESTAMP '2011-08-05 10:50:00' (TIMESTAMP)
)
(0x01000000:Folder ):constraints = (
(0x03000000:PCDataField):modes = 'bus' (CHARACTER)
)
)
)
)
)
|
2) The modified message
Code: |
( ['SOAPRoot' : 0x2ca06148]
(0x01000000:Name ):Properties = ( ['MQPROPERTYPARSER' : 0x2cadf3d0]
(0x03000000:NameValue):MessageSet = 'PublicTransitMessageSets' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 1208 (INTEGER)
(0x03000000:NameValue):Transactional = FALSE (BOOLEAN)
(0x03000000:NameValue):Persistence = FALSE (BOOLEAN)
(0x03000000:NameValue):CreationTime = GMTTIMESTAMP '2011-08-16 11:28:52.385' (GMTTIMESTAMP)
(0x03000000:NameValue):ExpirationTime = -1 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):ReplyIdentifier = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):ReplyProtocol = 'MQ' (CHARACTER)
(0x03000000:NameValue):Topic = NULL
(0x03000000:NameValue):ContentType = 'text/xml; charset=utf-8' (CHARACTER)
(0x03000000:NameValue):IdentitySourceType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceToken = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedType = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedToken = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000:Name ):MQMD = ( ['MQHMD' : 0x3331af40]
(0x03000000:NameValue):SourceQueue = 'AGGR_Route_Finder_REQUEST' (CHARACTER)
(0x03000000:NameValue):Transactional = FALSE (BOOLEAN)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 1208 (INTEGER)
(0x03000000:NameValue):Format = 'WSRSPHDR' (CHARACTER)
(0x03000000:NameValue):Version = 2 (INTEGER)
(0x03000000:NameValue):Report = 0 (INTEGER)
(0x03000000:NameValue):MsgType = 1 (INTEGER)
(0x03000000:NameValue):Expiry = -1 (INTEGER)
(0x03000000:NameValue):Feedback = 0 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):Persistence = 0 (INTEGER)
(0x03000000:NameValue):MsgId = X'414d51204d4237514d475220202020209a504a4e20007602' (BLOB)
(0x03000000:NameValue):CorrelId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):BackoutCount = 0 (INTEGER)
(0x03000000:NameValue):ReplyToQ = 'AGGR_Route_Finder_Reply ' (CHARACTER)
(0x03000000:NameValue):ReplyToQMgr = 'MB7QMGR ' (CHARACTER)
(0x03000000:NameValue):UserIdentifier = 'SYSTEM ' (CHARACTER)
(0x03000000:NameValue):AccountingToken = X'060101120000000000000000000000000000000000000000000000000000000b' (BLOB)
(0x03000000:NameValue):ApplIdentityData = ' ' (CHARACTER)
(0x03000000:NameValue):PutApplType = 11 (INTEGER)
(0x03000000:NameValue):PutApplName = 'I\7.0\bin\DataFlowEngine.exe' (CHARACTER)
(0x03000000:NameValue):PutDate = DATE '2011-08-16' (DATE)
(0x03000000:NameValue):PutTime = GMTTIME '11:28:52.385' (GMTTIME)
(0x03000000:NameValue):ApplOriginData = ' ' (CHARACTER)
(0x03000000:NameValue):GroupId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):MsgSeqNumber = 1 (INTEGER)
(0x03000000:NameValue):Offset = 0 (INTEGER)
(0x03000000:NameValue):MsgFlags = 0 (INTEGER)
(0x03000000:NameValue):OriginalLength = -1 (INTEGER)
)
(0x01000000:Name ):HTTPResponseHeader = ( ['WSRSPHDR' : 0x2ca063b0]
(0x03000000:NameValue):X-Original-HTTP-Status-Line = 'HTTP/1.1 200 OK' (CHARACTER)
(0x03000000:NameValue):X-Original-HTTP-Status-Code = 200 (INTEGER)
(0x03000000:NameValue):Content-Type = 'text/xml; charset=utf-8' (CHARACTER)
(0x03000000:NameValue):Content-Language = 'en-US' (CHARACTER)
(0x03000000:NameValue):Content-Length = '563' (CHARACTER)
(0x03000000:NameValue):Date = 'Tue, 16 Aug 2011 11:32:07 GMT' (CHARACTER)
(0x03000000:NameValue):Server = 'WebSphere Application Server/7.0' (CHARACTER)
)
(0x01000000:Folder):XMLNSC = ( ['xmlnsc' : 0x33f92c60]
(0x01000000:Folder)http://www.ibm.com/xmlns/transportation/public/mmdemo/ATISRouteBuilderInterface:buildATISRoutesRequestMsg = (
(0x01000000:Folder):routeRequest = (
(0x01000000:Folder ):messageHeader = (
(0x01000000:Folder ):sender =
(0x03000000:PCDataField):messageID = 12345 (INTEGER)
(0x03000000:PCDataField):timeStamp = TIMESTAMP '2011-08-16 19:29:03.531' (TIMESTAMP)
(0x03000000:PCDataField):msgCount = 1 (INTEGER)
)
(0x03000000:PCDataField):startTime = TIMESTAMP '2011-08-16 19:29:03.515' (TIMESTAMP)
(0x01000000:Folder ):routeOutline = (
(0x03000000:PCDataField):isItinerary = FALSE (BOOLEAN)
(0x01000000:Folder ):origin = (
(0x03000000:PCDataField):pointName = 'Pier 83' (CHARACTER)
(0x01000000:Folder ):geoLocationPoint = (
(0x03000000:PCDataField):latitude = 40761884 (INTEGER)
(0x03000000:PCDataField):longitude = -74001404 (INTEGER)
)
)
(0x01000000:Folder ):destination = (
(0x03000000:PCDataField):pointName = 'United Nations' (CHARACTER)
(0x01000000:Folder ):geoLocationPoint = (
(0x03000000:PCDataField):latitude = 40748627 (INTEGER)
(0x03000000:PCDataField):longitude = -73969660 (INTEGER)
)
)
(0x03000000:PCDataField):startTime = TIMESTAMP '2011-08-16 19:29:03.515' (TIMESTAMP)
)
(0x01000000:Folder ):constraints = (
(0x03000000:PCDataField):modes = 'bus' (CHARACTER)
)
)
)
)
)
|
Last edited by Terence on Tue Aug 16, 2011 5:56 am; edited 1 time in total |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Aug 16, 2011 5:48 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 16, 2011 5:55 am Post subject: Re: Issues about the type of properties? |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Terence wrote: |
Mapping node is a nightmare, it is very strict. |
Why I never use them except for really simple stuff. Once I get into any level of complexity I find ESQL much easier to get my head round. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Terence |
Posted: Tue Aug 16, 2011 5:58 am Post subject: Re: Issues about the type of properties? |
|
|
Novice
Joined: 08 Aug 2011 Posts: 12
|
Vitor wrote: |
Terence wrote: |
Mapping node is a nightmare, it is very strict. |
Why I never use them except for really simple stuff. Once I get into any level of complexity I find ESQL much easier to get my head round. |
Agree, I plan to replace all the mapping nodes with ESQL.  |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Aug 16, 2011 6:00 am Post subject: Re: Issues about the type of properties? |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Terence wrote: |
Vitor wrote: |
Terence wrote: |
Mapping node is a nightmare, it is very strict. |
Why I never use them except for really simple stuff. Once I get into any level of complexity I find ESQL much easier to get my head round. |
Agree, I plan to replace all the mapping nodes with ESQL.  |
Thank you for editing your original post and put [c o d e] tags around your code. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 16, 2011 6:03 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The problem, I believe, with the second message, is that the MQMD is in the wrong place....
Try moving the HTTP Response Header to before the MQMD, or move the MQMD to the last child before XMLNSC.
Or otherwise try not having both the MQMD and the HTTP Response Header in the same message... |
|
Back to top |
|
 |
Terence |
Posted: Tue Aug 16, 2011 6:13 am Post subject: |
|
|
Novice
Joined: 08 Aug 2011 Posts: 12
|
mqjeff wrote: |
The problem, I believe, with the second message, is that the MQMD is in the wrong place....
Try moving the HTTP Response Header to before the MQMD, or move the MQMD to the last child before XMLNSC.
Or otherwise try not having both the MQMD and the HTTP Response Header in the same message... |
Thank a lot, I will try them  |
|
Back to top |
|
 |
Terence |
Posted: Tue Aug 16, 2011 6:14 am Post subject: Re: Issues about the type of properties? |
|
|
Novice
Joined: 08 Aug 2011 Posts: 12
|
lancelotlinc wrote: |
Terence wrote: |
Vitor wrote: |
Terence wrote: |
Mapping node is a nightmare, it is very strict. |
Why I never use them except for really simple stuff. Once I get into any level of complexity I find ESQL much easier to get my head round. |
Agree, I plan to replace all the mapping nodes with ESQL.  |
Thank you for editing your original post and put [c o d e] tags around your code. |
thank you for your kindly reminder, this is my first time to know the code tag. |
|
Back to top |
|
 |
|