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 » ESQL to define xml with multiple namespace.

Post new topic  Reply to topic
 ESQL to define xml with multiple namespace. « View previous topic :: View next topic » 
Author Message
kathirvelt
PostPosted: Tue Mar 08, 2011 5:48 pm    Post subject: ESQL to define xml with multiple namespace. Reply with quote

Apprentice

Joined: 02 Oct 2010
Posts: 32

I want to difine xml similar to below one. please advice.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:emp="http://test.com/wsdl/EMP/EMPGatewayService"
xmlns:test ="http://test.com/schema/EMPGatewaySchema">
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Mar 08, 2011 8:52 pm    Post subject: Re: ESQL to define xml with multiple namespace. Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

kathirvelt wrote:
I want to difine xml similar to below one. please advice.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:emp="http://test.com/wsdl/EMP/EMPGatewayService"
xmlns:test ="http://test.com/schema/EMPGatewaySchema">


So which parser are you using?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kathirvelt
PostPosted: Tue Mar 08, 2011 9:33 pm    Post subject: Reply with quote

Apprentice

Joined: 02 Oct 2010
Posts: 32

I'm using xmlnsc to create this.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Mar 08, 2011 9:47 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

kathirvelt wrote:
I'm using xmlnsc to create this.


So first you define all the namespaces like (from memory)
Code:
DECLARE soapenv NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';


Then you look up the (XML.XMLDeclaration) key word in the ESQL ref and manual and use it like (again from memory so not necessarily exact)
Code:
CREATE LAST CHILD OF OutputRoot.XMLNS NAMESPACE soapenv NAME 'Envelope';
SET OutputRoot.XMLNS.soapenv:Envelope.(XMLDeclararion)soapenv = 'schemas.xmlsoap.org/soap/envelope/';


and so on for the other declarations...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Wed Mar 09, 2011 1:57 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton


Please don't do it that way. kathirvelt is using XMLNSC, not XMLNS. You cannot use any constant starting with 'XML.'with XMLNSC.

kathirvelt: follow the instructions here: http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/ac67194_.htm
Back to top
View user's profile Send private message
kathirvelt
PostPosted: Wed Mar 09, 2011 10:15 am    Post subject: Reply with quote

Apprentice

Joined: 02 Oct 2010
Posts: 32

I did the first one and it gives me an error "BIP2432E: The correlation name 'XMLDeclararion' is not valid. " I'll try the secon one now. Thanks for your suggestions/input.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 09, 2011 2:40 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Too late a day. I obviously missed the 'c' at the end of his parser name...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kathirvelt
PostPosted: Thu Mar 10, 2011 11:01 am    Post subject: Reply with quote

Apprentice

Joined: 02 Oct 2010
Posts: 32

Sry I'm slow . I was able to define this as below. Thanks for your help.

ESQL
-------
DECLARE soapNS NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE xsd NAMESPACE 'http://www.w3.org/2001/XMLSchema';

SET OutputRoot.XMLNSC.soapNS:Envelope.(XMLNSC.NamespaceDecl)xmlns:xsd = xsd;


Output
--------
<NS1:Envelope xmlns:NS1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
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 » ESQL to define xml with multiple namespace.
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.