Author |
Message
|
brgmo |
Posted: Fri Nov 09, 2007 2:50 am Post subject: ASBITSTREAM problem |
|
|
Master
Joined: 03 Jun 2002 Posts: 227
|
Hi All,
Iam trying to validate a xml message using a DTD. The code is able to create the last child but when it goes into ASBITSTREAM function, it sticks to that and never comes out and the flow keeps hanging on that.When i look into event viewer,i get no error thown.Can someone guess what is going wrong.
Regards
brgmo. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Nov 09, 2007 2:53 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
What version of WMB? What platform?
What has validation to do with ABITSTREAM?
Details please? Possibly a code snippet?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
brgmo |
Posted: Fri Nov 09, 2007 2:59 am Post subject: |
|
|
Master
Joined: 03 Jun 2002 Posts: 227
|
WMB version is 5.THE PLATFORM IS aix.when we do validaion we are creatins a bitsream using ASBITSTREAM so that parses correctly with the message set supplied in th ASBITSTREAM arguments. |
|
Back to top |
|
 |
brgmo |
Posted: Fri Nov 09, 2007 3:17 am Post subject: |
|
|
Master
Joined: 03 Jun 2002 Posts: 227
|
Apologies.The platform is windows. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Nov 09, 2007 3:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Why not use the MRM parser & the message set directly?
Turning to your problem, you say that the node's creating the last child - how are you verifying that? What is the next expected action (the one that doesn't happen)? Is the output tree properly formed according to the CWF you're using for the output? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
brgmo |
Posted: Fri Nov 09, 2007 3:42 am Post subject: |
|
|
Master
Joined: 03 Jun 2002 Posts: 227
|
IT NEVER CROSSES ASBITSTREM.IT JUST HANGS ON TO THAT FUNCTION AND DOESN'T EXECUTE NEXT STATEMENT.HOW CAN I DEBUG THIS KIND OF SITUATION AS I CAN'T USE TRACE NIODE HERE. |
|
Back to top |
|
 |
brgmo |
Posted: Fri Nov 09, 2007 4:16 am Post subject: |
|
|
Master
Joined: 03 Jun 2002 Posts: 227
|
anyone any thoughts why this is happening. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Nov 09, 2007 4:22 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
brgmo wrote: |
anyone any thoughts why this is happening. |
Not if you're going to shout at us.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
shalabh1976 |
Posted: Fri Nov 09, 2007 5:44 am Post subject: |
|
|
 Partisan
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
|
I have never seen the ASBITSTREAM hanging. Probably the DTD mapping is where some problem is occuring.
Why don't you comment the line with the ASBITSTREAM and see what you get in the output.
Also even though BITSTREAM is deprecated you can test your code to see if it working with that.
At least then you can pinpoint that there is something wrong with the function/your code/input etc.
What happens if you run a mqsichangetrace? _________________ Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate |
|
Back to top |
|
 |
brgmo |
Posted: Fri Nov 09, 2007 5:59 am Post subject: |
|
|
Master
Joined: 03 Jun 2002 Posts: 227
|
we commented the asbitstream and it goes over but we haven't tested using bitstream.what is mqsichangetrace and how to use that. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Nov 09, 2007 6:06 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
brgmo wrote: |
what is mqsichangetrace and how to use that. |
It's a broker command, documented in the broker manual, that alters the broker's trace level. Or starts/stops it if you alter it from/to none. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
shalabh1976 |
Posted: Fri Nov 09, 2007 8:56 am Post subject: |
|
|
 Partisan
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
|
Since it seems that the problem is in the conversion when ASBITSTREAM is used, can you post your code snippet showing it's usage? _________________ Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate |
|
Back to top |
|
 |
kimbert |
Posted: Mon Nov 12, 2007 2:30 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
I am trying to validate a xml message using a DTD |
Hmmm. Message broker cannot validate against a DTD - it can only validate against a message set. Of course, you can create a message set and then import a DTD to create a message definition file. Is that what you mean?
Either way, I agree with shalabh1976 - please post your ESQL. |
|
Back to top |
|
 |
|