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 IndexWebSphere Message Broker (ACE) SupportHelp:Stripping off JMS header from incoming XML

Post new topicReply to topic
Help:Stripping off JMS header from incoming XML View previous topic :: View next topic
Author Message
samimohd
PostPosted: Wed Aug 21, 2002 4:59 am Post subject: Help:Stripping off JMS header from incoming XML Reply with quote

Novice

Joined: 25 Mar 2002
Posts: 21

I am trying to stripp off the JMS header from the incoming XML. My XML message looks like this:
RFH  Ð " µ MQSTR ¸ <mcd><Msd>jms_text</Msd></mcd> &#8222; <jms><Dst>queue://GETTYDQM/JMS.SAP.LCL.OUT</Dst><Rto>queue://GETTYDQM/SAP.JMS.LCL.IN</Rto><Tms>1029854454618</Tms><Dlv>2</Dlv></jms><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Report_NC_PurchaseOrder SYSTEM "Report_NC_PO_10.dtd">
<Report_NC_PurchaseOrder version="1.0">
<ControlArea>
<Verb value="Report"/>
<Noun value="NC_PurchaseOrder"/>
</ControlArea>
<DataArea>
<ReportPO>
<ReportPOHeader>
<SalesOrganization>1304</SalesOrganization>
<DistributionChannel>00</DistributionChannel>
<Division>00</Division>
<PurchaseOrderType>WEB</PurchaseOrderType>
<WCSOrderRefNumber>989898</WCSOrderRefNumber>
<DateTimeReference>
<PlacedDate>20011109</PlacedDate>
<PlacedTime>061550 </PlacedTime>
</DateTimeReference>
<RequestedDeliveryDate>20020611</RequestedDeliveryDate>
<ShipMethod>SGND01</ShipMethod>
<PaymentTerm>C547</PaymentTerm>
<PONumber>1512796pl</PONumber>
</ReportPOHeader>
<ReportPOItem>
<ItemLineNumber>1</ItemLineNumber>
<itemLineQuantity>1</itemLineQuantity>
<SalesUOM>Investigating</SalesUOM>
<ProductNumberByMerchant>35680336 C1 </ProductNumberByMerchant>
</ReportPOItem>
<SalesOrderText>Tax Registration</SalesOrderText>
<RequisitionerInfo>
<ShipToNumberBySAP>10006886</ShipToNumberBySAP>
<WCSCustomerRefNumber>2152 </WCSCustomerRefNumber>
<ContactPersonName>
<title/>
<LastName> testerprod10 </LastName>
<FirstName>Tester</FirstName>
<MiddleName/>
</ContactPersonName>
</RequisitionerInfo>
<ShipToInfo>
<address>
<AddressLine> 2455 Forest St </AddressLine>
<AddressLine/>
<AddressLine/>
<city>Marlborough </city>
<state>MA</state>
<Zip> 01752 </Zip>
<country>US</country>
</address>
<ContactPersonName>
<LastName> testerprod10 </LastName>
<FirstName>Tester</FirstName>
<MiddleName/>
<AlternateName/>
</ContactPersonName>
</ShipToInfo>
<BillToInfo>
<address>
<AddressLine> 2455 Forest St </AddressLine>
<AddressLine/>
<AddressLine/>
<city>Marlborough </city>
<state>MA</state>
<Zip> 01752 </Zip>
<country>US</country>
</address>
<ContactPersonName>
<LastName> testerprod10 </LastName>
<FirstName>Tester</FirstName>
<MiddleName/>
<AlternateName/>
</ContactPersonName>
</BillToInfo>
</ReportPO>
</DataArea>
</Report_NC_PurchaseOrder>
In the compute node, when I set <mcd> and <jms> elements to null, I am getting 0 bytes.

I want to remove the header marked red in this message.

I am converting this XML to NEON and sending this as an Idoc to SAP. If I manually remove the header and jsut take the XML it works fine, but I want to remove the JMS header in the compute node before I translate XML to NEON. Can anybody help me with a sample code.

I am using MQSI 2.0.2. The broker is on AIX.
Thanks.
Sami.
Back to top
View user's profile Send private message Send e-mail
maxis
PostPosted: Wed Aug 21, 2002 5:57 am Post subject: Reply with quote

Centurion

Joined: 25 Jun 2002
Posts: 144

When u put message from a JMS application, strip the header. - Fix the problem in root level

Just indicate the target client as non-jms - this will not attach the jms header.


best of luck
M
Back to top
View user's profile Send private message
maxis
PostPosted: Tue Sep 03, 2002 9:48 am Post subject: is your program working ? Reply with quote

Centurion

Joined: 25 Jun 2002
Posts: 144

is your program working ? Were u able to solve it not ?


M
Back to top
View user's profile Send private message
samimohd
PostPosted: Tue Sep 03, 2002 12:42 pm Post subject: Reply with quote

Novice

Joined: 25 Mar 2002
Posts: 21

Thanks for asking. I have to code the compute node to strip off the header.
Sami.
Back to top
View user's profile Send private message Send e-mail
lung
PostPosted: Tue Sep 03, 2002 4:44 pm Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

So how did u strip off the header in the compute node?
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportHelp:Stripping off JMS header from incoming 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.