|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Namespaces in esql |
« View previous topic :: View next topic » |
Author |
Message
|
mustang |
Posted: Thu Jun 15, 2006 8:29 am Post subject: Namespaces in esql |
|
|
Acolyte
Joined: 07 Feb 2006 Posts: 72
|
I am having a tough time reading XML using the XMLNSC message domain. The code I am using is as follows:
DECLARE sp NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE n1 NAMESPACE 'http://www.courts.state.mn.us/CourtXML/2.0.0';
DECLARE wsa NAMESPACE 'http://schemas.xmlsoap.org/ws/2004/03/addressing';
Set case1 = Coalesce(InputRoot.XMLNSC."sp:Envelope"."sp:Body"."n1:CaseGetReply"."n1:CaseRequest".(XML.Attribute)caseNumberKey, 'Unknown');
I have tried the above set statement, along with many other variations, and it always comes back "Unknown".
A portion of the xml is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header />
<soap:Body>
<CaseGetReply xmlns="http://www.courts.state.mn.us/CourtXML/2.0.0">
<CaseRequest caseNumberKey="27CR06777819" />
</CaseGetReply>
</soap:Body>
</soap:Envelope>
Any help would be much appreciated.
Thanks!!!!!!! |
|
Back to top |
|
 |
juddg |
Posted: Thu Jun 15, 2006 9:02 am Post subject: Do not put the namespace prefixes in quotes |
|
|
Apprentice
Joined: 22 Nov 2004 Posts: 33
|
Hi,
Please try the following :
Set case1 = Coalesce(InputRoot.XMLNSC.sp:"Envelope".sp:"Body".n1:"CaseGetReply".n1:"CaseRequest".(XML.Attribute)caseNumberKey, 'Unknown');
Regards,
juddg |
|
Back to top |
|
 |
mustang |
Posted: Thu Jun 15, 2006 9:08 am Post subject: |
|
|
Acolyte
Joined: 07 Feb 2006 Posts: 72
|
Thank you very much for the suggestion. Unfortunately, that did not work either. |
|
Back to top |
|
 |
juddg |
Posted: Thu Jun 15, 2006 9:23 am Post subject: Use XMLNSC.Attribute instead of XML.Attribute |
|
|
Apprentice
Joined: 22 Nov 2004 Posts: 33
|
Hi,
As this is the XMLNSC domain also replace XML.Attribute with XMLNSC.Attribute.
Regards,
juddg. |
|
Back to top |
|
 |
mustang |
Posted: Thu Jun 15, 2006 9:54 am Post subject: |
|
|
Acolyte
Joined: 07 Feb 2006 Posts: 72
|
That did it. Thank you very much!!!!!!!!!!!!!!! |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|