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 » Style sheet reference in xml -file and MB

Post new topic  Reply to topic
 Style sheet reference in xml -file and MB « View previous topic :: View next topic » 
Author Message
mqmqmq
PostPosted: Wed Nov 26, 2008 5:19 am    Post subject: Style sheet reference in xml -file and MB Reply with quote

Novice

Joined: 02 Jul 2008
Posts: 22

Hi,
I have one xml file which starts with the following two lines:

<?xml version="1.0" encoding="UTF-7"?>
<?xml:stylesheet type="text/xsl" href="ss1.xsl"?>
...

I have also one flow which have MQInput node and one compute node. I use XMLNSC as a parser.

When I put the xml in the queue MQInput gets the xml but I cannot refer to any of the xml elements in the message (the XMLNSC -section in tree is totally empty). When I have only the following one line in the xml file, everything works:

<?xml version="1.0" encoding="UTF-7"?>
...

I have this style sheet which xml file refers already, but what should I do with it? What might be the steps to take to make Broker to understand the original file?

BR,
--
mqmqmq
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Nov 26, 2008 6:43 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
the XMLNSC -section in tree is totally empty
I presume that the input message contains other tags which are not shown in your post
Which version of the WMB runtime are you using?
How do you know that the message body is empty?
Have you inserted a Trace node, or were you just using the debugger?
Have you checked the system error log?

If you want to see the <?xml:stylesheet... tag in your message tree, you will need to tick the 'Retain Processing Instructions' box in the XMLNSC parser options.
Back to top
View user's profile Send private message
mqmqmq
PostPosted: Thu Nov 27, 2008 12:54 am    Post subject: Reply with quote

Novice

Joined: 02 Jul 2008
Posts: 22

Hi,
Thanks for your mail!

Yes, there are other xml elements in the message, but they are only the "real" payload (xml elements).

I have MB v6.0.

I used trace node to check the information.

Here is trace log when I used the message WITHOUT style sheet reference in the message (part of the trace):

Code:

