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 » Namespace prefix using ESQL

Post new topic  Reply to topic Goto page Previous  1, 2
 Namespace prefix using ESQL « View previous topic :: View next topic » 
Author Message
kimbert
PostPosted: Thu May 14, 2009 1:01 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The correct answer to this question is easy to find in the product documentation here: http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/topic/com.ibm.etools.mft.doc/ac67194_.htm

I found it by typing 'namespace prefix' into the search box here: http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ax79999_.htm
I am very disappointed that none of the previous responders have directed kirank to this page.
kirank should be kicking himself for not finding it.

broker_new: Your advice is incorrect. XMLNSC can do what you require, and it always could. Please do not advise users to switch to XMLNS.
Back to top
View user's profile Send private message
broker_new
PostPosted: Fri May 15, 2009 7:26 am    Post subject: Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

Yes you are correct. I went back and looked at my piece of code and corrected it. Thanks for your suggestion.

DECLARE mySoapNS NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE xsd NAMESPACE 'http://ibm.com/xsd';
DECLARE soap NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE cert NAMESPACE 'http://staples.com/certify';
DECLARE JME NAMESPACE 'http://ws.gryphonnetworks.com/Gryphon';

SET OutputRoot.XMLNSC.mySoapNS:Envelope.(XMLNSC.NamespaceDecl)xmlns:"soap" = 'http://schemas.xmlsoap.org/soap/envelope/';
SET OutputRoot.XMLNSC.mySoapNS:Envelope.(XMLNSC.NamespaceDecl)xmlns:"cert" = 'http://staples.com/certify';
SET OutputRoot.XMLNSC.mySoapNS:Envelope.(XMLNSC.NamespaceDecl)xmlns:"xsd" = 'http://ibm.com/xsd';

SET OutputRoot.XMLNSC.mySoapNS:Envelope.soap:Body.JME:Information.(XMLNSC.NamespaceDecl)xmlns = JME;
SET OutputRoot.XMLNSC.mySoapNS:Envelope.soap:Body.JME:Information.JME:UserId = '34566775';

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cert="http://staples.com/certify" xmlns:xsd="http://ibm.com/xsd">
<soap:Body>
<Information xmlns="http://ws.gryphonnetworks.com/Gryphon">
<UserId>34566775</UserId>
</Information>
</soap:Body>
</soap:Envelope>
_________________
IBM ->Let's build a smarter planet
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

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