on 07-25-2008 5:11 AM
Hi ALl,
I m doing a Receiver JMS Scenario.
THere are some Hexadecimal values inte h msessage in addition ot the XML Message..
What is to be done to get the xml data alone?
MQGET of message number 1
***Message descriptor***
StrucId : 'MD ' Version : 2
Report : 0 MsgType : 8
Expiry : -1 Feedback : 0
Encoding : 273 CodedCharSetId : 1208
Format : 'MQSTR '
Priority : 4 Persistence : 1
MsgId : X'414D5120555354434136393853312020C8C17448203DA102'
CorrelId : X'30623464393264342D636139342D626634632D386634332D'
BackoutCount : 0
ReplyToQ : ' '
ReplyToQMgr : '***********1 '
Identity Context
UserIdentifier : 'usncap129 '
AccountingToken :
X'16010515000000853D5C04261AC72E692ED435E1A82D0000000000000000000B'
ApplIdentityData : ' '
Origin Context
PutApplType : '28'
PutApplName : 'Websphere MQ Client for Java'
PutDate : '20080724' PutTime : '04114031'
ApplOriginData : ' '
GroupId : X'000000000000000000000000000000000000000000000000'
MsgSeqNumber : '1'
Offset : '0'
MsgFlags : '0'
OriginalLength : '-1'
Message ****
length - 367 bytes
00000000: 3C3F 786D 6C20 7665 7273 696F 6E3D 2231 '<?xml version="1'
00000010: 2E30 2220 656E 636F 6469 6E67 3D22 7574 '.0" encoding="ut'
00000020: 662D 3822 203F 3E3C 6E73 313A 4D54 5F50 'f-8" ?><ns1:MT_P'
00000030: 726F 6475 6374 4443 4465 6669 6E69 7469 'roductDCDefiniti'
00000040: 6F6E 2078 6D6C 6E73 3A6E 7331 3D22 7572 'on xmlns:ns1="ur'
00000050: 6E3A 6B63 632E 636F 6D3A 7266 6E61 3A72 'n:kcc.com:rfna:r'
00000060: 333A 6D61 7465 7269 616C 3A6F 6174 3A61 '3:material:oat:a'
00000070: 6969 223E 3C50 726F 6475 6374 4443 496E 'ii"><ProductDCIn'
00000080: 666F 3E3C 5072 6F64 7563 7449 443E 3338 'fo><ProductID>38'
00000090: 3230 3332 3039 3330 3233 3233 3233 3233 '2032093023232323'
000000A0: 3C2F 5072 6F64 7563 7449 443E 3C44 4349 '</ProductID><DCI'
000000B0: 443E 5031 3C2F 4443 4944 3E3C 4163 7469 'D>P1</DCID><Acti'
000000C0: 7665 496E 643E 593C 2F41 6374 6976 6549 'veInd>Y</ActiveI'
000000D0: 6E64 3E3C 2F50 726F 6475 6374 4443 496E 'nd></ProductDCIn'
000000E0: 666F 3E3C 5072 6F64 7563 7444 4349 6E66 'fo><ProductDCInf'
000000F0: 6F3E 3C50 726F 6475 6374 4944 3E33 3832 'o><ProductID>382'
00000100: 3033 3230 3933 3032 3332 3332 3332 333C '032093023232323<'
00000110: 2F50 726F 6475 6374 4944 3E3C 4443 4944 '/ProductID><DCID'
00000120: 3E44 313C 2F44 4349 443E 3C41 6374 6976 '>D1</DCID><Activ'
00000130: 6549 6E64 3E59 3C2F 4163 7469 7665 496E 'eInd>Y</ActiveIn'
00000140: 643E 3C2F 5072 6F64 7563 7444 4349 6E66 'd></ProductDCInf'
00000150: 6F3E 3C2F 6E73 313A 4D54 5F50 726F 6475 'o></ns1:MT_Produ'
00000160: 6374 4443 4465 6669 6E69 7469 6F6E 3E 'ctDCDefinition> '
Resolved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does your mapping error due to these hexadecimal values? If yes, I guess then this might be non XML characters and you would need to write a custom module / java mapping that will search for these non XML , hexadecimal values and replace them as needed.
I have seen threads on SDN with such code snippets, they should help.
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.