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 » WMB:ESQL

Post new topic  Reply to topic
 WMB:ESQL « View previous topic :: View next topic » 
Author Message
ekaiser
PostPosted: Mon Jan 14, 2008 10:52 am    Post subject: WMB:ESQL Reply with quote

Newbie

Joined: 09 Jan 2008
Posts: 5

How do I create the below element in the output, I am using MRM parser,


<OLTFields xsi:type="impl:OLAccFields" xmlns:impl="http://v1.org">
<regionCode>NW</regionCode>
<businessUnit>BU_ID</businessUnit>
  </OLTFields>

This is my ESQL - I am not able to create the element OLTFields with attribute xsi:type. How do I output this element?

SET Environment.Variables.OLNamespace = 'OLTFields xsi:type=impl:OLAccFields' ;

SET OutputRoot.MRM.tns:Body.ns:translateFields.ns:OLTFields = Environment.Variables.OLNamespace;

SET OutputRoot.MRM.tns:Body.ns:translateFields.ns:OLTFields.regionCode = Environment.Variables.REGIONCOCODE;
SET OutputRoot.MRM.tns:Body.ns:translateFields.ns:OLTFields.businessUnit = Environment.Variables.BU;

My current output looks like -
<impl:translateFields>
<impl:OLTFields>
OLTFieldsxsi:type=impl:OLAccountChartFieldDetails <regionCode>NCA</regionCode>
<businessUnit>BUI</businessUnit>
</impl:OLTFields>
</impl:translateFields>
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jan 14, 2008 11:41 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If you are using MRM, then you should be setting xsi:type and xmlns on the message set.

And you shouldn't be setting any value to OutputRoot.MRM.Tns:Body.ns:translateFields.ns:OLTFields.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
ekaiser
PostPosted: Mon Jan 14, 2008 11:46 am    Post subject: can you please elaborate your response Reply with quote

Newbie

Joined: 09 Jan 2008
Posts: 5

Since I am new to WMB and ESQl, I am using this forum. So can you please elaborate your response

yes, I am using MRM parser. So do you mean I need to set xsi:type in the Namespace setting of my .mset file?

thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jan 14, 2008 11:50 am    Post subject: Reply with quote

Grand High Poobah

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

If you model your message (message set) you need to have the set namespace enabled and you should have the namespaces declared in the message set.

If you do not model the message you need to declare your namespaces (see declare namespace command ) and then create the fields/entities as the Grand Poobah showed you!.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Mon Jan 14, 2008 12:02 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Since you are new to WMB and ESQL, you should have received training and be working with someone who is not new to both.

This forum is not a substitute for training or local mentoring.

Look at the Info Center for how to configure properties on the message set, and how to configure physical properties of elements in the message definition file.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
ekaiser
PostPosted: Mon Jan 14, 2008 12:06 pm    Post subject: Namespace settings already contains namespace Reply with quote

Newbie

Joined: 09 Jan 2008
Posts: 5

The Namespace settings already contains the xmlns and the soapenv settings. Do I need to add xsi:type there? Also in the messgae definition file, i can see that the OLAccFields is an extension of OLFields.

But I am not able to output the OLAccFields inside the OLFields using xsi:type. So is there a way to specify the xsi:type in the msg set or the msg definition file?

Thanks
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Jan 14, 2008 12:12 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The MRM parser works like this:
- Namespace prefixes are declared at the message set level. You should add the xsi namespace to that table
- xsi:type attributes must not be included in your message definitions. They are not part of your business data - they are just XML fluff.
- To add an xsi:type attribute to the message tree, declare the xsi namespace in your ESQL, and create the attribute just like any other ( name = 'type', value = <type name> )
Back to top
View user's profile Send private message
ekaiser
PostPosted: Mon Jan 14, 2008 12:13 pm    Post subject: Thanks for letting me know Reply with quote

Newbie

Joined: 09 Jan 2008
Posts: 5

In that case, please make sure that next time a user signs up - you make them read the policy that they CANNOT BE NEW TO WMB OR ESQL.
As only WMB gurus can use this forum.


Thank you,
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jan 14, 2008 12:16 pm    Post subject: Re: Thanks for letting me know Reply with quote

Grand High Poobah

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

ekaiser wrote:
In that case, please make sure that next time a user signs up - you make them read the policy that they CANNOT BE NEW TO WMB OR ESQL.
As only WMB gurus can use this forum.


Thank you,

Sorry you did not quite get it.

We do welcome newbies, but we do not substitute for training...

Some questions show a lack of understanding and presumably a lack of training and will routinely get one post stating this... nothing personal there...
_________________
MQ & Broker admin
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 » WMB: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.