Topic
  • 3 replies
  • Latest Post - ‏2012-02-20T16:54:03Z by Lula
SystemAdmin
SystemAdmin
289 Posts

Pinned topic MQ Import Issue - Invalid message received in MQ

‏2010-04-23T13:56:17Z |
We are using WID 6.1.2.?

we are using Impor with MQ Binding to send a BO(XML) to MQ queue. Message are going to MQ. But there is some funny character insert before the beginning of XML. Will anyone have any idea about that?

Message :

MDE ☻ H ◄☺ ╕♦ MQHRF2 AMQ NMPSMQM ö¬╞K ☼ÿ♂☺ ↑     RFH ☻
x ☺◄ ♦╕MQSTR ♦╕ P<usr><TargetFunctionName dt="string">handleMessa
ge</TargetFunctionName></usr> <?xml version="1.0" encoding="UTF-8"?>
<p:spaII_BackOrderUpdate xsi:type="p:spaII_BackOrderUpdate" xmlns:xsi="http://ww
w.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.nissan.com/nna/spa/nmps"><
idocInfo><sap_idoc_type>ORDERS05</sap_idoc_type><sap_idoc_nbr>0000000023051881</
sap_idoc_nbr><sap_idoc_time>20091221</sap_idoc_time><sap_idoc_date>075527</sap_i
doc_date></idocInfo><orderInfo><order>16113586</order><selling_dlr></selling_dlr
><orderLineInfo><order_line>0012</order_line><order_line_status>Z02</order_line_
status><part>2442856L00</part><qty>1</qty><offer_terms></offer_terms><handling_f
ee></handling_fee><freight_cost></freight_cost><shiptype></shiptype><shippingInf
o><fdx_track></fdx_track><fdx_plan_dispatch_date>20091222</fdx_plan_dispatch_dat
e><fdx_actual_dispatch_date></fdx_actual_dispatch_date><fdx_plan_delivery_date><
/fdx_plan_delivery_date></shippingInfo></orderLineInfo></orderInfo></p:spaII_Bac
kOrderUpdate>
We understand there are MQ headers. Any configuration to prevent them from getting added in to messages?
Atlease any conf to remove TargetFuncationName?

Thanks

Muru
Updated on 2012-02-20T16:54:03Z at 2012-02-20T16:54:03Z by Lula
  • alexwood
    alexwood
    1 Post

    Re: MQ Import Issue - Invalid message received in MQ

    ‏2010-05-05T15:06:44Z  
    MDE ☻ H ◄☺ ╕♦ MQHRF2 AMQ NMPSMQM ö¬╞K ☼ÿ♂☺ ↑ RFH ☻
    x ☺◄ ♦╕MQSTR ♦╕ P<usr><TargetFunctionName dt="string">handleMessa
    ge</TargetFunctionName></usr>

    is all part of the MQMD and MQRFH2 header.

    ALL MQ messages contain an MQMD header, it is mandatory part of an MQ message.
    The MQRFH2 header is optional in MQ and added in this case due to your choice of DataBinding.
    The TargetFunctionName parameter in the RFH2 is added because of the DataBinding you are using in this case.
    Using a different DataBinding would result in no TargetFunctionName and no RFH2 header being added at all.

    How are you precessing the message off the queue ?
    The various MQ APIs include assistance in parsing MQ headers etc off the message.
  • SystemAdmin
    SystemAdmin
    289 Posts

    Re: MQ Import Issue - Invalid message received in MQ

    ‏2010-05-05T18:36:10Z  
    • alexwood
    • ‏2010-05-05T15:06:44Z
    MDE ☻ H ◄☺ ╕♦ MQHRF2 AMQ NMPSMQM ö¬╞K ☼ÿ♂☺ ↑ RFH ☻
    x ☺◄ ♦╕MQSTR ♦╕ P<usr><TargetFunctionName dt="string">handleMessa
    ge</TargetFunctionName></usr>

    is all part of the MQMD and MQRFH2 header.

    ALL MQ messages contain an MQMD header, it is mandatory part of an MQ message.
    The MQRFH2 header is optional in MQ and added in this case due to your choice of DataBinding.
    The TargetFunctionName parameter in the RFH2 is added because of the DataBinding you are using in this case.
    Using a different DataBinding would result in no TargetFunctionName and no RFH2 header being added at all.

    How are you precessing the message off the queue ?
    The various MQ APIs include assistance in parsing MQ headers etc off the message.
    Thanks for the reply. Our problem got resolved.
  • Lula
    Lula
    1 Post

    Re: MQ Import Issue - Invalid message received in MQ

    ‏2012-02-20T16:54:03Z  
    Thanks for the reply. Our problem got resolved.
    Saq_Muru how did you fix it, I have the same problem.