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 Index » WebSphere Message Broker (ACE) Support » trace node with data in xmlns domain

Post new topic  Reply to topic
 trace node with data in xmlns domain « View previous topic :: View next topic » 
Author Message
mrgate
PostPosted: Wed Oct 10, 2007 12:37 pm    Post subject: trace node with data in xmlns domain Reply with quote

Centurion

Joined: 28 Feb 2007
Posts: 141
Location: India

Hello All,
I am working with message broker 6.0 on windows 2000 platform.
My requirement is that I am passing soap request message through trace node.

The message is:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<create xmlns="urn:MySoapServices">
<PurchaseOrder>
<BuyerDetails>
<Organization>University of Washington</Organization>
<Authorized_Person>Cease Wayne</Authorized_Person>
<Street>Savery Hall</Street>
<City>Seattle</City>
<State>Wa</State>
<Zip>98195</Zip>
<Phone>206-111-2345</Phone>
<Fax>206-111-2346</Fax>
<Email>hideki@u.washington.edu</Email>
</BuyerDetails>
<SupplierDetails>
<Organization>Thomas Industrial Network</Organization>
<Authorized_Person>Lowry Phillip</Authorized_Person>
<Street>5 Penn Plaza, 10th Floor</Street>
<City>New York</City>
<State>NY</State>
<Zip>10001</Zip>
<Phone>888-846-6638</Phone>
<Fax>212-629-1158</Fax>
</SupplierDetails>
<PurchaseOrderInformation>
<Order_Number>4556</Order_Number>
<Order_Delivery_Date>10-10-2006</Order_Delivery_Date>
<PO_Type>Finished</PO_Type>
<status>PO sent</status>
</PurchaseOrderInformation>
<Address>
<Shipping_Address>
<Organisation>University of Washington</Organisation>
<Authorized_Person>Cease Wayne</Authorized_Person>
<Street>Savery Hall</Street>
<City>Seattle</City>
<State>Wa</State>
<Zip>98195</Zip>
<Phone>206-111-2345</Phone>
<Fax>206-111-2346</Fax>
<Email>hideki@u.washington.edu</Email>
</Shipping_Address>
<Billing_Address>
<Organisation>University of Washington</Organisation>
<Authorized_Person>Cease Wayne</Authorized_Person>
<Street>Savery Hall</Street>
<City>Seattle</City>
<State>Wa</State>
<Zip>98195</Zip>
<Phone>206-111-2345</Phone>
<Fax>206-111-2346</Fax>
<Email>hideki@u.washington.edu</Email>
</Billing_Address>
</Address>
<Payment_Terms>
<Purchase_Order>
<PO_Number>456</PO_Number>
<Payment_Type>Bank</Payment_Type>
<Payment_Type_PO>
<Bank>
<BankName>Citibank</BankName>
<AccountNumber>654987456</AccountNumber>
<BranchCode>564</BranchCode>
</Bank>
<Credit_Card>
<Payment_Type_CC>VISA</Payment_Type_CC>
<CC_Number>1234 4567 7890 0123</CC_Number>
<CC_Expire_Date>10-12-2012</CC_Expire_Date>
</Credit_Card>
</Payment_Type_PO>
</Purchase_Order>
<Amount>1000 USD</Amount>
</Payment_Terms>
<Purchase_Items>
<Item>
<Part_Name>6 foot wide 5 foot high cabinet</Part_Name>
<Quantity>9</Quantity>
<Description>Cabinets of systems</Description>
</Item>
<Item>
<Part_Name>6 foot wide shelves</Part_Name>
<Quantity>6</Quantity>
<Description>Shelves for books</Description>
</Item>
</Purchase_Items>
</PurchaseOrder>
</create>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Now what is my requirement is that I have to navigate the soap request message and insert the order_number under purchase order information element and insert it in pattern of trace node.

what I did is i have used pattern as

ORDER NUMBER:${Root.XML.SOAP-ENV:Envelope.SOAP-ENV:Body.create.PurchaseOrder.PurchaseOrderInformation.Order_Number}
it is giving an error in events log.

can anyone give me solution for this.
Back to top
View user's profile Send private message
Bill.Matthews
PostPosted: Wed Oct 10, 2007 1:03 pm    Post subject: Reply with quote

Master

Joined: 23 Sep 2003
Posts: 232
Location: IBM (Retired)

You are trying to trace this pattern and it is failing.

${Root.XML.SOAP-ENV:Envelope.SOAP-ENV:Body.create.PurchaseOrder.PurchaseOrderInformation.Order_Number}

Lets start with some simple statements:

1. You are running on an unsupported platform

2. You appear (at least based on the trace pattern) to be using the XML parser - which does not support namespaces - rather than either the XMLNS or the XMLNSC (recommended) parsers which do understand name spaces.

3. In the trace pattern you have specified the short namespace value rather than the full namespace value - which would be needed by the trace node.

4. With everything else correct - you could probably use an * in place of the namespace entry .

Finally, it never hurts to also mention what service has been applied to the Toolkit and runtime. Plus, when you are describing an error - you should also provide a copy of the error message.
_________________
Bill Matthews
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Oct 10, 2007 3:14 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I don't consider "it gives an error" to be "describing an error".

I consider it, at best, "mentioning an error".
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » trace node with data in xmlns domain
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.