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 » How to make Message Defn. file with same field names ????

Post new topic  Reply to topic
 How to make Message Defn. file with same field names ???? « View previous topic :: View next topic » 
Author Message
elvis_gn
PostPosted: Tue Nov 30, 2004 4:05 am    Post subject: How to make Message Defn. file with same field names ???? Reply with quote

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
View user's profile Send private message Send e-mail
kirani
PostPosted: Tue Nov 30, 2004 4:27 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
elvis_gn
PostPosted: Tue Nov 30, 2004 5:35 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Tue Nov 30, 2004 6:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Rockon
PostPosted: Tue Dec 07, 2004 2:51 pm    Post subject: Reply with quote

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
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 » How to make Message Defn. file with same field names ????
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.