(
  (0x01000000):Properties = (
    (0x03000000):MessageSet      = ''
    (0x03000000):MessageType     = ''
    (0x03000000):MessageFormat   = ''
    (0x03000000):Encoding        = 546
    (0x03000000):CodedCharSetId  = 437
    (0x03000000):Transactional   = TRUE
    (0x03000000):Persistence     = FALSE
    (0x03000000):CreationTime    = GMTTIMESTAMP '2008-11-27 08:36:38.160'
    (0x03000000):ExpirationTime  = -1
    (0x03000000):Priority        = 0
    (0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
    (0x03000000):ReplyProtocol   = 'MQ'
    (0x03000000):Topic           = NULL
    (0x03000000):ContentType     = ''
  )
  (0x01000000):MQMD       = (
    (0x03000000):SourceQueue      = 'TEST.IN'
    (0x03000000):Transactional    = TRUE
    (0x03000000):Encoding         = 546
    (0x03000000):CodedCharSetId   = 437
    (0x03000000):Format           = '        '
    (0x03000000):Version          = 2
    (0x03000000):Report           = 0
    (0x03000000):MsgType          = 8
    (0x03000000):Expiry           = -1
    (0x03000000):Feedback         = 0
    (0x03000000):Priority         = 0
    (0x03000000):Persistence      = 0
    (0x03000000):MsgId            = X'414d512044454d303033202020202020c85525492001db10'
    (0x03000000):CorrelId         = X'000000000000000000000000000000000000000000000000'
    (0x03000000):BackoutCount     = 0
    (0x03000000):ReplyToQ         = '                                                '
    (0x03000000):ReplyToQMgr      = 'DEM003                                          '
    (0x03000000):UserIdentifier   = 'mqadmin     '
    (0x03000000):AccountingToken  = X'160105150000001525af47299c1e1107e53b2beb03000000000000000000000b'
    (0x03000000):ApplIdentityData = '                                '
    (0x03000000):PutApplType      = 11
    (0x03000000):PutApplName      = ' Files\IBM\Utils\rfhutil.exe'
    (0x03000000):PutDate          = DATE '2008-11-27'
    (0x03000000):PutTime          = GMTTIME '08:36:38.160'
    (0x03000000):ApplOriginData   = '    '
    (0x03000000):GroupId          = X'000000000000000000000000000000000000000000000000'
    (0x03000000):MsgSeqNumber     = 1
    (0x03000000):Offset           = 0
    (0x03000000):MsgFlags         = 0
    (0x03000000):OriginalLength   = -1
  )
  (0x01000000):XMLNSC     = (
  (0x01000000):Properties = (
    (0x03000000):MessageSet      = ''
    (0x03000000):MessageType     = ''
    (0x03000000):MessageFormat   = ''
    (0x03000000):Encoding        = 546
    (0x03000000):CodedCharSetId  = 437
    (0x03000000):Transactional   = TRUE
    (0x03000000):Persistence     = FALSE
    (0x03000000):CreationTime    = GMTTIMESTAMP '2008-11-27 08:38:27.430'
    (0x03000000):ExpirationTime  = -1
    (0x03000000):Priority        = 0
    (0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
    (0x03000000):ReplyProtocol   = 'MQ'
    (0x03000000):Topic           = NULL
    (0x03000000):ContentType     = ''
  )
  (0x01000000):MQMD       = (
    (0x03000000):SourceQueue      = 'TEST.IN'
    (0x03000000):Transactional    = TRUE
    (0x03000000):Encoding         = 546
    (0x03000000):CodedCharSetId   = 437
    (0x03000000):Format           = '        '
    (0x03000000):Version          = 2
    (0x03000000):Report           = 0
    (0x03000000):MsgType          = 8
    (0x03000000):Expiry           = -1
    (0x03000000):Feedback         = 0
    (0x03000000):Priority         = 0
    (0x03000000):Persistence      = 0
    (0x03000000):MsgId            = X'414d512044454d303033202020202020c85525492001db12'
    (0x03000000):CorrelId         = X'000000000000000000000000000000000000000000000000'
    (0x03000000):BackoutCount     = 0
    (0x03000000):ReplyToQ         = '                                                '
    (0x03000000):ReplyToQMgr      = 'DEM003                                          '
    (0x03000000):UserIdentifier   = 'mqadmin     '
    (0x03000000):AccountingToken  = X'160105150000001525af47299c1e1107e53b2beb03000000000000000000000b'
    (0x03000000):ApplIdentityData = '                                '
    (0x03000000):PutApplType      = 11
    (0x03000000):PutApplName      = ' Files\IBM\Utils\rfhutil.exe'
    (0x03000000):PutDate          = DATE '2008-11-27'
    (0x03000000):PutTime          = GMTTIME '08:38:27.430'
    (0x03000000):ApplOriginData   = '    '
    (0x03000000):GroupId          = X'000000000000000000000000000000000000000000000000'
    (0x03000000):MsgSeqNumber     = 1
    (0x03000000):Offset           = 0
    (0x03000000):MsgFlags         = 0
    (0x03000000):OriginalLength   = -1
  )
  (0x01000000):XMLNSC     = (
    (0x01000400):XmlDeclaration = (
      (0x03000100):Version  = '1.0'
      (0x03000100):Encoding = 'UTF-7'
    )
    (0x01000000):DATA          = (
      (0x01000000):SUBDATA = (
...


And here is trace log when I used the message WITH style sheet reference in the message (all trace):

Code:

(
  (0x01000000):Properties = (
    (0x03000000):MessageSet      = ''
    (0x03000000):MessageType     = ''
    (0x03000000):MessageFormat   = ''
    (0x03000000):Encoding        = 546
    (0x03000000):CodedCharSetId  = 437
    (0x03000000):Transactional   = TRUE
    (0x03000000):Persistence     = FALSE
    (0x03000000):CreationTime    = GMTTIMESTAMP '2008-11-27 08:36:38.160'
    (0x03000000):ExpirationTime  = -1
    (0x03000000):Priority        = 0
    (0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
    (0x03000000):ReplyProtocol   = 'MQ'
    (0x03000000):Topic           = NULL
    (0x03000000):ContentType     = ''
  )
  (0x01000000):MQMD       = (
    (0x03000000):SourceQueue      = 'TEST.IN'
    (0x03000000):Transactional    = TRUE
    (0x03000000):Encoding         = 546
    (0x03000000):CodedCharSetId   = 437
    (0x03000000):Format           = '        '
    (0x03000000):Version          = 2
    (0x03000000):Report           = 0
    (0x03000000):MsgType          = 8
    (0x03000000):Expiry           = -1
    (0x03000000):Feedback         = 0
    (0x03000000):Priority         = 0
    (0x03000000):Persistence      = 0
    (0x03000000):MsgId            = X'414d512044454d303033202020202020c85525492001db10'
    (0x03000000):CorrelId         = X'000000000000000000000000000000000000000000000000'
    (0x03000000):BackoutCount     = 0
    (0x03000000):ReplyToQ         = '                                                '
    (0x03000000):ReplyToQMgr      = 'DEM003                                          '
    (0x03000000):UserIdentifier   = 'mqadmin     '
    (0x03000000):AccountingToken  = X'160105150000001525af47299c1e1107e53b2beb03000000000000000000000b'
    (0x03000000):ApplIdentityData = '                                '
    (0x03000000):PutApplType      = 11
    (0x03000000):PutApplName      = ' Files\IBM\Utils\rfhutil.exe'
    (0x03000000):PutDate          = DATE '2008-11-27'
    (0x03000000):PutTime          = GMTTIME '08:36:38.160'
    (0x03000000):ApplOriginData   = '    '
    (0x03000000):GroupId          = X'000000000000000000000000000000000000000000000000'
    (0x03000000):MsgSeqNumber     = 1
    (0x03000000):Offset           = 0
    (0x03000000):MsgFlags         = 0
    (0x03000000):OriginalLength   = -1
  )
  (0x01000000):XMLNSC     =


So the XMLNSC -part of the trace is empty.

My goal is to get rid of the style sheet reference if it makes so much trouble. Does someone know how that is done in eSQL? After that I believe that I can make the references into "real" data fields.

Thanks!

BR,
--
mqmqmq
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Nov 27, 2008 1:31 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The empty message body is very suspicious. I am almost certain that you are encountering some kind of error.
Have you taken a user trace yet?
Have you checked the system error log?
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 » Style sheet reference in xml -file and MB
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.