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 » XML Parsing

Post new topic  Reply to topic
 XML Parsing « View previous topic :: View next topic » 
Author Message
pfaulkner
PostPosted: Tue Oct 15, 2002 1:18 pm    Post subject: XML Parsing Reply with quote

Master

Joined: 18 Mar 2002
Posts: 241
Location: Colorado, USA

I am relatively new to XML and need a little help.

I have a SOAP message which I parsed in WMQI using the XML parser.

I need to access the only data element within the SOAP msg (FIELD1). The SOAP msg used namespaces.

Can someone tell me how I access FIELD1?

This is what I tried so far:
SET "OutputRoot"."MRM"."field1" = "InputBody".XML."SOAP-ENV:Envelope"."SOAP-ENV:Body"."REGISTRYMSG"."FIELD1";

I assume SOAP-ENV is a namespace?

The following is a Trace of ${Root} showing the XML message.

2002-10-15 15:10:28.590986 4370 UserTrace BIP4060I: Data 'Root1---->
(
(0x1000000)Properties = (
(0x3000000)MessageSet = ''
(0x3000000)MessageType = ''
(0x3000000)MessageFormat = 'XML'
(0x3000000)Encoding = 273
(0x3000000)CodedCharSetId = 819
(0x3000000)Transactional = TRUE
(0x3000000)Persistence = FALSE
(0x3000000)CreationTime = GMTTIMESTAMP '2002-10-15 21:04:43.523655'
(0x3000000)ExpirationTime = -1
(0x3000000)Priority = 1
(0x3000000)ReplyIdentifier = X'a622ccd401908885ff303030303030303031303030303030'
(0x3000000)ReplyProtocol = 'MQ'
(0x3000000)Topic = NULL
)
(0x1000000)MQMD = (
(0x3000000)SourceQueue = 'RG.T.CITMCSAC.OS07.SOAP.RGL3'
(0x3000000)Transactional = TRUE
(0x3000000)Encoding = 273
(0x3000000)CodedCharSetId = 819
(0x3000000)Format = 'RGTHDR01'
(0x3000000)Version = 2
(0x3000000)Report = 0
(0x3000000)MsgType = 1
(0x3000000)Expiry = -1
(0x3000000)Feedback = 0
(0x3000000)Priority = 1
(0x3000000)Persistence = 0
(0x3000000)MsgId = X'414d5120434f533120202020202020203d498adf006ad013'
(0x3000000)CorrelId = X'a622ccd401908885ff303030303030303031303030303030'
(0x3000000)BackoutCount = 0
(0x3000000)ReplyToQ = 'RGSH.REPLY.QUEUE.0008 '
(0x3000000)ReplyToQMgr = 'COS1 '
(0x3000000)UserIdentifier = 'registry '
(0x3000000)AccountingToken = X'0333303000000000000000000000000000000000000000000000000000000006'
(0x3000000)ApplIdentityData = ' '
(0x3000000)PutApplType = 6
(0x3000000)PutApplName = ' '
(0x3000000)PutDate = DATE '2002-10-15'
(0x3000000)PutTime = GMTTIME '21:10:28.370'
(0x3000000)ApplOriginData = ' '
(0x3000000)GroupId = X'000000000000000000000000000000000000000000000000'
(0x3000000)MsgSeqNumber = 1
(0x3000000)Offset = 0
(0x3000000)MsgFlags = 0
(0x3000000)OriginalLength = -1
)
(0x1000010)XML = (
(0x1000000)SOAP-ENV:Envelope = (
(0x3000000)xmlns:SOAP-ENV = 'http://schemas.xmlsoap.org/soap/envelope/'
(0x3000000)xmlns:xsi = 'http://www.w3.org/1999/XMLSchema-instance'
(0x3000000)xmlns:xsd = 'http://www.w3.org/1999/XMLSchema'
(0x2000000) = '


'
(0x1000000)SOAP-ENV:Body = (
(0x2000000) = '


'
(0x1000000)ns1:getTemp = (
(0x3000000)xmlns:ns1 = 'urn:xmethods-Temperature'
(0x3000000)SOAP-ENV:encodingStyle = 'http://schemas.xmlsoap.org/soap/encoding/'
(0x2000000) = '
'
(0x1000000)REGISTRYMSG = (
(0x1000000)FIELD1 = (
(0x2000000) = 'abcde'
)
)
(0x2000000) = '
'
)
(0x2000000) = '

'
)
(0x2000000) = '

'
)
(0x6000002) = '
'
)
)
Back to top
View user's profile Send private message AIM Address
kirani
PostPosted: Tue Oct 15, 2002 8:59 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Paul,

Could you post your input XML message (without ${Root} format) here? I think you should be able to refer to this field with
Code:

InputBody."SOAP-ENV:Envelope"."SOAP-ENV:Body"."ns1:getTemp"."REGISTRYMSG"."FIELD1"

_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
pfaulkner
PostPosted: Wed Oct 16, 2002 7:22 am    Post subject: Reply with quote

Master

Joined: 18 Mar 2002
Posts: 241
Location: Colorado, USA

that worked....thanks

I have added my input SOAP message just incase anyone cares.

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
>


<SOAP-ENV:Body>


<ns1:getTemp xmlns:ns1="urn:xmethods-Temperature"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<REGISTRYMSG><FIELD1>abcde</FIELD1></REGISTRYMSG>
</ns1:getTemp>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML Parsing
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.