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 » Ways of getting input XML

Post new topic  Reply to topic Goto page Previous  1, 2
 Ways of getting input XML « View previous topic :: View next topic » 
Author Message
JT
PostPosted: Mon Oct 25, 2004 6:38 am    Post subject: Reply with quote

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
View user's profile Send private message
dilse
PostPosted: Mon Oct 25, 2004 7:43 am    Post subject: Reply with quote

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
View user's profile Send private message
JT
PostPosted: Mon Oct 25, 2004 8:51 am    Post subject: Reply with quote

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
View user's profile Send private message
dilse
PostPosted: Mon Oct 25, 2004 11:49 am    Post subject: Reply with quote

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
View user's profile Send private message
dilse
PostPosted: Mon Oct 25, 2004 12:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
dilse
PostPosted: Tue Oct 26, 2004 6:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Ways of getting input XML
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.