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 » Namespaces in esql

Post new topic  Reply to topic
 Namespaces in esql « View previous topic :: View next topic » 
Author Message
mustang
PostPosted: Thu Jun 15, 2006 8:29 am    Post subject: Namespaces in esql Reply with quote

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
View user's profile Send private message
juddg
PostPosted: Thu Jun 15, 2006 9:02 am    Post subject: Do not put the namespace prefixes in quotes Reply with quote

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
View user's profile Send private message
mustang
PostPosted: Thu Jun 15, 2006 9:08 am    Post subject: Reply with quote

Acolyte

Joined: 07 Feb 2006
Posts: 72

Thank you very much for the suggestion. Unfortunately, that did not work either.
Back to top
View user's profile Send private message
juddg
PostPosted: Thu Jun 15, 2006 9:23 am    Post subject: Use XMLNSC.Attribute instead of XML.Attribute Reply with quote

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
View user's profile Send private message
mustang
PostPosted: Thu Jun 15, 2006 9:54 am    Post subject: Reply with quote

Acolyte

Joined: 07 Feb 2006
Posts: 72

That did it. Thank you very much!!!!!!!!!!!!!!!
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 » Namespaces in esql
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.