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 » how read a value from incoming soap xml

Post new topic  Reply to topic
 how read a value from incoming soap xml « View previous topic :: View next topic » 
Author Message
elvis_gn
PostPosted: Wed Apr 19, 2006 11:25 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi praveenraju,

Untested code:

Code:
DECLARE refSoapEnvelope REFERENCE TO "http://schemas.xmlsoap.org/soap/envelope/";
DECLARE refS1600 REFERENCE TO "http://itpragrammes.com/pdb/capabilities/mapt/2006/02/Scheduling";

DECLARE latestTime CHAR;

SET latestTime = InputBody.refSoapEnvelope:Envelope.refSoapEnvelope:Body.rar.appointment.refS1600:slot.refS1600:latestTime;


Hey I just scribbled what I think should work. If its not, try working with the namespace and field structure which is beautifully visible in Grid view in the XMLSpy.

Regards.
Back to top
View user's profile Send private message Send e-mail
mgk
PostPosted: Thu Apr 20, 2006 6:19 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Except I assume you did not mean:

Quote:
DECLARE refSoapEnvelope REFERENCE TO "http://schemas.xmlsoap.org/soap/envelope/";



You actually ment:

Code:
DECLARE refSoapEnvelope NAMESPACE "http://schemas.xmlsoap.org/soap/envelope/";


as the former will not work.

Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Thu Apr 20, 2006 7:42 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai


Sorry.

That one skipped my mind.

praveenraju:
Also, when your trying the SET, if the reference is not working, what I do atleast is try to make a high level reference first (like in this case at the envelope) and then come down the tree (try the reference to body, the segment etc etc), and thus see where I could have gone wrong...you'll need to use the debugger of course.

Regards.
Back to top
View user's profile Send private message Send e-mail
sirsi
PostPosted: Thu Jun 08, 2006 1:17 pm    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

Hi Guys,
Even i am having problem while accessing soap messages. Is it mandatory to create a message set for soap messages or for any xml messages with namespace?

thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jun 08, 2006 1:23 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

It is not mandatory to create a message set.

The following things *are* mandatory. WBIMB v5 or WMB v6. Use of the XMLNS, XMLNSC, etc parsers and NOT the XML parser.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sirsi
PostPosted: Thu Jun 08, 2006 11:42 pm    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

thanks jeff... will try using XMLNS... i was using XML...

missed reading this from the infocenter doc
Quote:
The XMLNS domain should be used if your messages exploit the namespaces feature of the XML version 1.0 or 1.1 specification.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat Jun 10, 2006 5:18 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

In fact, the 'XML' domain is deprecated.
_________________
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 » how read a value from incoming soap 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.