Author |
Message
|
samimohd |
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. |
|
Back to top |
|
 |
maxis |
Posted: Wed Aug 21, 2002 5:57 am Post subject: |
|
|
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 |
|
 |
maxis |
Posted: Tue Sep 03, 2002 9:48 am Post subject: is your program working ? |
|
|
Centurion
Joined: 25 Jun 2002 Posts: 144
|
is your program working ? Were u able to solve it not ?
M |
|
Back to top |
|
 |
samimohd |
Posted: Tue Sep 03, 2002 12:42 pm Post subject: |
|
|
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 |
|
 |
lung |
Posted: Tue Sep 03, 2002 4:44 pm Post subject: |
|
|
 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 |
|
 |
|