Author |
Message
|
JT |
Posted: Mon Oct 25, 2004 6:38 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
Try using CDATA:
Code: |
SET OutputRoot.XML.response.OriginalMessage.(XML.CDataSection) = CAST (InputRoot.XML AS CHAR CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding); |
|
|
Back to top |
|
 |
dilse |
Posted: Mon Oct 25, 2004 7:43 am Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
JT,
Thanks for your reply. I tried as you said, but the OutputRoot's OriginalMessage is not getting any input XML at all. It is just showing OriginalMessage in OutputRoot as
<OriginalMessage><![CDATA[]]></OriginalMessage>
Let me know what you say. ok.
Thanks, _________________ DilSe..
Take life as it comes.. |
|
Back to top |
|
 |
JT |
Posted: Mon Oct 25, 2004 8:51 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
Forgot the ASBITSTREAM function:
Code: |
SET OutputRoot.XML.response.OriginalMessage.(XML.CDataSection) = CAST(ASBITSTREAM(InputRoot.XML.Name OPTIONS FolderBitStream) AS CHAR CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding); |
The results are:
Code: |
(0x01000010):XML = (
(0x01000000):response = (
(0x01000000):OriginalMessage = (
(0x02000001): = '<Name><Last></Last><Middle></Middl><First></First></Name>'
)
)
)
) |
|
|
Back to top |
|
 |
dilse |
Posted: Mon Oct 25, 2004 11:49 am Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
JT,
Thanks for the info. but still I am not able to get the entire XML. here is my actual input XML:
<partnerpluspoversion1.0 encoding="ISO-8859-1"><route><![CDATA[PARTNERORDERS]]></route><orderheader><orderdescription>Partner 2.0</orderdescription><ordertype>1</ordertype><programtype><![CDATA[ZNET]]></programtype><ordersource><![CDATA[PDIR]]></ordersource><creditterms><![CDATA[NET 30 DAYS]]></creditterms><headerudf><udflinedef><![CDATA[2]]></udflinedef><udfcustdesc><![CDATA[TEST UDF]]></udfcustdesc><udfdata><![CDATA[7]]></udfdata></headerudf></orderheader><orderdetail><lineitem><mfgpartnumber><![CDATA[P9621D#ABA]]></mfgpartnumber></lineite><lineitem><mfgpartnumber><![CDATA[280647-002]]></mfgpartnumber></lineitem></orderdetail></partnerpluspoversion1.0>
I am testing this input when </lineitem> given as <lineite> which is at the starting of bold letters.
and my xml in OutputRoot IS:
(0x1000000)OriginalMessage = (
(0x2000001) = '<partnerpluspoversion1.0 encoding="ISO-8859-1"><route><![CDATA[PARTNERORDERS]]></route><orderheader><orderdescription>Partner 2.0</orderdescription><ordertype>1</ordertype><programtype><![CDATA[ZNET]]></programtype><ordersource><![CDATA[PDIR]]></ordersource><creditterms><![CDATA[NET 30 DAYS]]></creditterms><headerudf><udflinedef><![CDATA[2]]></udflinedef><udfcustdesc><![CDATA[TEST UDF]]></udfcustdesc><udfdata><![CDATA[7]]></udfdata></headerudf></orderheader><orderdetail><lineitem><mfgpartnumber><![CDATA[P9621D#ABA]]></mfgpartnumber></lineitem></orderdetail></partnerpluspoversion1.0>'
)
you could see that the text in bold is lost when it is coming into the OUTPUT.
I USED THE STATEMENT
SET OutputRoot.XML.response.OriginalMessage.(XML.CDataSection) = CAST(ASBITSTREAM(InputRoot.XML."partnerpluspoversion1.0" OPTIONS FolderBitStream) AS CHAR CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);
WHAT SHOULD BE THE PROBLEM YOU THINK.
lET ME KNOW.
Thanks for the replies.. _________________ DilSe..
Take life as it comes.. |
|
Back to top |
|
 |
dilse |
Posted: Mon Oct 25, 2004 12:41 pm Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
JT,
Code: |
(0x01000010):XML = (
(0x01000000):response = (
(0x01000000):OriginalMessage = (
(0x02000001): = '<Name><Last></Last><Middle></Middl><First></First></Name>'
)
)
)
)
|
where did you find this response? is it generated from the EXCEPTION terminal or OUTPUT terminal?
I am asking you this because I need to get this through EXCEPTION node.
because I need to get Input XML if it is an Invalid XML.
Let me know..ok.
Appreciate you.. _________________ DilSe..
Take life as it comes.. |
|
Back to top |
|
 |
dilse |
Posted: Tue Oct 26, 2004 6:16 am Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
Hi All,
I am getting my whole XML. This is how I got my Input XML.
SET OutputRoot.XML.response.OriginalMessage.(XML.CDataSection) = CAST(ASBITSTREAM(InputRoot.XML) AS CHAR CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);
I used this statement and I got the whole Input XML in the EXCEPTION terminal compute node.
Thanks alot JT, Jefflowrey, Nizam , EddieA for ur replies.... _________________ DilSe..
Take life as it comes.. |
|
Back to top |
|
 |
|