Author |
Message
|
V J |
Posted: Fri Jul 11, 2014 12:25 pm Post subject: WMB max occurrence check not happening during validation |
|
|
Novice
Joined: 30 May 2013 Posts: 11
|
I have not seen this kind of issue before.
have enabled validation on MQ output node to validate content and value.
If the message has any invalid values, it throws a exception. For eg, schema defines length as 2 characters, and message contains 3 characters , then broker complains
IF the message has an element with occurrence more than that defined in schema , broker does not detect this. For eg. Schema defines element "MyElement" with minoccurs=0 and maxoccurs=5 and message has 9 occurrences of "MyElement" then broker does not complain.
My Flow looks like
SOAP Input -> compute ->Logger SF -> MQ output
Note: SOAP Input is in gateway mode.
Have another flow which looks very similar, in this case validation works fine as expected.
MQ Input -> compute ->Logger SF -> MQ output
Does it look like a PMR issue.
We are using V8 of broker. |
|
Back to top |
|
 |
kimbert |
Posted: Sun Jul 13, 2014 1:18 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
Does it look like a PMR issue. |
Not yet. You would need some more evidence first. The obvious next step is to try this using some other XML processor - XML4J would be a good choice, and is used in many JVMs. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
mgk |
Posted: Mon Jul 14, 2014 2:10 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Is in inbound or outbound validation you are trying to do? If it's Inbound, you should know that validation can only happen if there is something to validate against. If the Input node is in Gateway mode, then there is no schema for the Inbound message as there is no WSDL. Therefore, validation is turned off for the inbound message.
Kind regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
ganesh |
Posted: Mon Jul 14, 2014 5:32 am Post subject: |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
If it is for outbound validation you have to specify the message set to validate against. |
|
Back to top |
|
 |
V J |
Posted: Mon Jul 14, 2014 11:15 am Post subject: |
|
|
Novice
Joined: 30 May 2013 Posts: 11
|
@kimbert , I have tried to validate xml request using other tools. They fail validation.
@ganesh, mgk. I am doing inbound validation, and i am setting message set to use in the compute node based on namespace of the request. |
|
Back to top |
|
 |
flnalvin |
Posted: Wed Jan 07, 2015 3:11 pm Post subject: Met the same problem |
|
|
Newbie
Joined: 30 Apr 2014 Posts: 1
|
Do you have the solution?
I met this problem too. |
|
Back to top |
|
 |
V J |
Posted: Wed Jan 07, 2015 5:59 pm Post subject: |
|
|
Novice
Joined: 30 May 2013 Posts: 11
|
Haven't found a solution for this yet. Its been a low priority for me.
I am convinced that we need to raise a PMR.
In case you do find a solution or get a response from IBM let me know. |
|
Back to top |
|
 |
kimbert |
Posted: Thu Jan 08, 2015 4:59 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
I am convinced that we need to raise a PMR. |
I agree. Please make sure that you reference this thread, so that whoever picks up the PMR gets to see this discussion. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
|