Hi,

We are having messages in IBM Websphere MQ messages. The format is XML.

Message Format:

<NS1:MW1_005B_3_CBO xmlns:NS1="http://sharedresources.cbo" xmlns:shd="http://sharedresources.shd" xmlns:ems="http://sharedresources.ems">
<shd:UnitInfo>
<shd:UnitId>24156</shd:UnitId>
<shd:UnitName>Gowanus5</shd:UnitName>
</NS1:MW1_005B_3_CBO>

When we are trying to consume the message using the IBM Websphere MQ consumer node getting the below error:
Error:
java.lang.ClassCastException: com.ibm.jms.JMSBytesMessage cannot be cast to javax.jms.TextMessage

But when the message format is mentioned below. Successfully consuming the messages. How can we consume message when there is namespace
<MW1_005B_3_CBO >
<UnitInfo>
<UnitId>24156</UnitId>
<UnitName>Gowanus5</UnitName>
</MW1_005B_3_CBO>

Please provide some inputs