Author |
Message
|
elvis_gn |
Posted: Wed Apr 19, 2006 11:25 pm Post subject: |
|
|
 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 |
|
 |
mgk |
Posted: Thu Apr 20, 2006 6:19 am Post subject: |
|
|
 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 |
|
 |
elvis_gn |
Posted: Thu Apr 20, 2006 7:42 pm Post subject: |
|
|
 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 |
|
 |
sirsi |
Posted: Thu Jun 08, 2006 1:17 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Jun 08, 2006 1:23 pm Post subject: |
|
|
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 |
|
 |
sirsi |
Posted: Thu Jun 08, 2006 11:42 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Sat Jun 10, 2006 5:18 am Post subject: |
|
|
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 |
|
 |
|