Author |
Message
|
ekaiser |
Posted: Mon Jan 14, 2008 10:52 am Post subject: WMB:ESQL |
|
|
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 |
|
 |
jefflowrey |
Posted: Mon Jan 14, 2008 11:41 am Post subject: |
|
|
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 |
|
 |
ekaiser |
Posted: Mon Jan 14, 2008 11:46 am Post subject: can you please elaborate your response |
|
|
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 |
|
 |
fjb_saper |
Posted: Mon Jan 14, 2008 11:50 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Mon Jan 14, 2008 12:02 pm Post subject: |
|
|
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 |
|
 |
ekaiser |
Posted: Mon Jan 14, 2008 12:06 pm Post subject: Namespace settings already contains namespace |
|
|
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 |
|
 |
kimbert |
Posted: Mon Jan 14, 2008 12:12 pm Post subject: |
|
|
 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 |
|
 |
ekaiser |
Posted: Mon Jan 14, 2008 12:13 pm Post subject: Thanks for letting me know |
|
|
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 |
|
 |
fjb_saper |
Posted: Mon Jan 14, 2008 12:16 pm Post subject: Re: Thanks for letting me know |
|
|
 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 |
|
 |
|