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 » XML NameSpace in MRM Domain

Post new topic  Reply to topic
 XML NameSpace in MRM Domain « View previous topic :: View next topic » 
Author Message
jdevassy
PostPosted: Mon Jan 22, 2007 12:58 am    Post subject: XML NameSpace in MRM Domain Reply with quote

Apprentice

Joined: 16 Oct 2005
Posts: 37
Location: Melbourne, Australia

Hi,

I have created a message set, namespace enabled and imported schemas to create message defenitions. Same schemas are used to generate some sample messages, and all fields are in namespace. The message has namespace declarations. The message set has the namespaces added to the XML properties.

I am not able to parse the message using the message set. If i remove namespaces from the input message, it gets parsed. I can read the message in as XMLNS domain, but I have to use the message set to parse the message.

Can anyone please tell me whats wrong with the message set/message?

Thanks in Advance

Joe
Back to top
View user's profile Send private message Yahoo Messenger
kimbert
PostPosted: Mon Jan 22, 2007 1:18 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Good problem description - thanks for that.
Quote:
I can read the message in as XMLNS domain
Good - so it must be well-formed XML.
Quote:
I am not able to parse the message using the message set
What is the problem? Are you getting a parsing exception? A validation error? ( I suspect a validation error - read on )
Quote:
If i remove namespaces from the input message, it gets parsed
I suspect you are getting a validation error with the original message. When you remove the namespaces from the input message, the MRM parser cannot match its root tag against any of the deployed message definitions. The message is 'self-defining', and so does not get validated at all. So no validation error.

If you quote the full text of the parsing exception I may be able to suggest a fix.
Back to top
View user's profile Send private message
jdevassy
PostPosted: Mon Jan 22, 2007 1:40 am    Post subject: Reply with quote

Apprentice

Joined: 16 Oct 2005
Posts: 37
Location: Melbourne, Australia

Hi Kimbert,

Thanks for coming for my rescue....

I am able to parse the message when i remove the namespace. The problem is when i have namespace in the message.

The message actually comes inside the flow, but all i can see is 'ImbRecoverable Exception', just underneath MRM in the message tree as you get when you pass in an invalid message to the parser.


Thanks
Joe
_________________
Thanks & Regards,

Joy Paliakkara Devassy
Back to top
View user's profile Send private message Yahoo Messenger
kimbert
PostPosted: Mon Jan 22, 2007 2:54 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
The problem is when i have namespace in the message.
That's true, but the namespaces are not the problem. Re-read my post. When you remove namespaces you are avoiding validation.

Quote:
all i can see is 'ImbRecoverable Exception', just underneath MRM in the message tree
You need to get the full text of the parsing exception. I promise you that there will be a fairly clear error message being emitted.
- First check that the text of the exception is not being shown somewhere in the debugger
- Check the event log ( on windows it is the Application Event Log in Event Viewer ).
- If all else fails, enable user trace for the execution group, put your message through the flow, read the trace, format the trace. This will definitely give you all the information you require.
Back to top
View user's profile Send private message
jdevassy
PostPosted: Mon Jan 22, 2007 4:51 pm    Post subject: Reply with quote

Apprentice

Joined: 16 Oct 2005
Posts: 37
Location: Melbourne, Australia

Hi Kimbert,

I checked the Event log and there is nothing in it.

The message actually comes out through the 'out' terminal of the input node, but no message tree under MRM(only ' ImbRecoverableException caught from worker->parseNext.'). Exception is thrown only when i try to set some values from the input, beacuse it is not able to find the fields.

Thanks
Joe
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Mon Jan 22, 2007 5:00 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Do you have the catch and failure terminals hooked up?

If so, disconnect them.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jdevassy
PostPosted: Tue Jan 23, 2007 7:12 pm    Post subject: Reply with quote

Apprentice

Joined: 16 Oct 2005
Posts: 37
Location: Melbourne, Australia

Hi Jeff,

The catch/failure is not wired.

Thanks
Joe
Back to top
View user's profile Send private message Yahoo Messenger
kimbert
PostPosted: Wed Jan 24, 2007 1:38 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
The message actually comes out through the 'out' terminal of the input node, but no message tree under MRM(only ' ImbRecoverableException caught from worker->parseNext.')
Ah. That sounds wrong. You should either get a parsing exception, or you should get a valid message tree. Can you put in a trace node and post the output here.
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 » XML NameSpace in MRM Domain
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.