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 » Issue with remove default namespace in JCN.

Post new topic  Reply to topic Goto page Previous  1, 2
 Issue with remove default namespace in JCN. « View previous topic :: View next topic » 
Author Message
mqjeff
PostPosted: Thu May 12, 2016 10:03 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

mahesh2069 wrote:
Hi mqjeff,
I have set "ITEM-DETAILS" element's namespace to empty string.Still we did not get proper results.
Could you please help us.

That removes that particular element from it's namespace.

It does not remove any child element from any namespaces.

It does not remove any namespace declarations that are in the logical message tree.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
timber
PostPosted: Thu May 12, 2016 2:10 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

mqjeff is correct. You cannot complete this task
- by removing a single xmlns attribute ( namespace declaration )
- by setting the namespace on a single element to the empty string.

You must set the namespace to the empty string on every element in OutputRoot.XMLNSC. You must also remove the xmlns attribute from OutputRoot.XMLNSC.
Back to top
View user's profile Send private message
mahesh2069
PostPosted: Fri May 13, 2016 9:54 am    Post subject: Reply with quote

Centurion

Joined: 26 Jun 2013
Posts: 103

Hi timber,
Thank you for ur great support.
Code:

- by removing a single xmlns attribute ( namespace declaration )

I have tried to remove that xmlns attribute from "ITEM-DETAILS".But this is default namespace.So it is applicable to it's sub tree.
While I remove our IIB thrown user exception.

Code:

- by setting the namespace on a single element to the empty string.

Even though set individual elements in "ITEM-DETAILS" to empty string,we did not remove namespace.

Could you please find user trace of remove namespace in each attribute
Code:

Root= ( ['MQROOT' : 0x3b9faea0]
  (0x01000000:Name):Properties = (
    (0x03000000:NameValue):MessageSet             = '' (CHARACTER)
    (0x03000000:NameValue):MessageType            = '' (CHARACTER)
    (0x03000000:NameValue):MessageFormat          = '' (CHARACTER)
    (0x03000000:NameValue):Encoding               = 546 (INTEGER)
    (0x03000000:NameValue):CodedCharSetId         = 437 (INTEGER)
    (0x03000000:NameValue):Transactional          = TRUE (BOOLEAN)
    (0x03000000:NameValue):Persistence            = FALSE (BOOLEAN)
    (0x03000000:NameValue):CreationTime           = GMTTIMESTAMP '2016-05-13 17:50:16.270' (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            = '' (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       = (
    (0x03000000:NameValue):SourceQueue      = 'Q1' (CHARACTER)
    (0x03000000:NameValue):Transactional    = TRUE (BOOLEAN)
    (0x03000000:NameValue):Encoding         = 546 (INTEGER)
    (0x03000000:NameValue):CodedCharSetId   = 437 (INTEGER)
    (0x03000000:NameValue):Format           = '        ' (CHARACTER)
    (0x03000000:NameValue):Version          = 2 (INTEGER)
    (0x03000000:NameValue):Report           = 0 (INTEGER)
    (0x03000000:NameValue):MsgType          = 8 (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'414d5120494239514d47523120202020f991355720010203' (BLOB)
    (0x03000000:NameValue):CorrelId         = X'000000000000000000000000000000000000000000000000' (BLOB)
    (0x03000000:NameValue):BackoutCount     = 0 (INTEGER)
    (0x03000000:NameValue):ReplyToQ         = '                                                ' (CHARACTER)
    (0x03000000:NameValue):ReplyToQMgr      = 'IB9QMGR1                                        ' (CHARACTER)
    (0x03000000:NameValue):UserIdentifier   = 'miracle     ' (CHARACTER)
    (0x03000000:NameValue):AccountingToken  = X'160105150000006c5b8165143a0cb6175e669ce803000000000000000000000b' (BLOB)
    (0x03000000:NameValue):ApplIdentityData = '                                ' (CHARACTER)
    (0x03000000:NameValue):PutApplType      = 11 (INTEGER)
    (0x03000000:NameValue):PutApplName      = '\miracle\Desktop\rfhutil.exe' (CHARACTER)
    (0x03000000:NameValue):PutDate          = DATE '2016-05-13' (DATE)
    (0x03000000:NameValue):PutTime          = GMTTIME '17:50:16.270' (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):XMLNSC     = (
    (0x01000000:Name):TAX-RECORD = (
      (0x03000000:NameValue):BATCH-ID     = '20141120143649' (CHARACTER)
      (0x01000000:Name     ):ITEM-DETAILS = (
        (0x03000000:NameValue):xmlns      = 'http://www.ibm.com/xmlnsc/item' (CHARACTER)
        (0x03000000:NameValue):TAX-FLOW   = 'OLD' (CHARACTER)
        (0x03000000:NameValue):CNTRY-CODE = 'US' (CHARACTER)
        (0x03000000:NameValue):ITEM-NBR   = '0000000001' (CHARACTER)
      )
    )
  )
)

_________________
Thanks & Regards
Mahesh Mediboyina
WMB Developer
Back to top
View user's profile Send private message
mahesh2069
PostPosted: Fri May 13, 2016 9:59 am    Post subject: Reply with quote

Centurion

Joined: 26 Jun 2013
Posts: 103

Code:

Even though set individual elements in "ITEM-DETAILS" to empty string,we did not remove namespace.


I mean to say iterate each element in "ITEM-DETAILS" element to empty namespace,we unable to remove namespace in output file.
Could you please user trace in above post.
_________________
Thanks & Regards
Mahesh Mediboyina
WMB Developer
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Issue with remove default namespace in JCN.
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.