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 » problem defining a xml output message

Post new topic  Reply to topic
 problem defining a xml output message « View previous topic :: View next topic » 
Author Message
Galichet
PostPosted: Fri Apr 04, 2003 3:17 am    Post subject: problem defining a xml output message Reply with quote

Acolyte

Joined: 26 Jun 2001
Posts: 69
Location: Paris - France

Hi all,

I would like to have the following format in output :

<?xml version="1.0" encoding="UTF-8" ?>
<?Siebel-Property-Set EscapeNames="false"?>
<SiebelMessage>
<Content></Content>
</SiebelMessage>

I haven't found the ESQL code to generate the second line (containing Siebel-Propertiy-Set).

Someone has an idea ?
Thanks
_________________
Eric Galichet
SMABTP
France
Back to top
View user's profile Send private message Send e-mail
mcatama
PostPosted: Fri Apr 04, 2003 3:38 am    Post subject: Reply with quote

Novice

Joined: 10 Apr 2002
Posts: 17

I think you need to use (XML.ProcessingInstruction) within in your ESQL to create this.

e.g. OutputRoot.XML.(XML.ProcessingInstruction)Siebel-Property-Set ...

The full list of XML syntax elements and corresponding EQSL names can be found on page 32/33 of the WMQI 2.1 ESQL Reference.

Hope that helps,
Alison
Back to top
View user's profile Send private message
Galichet
PostPosted: Fri Apr 04, 2003 4:59 am    Post subject: Reply with quote

Acolyte

Joined: 26 Jun 2001
Posts: 69
Location: Paris - France

Ok, thanks

I've done the following code to add the line :

SET OutputRoot.XML.(XML.ProcessingInstruction)"Siebel-Property-Set"='';
SET OutputRoot.XML.(XML.ProcessingInstruction)"Siebel-Property-Set".(XML.Attribute)EscapeNames VALUE ='false';

But the result is only :
<?Siebel-Property-Set?>

Why I don't have the attribute ?
_________________
Eric Galichet
SMABTP
France
Back to top
View user's profile Send private message Send e-mail
mcatama
PostPosted: Fri Apr 04, 2003 5:58 am    Post subject: Reply with quote

Novice

Joined: 10 Apr 2002
Posts: 17

EscapeNames="false" is the processing instruction data, as opposed to EscapeNames being an attribute and false being the value of that attribute. So I think you need to write your ESQL along the lines of:

SET OutputRoot.XML.(XML.ProcessingInstruction)"Siebel-Property-Set" = 'EscapeNames="false"';

See Page 196 of Working with Messages for more info.
Back to top
View user's profile Send private message
Galichet
PostPosted: Fri Apr 04, 2003 6:48 am    Post subject: Reply with quote

Acolyte

Joined: 26 Jun 2001
Posts: 69
Location: Paris - France

Thank you for your help

it works !
_________________
Eric Galichet
SMABTP
France
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » problem defining a xml output message
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.