|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to make Message Defn. file with same field names ???? |
« View previous topic :: View next topic » |
Author |
Message
|
elvis_gn |
Posted: Tue Nov 30, 2004 4:05 am Post subject: How to make Message Defn. file with same field names ???? |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
HI
I want to create an XML like this one below
<Addresse>
<Address> </Address>
<Address> </Address>
<Address> </Address>
</Addresse>
I know that it is possible to use this in ESQL by using array but how can i make the message defn. file ???? It gives me the Error that the same name cannot be used for 2 global elements |
|
Back to top |
|
 |
kirani |
Posted: Tue Nov 30, 2004 4:27 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
You would define "Address" element only once within your messge set with it's "Repeat" property set to Yes. You can also specify Min and Max Occurs for this element. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
elvis_gn |
Posted: Tue Nov 30, 2004 5:35 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Where can i make this change ??????
i clicked on properties but there is no option of enabling repetition. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Nov 30, 2004 6:21 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can't make a global element repeating.
You can only make a local element repeating.
In your example, you should have one global element, which represents your <Addresse> tag, which will be of a complex type. You can have another global element to represent your <Address> tag.
However, you will need to reference that global element in the type definition of the <Addressse> global element. Then, on that REFERENCE, you can declare a repeat.
Or you can make <Address> a local element inside the <Addresse> type. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Rockon |
Posted: Tue Dec 07, 2004 2:51 pm Post subject: |
|
|
Apprentice
Joined: 24 May 2004 Posts: 43
|
Hi elvis_gn,
I was wondering if you were able to make the changes with repeat elements in the MRM.I have come across a similar problem where relating to your example,I have tags like Street address and zipcode within each Address tag.
Quote: |
jefflowrey wrote,
In your example, you should have one global element, which represents your <Addresse> tag, which will be of a complex type. You can have another global element to represent your <Address> tag.
However, you will need to reference that global element in the type definition of the <Addressse> global element. Then, on that REFERENCE, you can declare a repeat. |
Steps that I followed to achieve this,
1.Importing the C header file(for my message set created) and creating the message definition file.
2.Expand on MRM01.mxsd.Under <Addresse> there is <Address>.
3.Right click on that there are a couple of options-Add Element reference;Add group reference.
Which one do I select and where do I find the repeat attribute.
Wasnt able to find any documents for the above.
If you were able to get to it please do share it.
Thankyou,
Cheers |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|