Posted: Wed Aug 21, 2002 4:59 am Post subject: Help:Stripping off JMS header from incoming XML
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> „ <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.
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