XSD: Return array

I am writing an XSD, in which I need to define an operation which would return all the IDs. since the no. of IDs can be more than one, this operation needs to return an array. For this I need to define a type. If I do this

<xsd:complexType name="getResumeIdsResponse">
                              <xsd:sequence>      
                              <xsd:element name="resumeIds" type="xsd:string" />                                
                        </xsd:sequence>                      
                  </xsd:complexType>
It would be able to return only 1 ID. Is there a way to return a String array?

Thank you
ank9Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

shaheedhaCommented:
Try this:
<xsd:complexType name="getResumeIdsResponse">
  <xsd:sequence>      
    <xsd:element name="resumeIds" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />                                
  </xsd:sequence>                      
</xsd:complexType>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Geert BormansInformation ArchitectCommented:
Depends on what you need...

a list of resumeIds elements, would be like this
        <xsd:sequence>      
            <xsd:element name="resumeIds" type="xsd:string" maxOccurs="unbounded"/>                                
        </xsd:sequence>                      

or a resumeIds element that contains a list (space seperated that would be)
            <xsd:element name="resumeIds" maxOccurs="unbounded">
                <xsd:simpleType>
                    <xsd:list itemType="xsd:token"></xsd:list>
                </xsd:simpleType>
            </xsd:element>                                
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.