Jump to content

dirk65mb

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About dirk65mb

  • Rank
    Newbie
  1. Hi Thanks for your reply which helps me further.The only question which rise where I couldn't found a answer.In the code example I created a simple paged list with a abstract element 'dataItems'.I created 2 concrete elements of dataItems: car and plane.Can I define a concrete pagedList where only cars are alowed an another pagedList where only planes are alowed?I can imagine this is not possible but couldn't find an anwer on the net.Thanks in advance Dirk <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="dataItems" abstract="true"/> <xs:element name="totalSize" type="xs:int"/> <xs:complexType name="pagedListType"> <xs:sequence> <xs:element ref="totalSize"/> <xs:element ref="dataItems"/> </xs:sequence> </xs:complexType> <xs:element name="car" type="xs:string" substitutionGroup="dataItems"/> <xs:element name="plane" type="xs:string" substitutionGroup="dataItems"/> <xs:element name="carsPagedList" type="pagedListType"/></xs:schema>
  2. Hi,I'm defining a webservice and therefor defined some types.One of the complex types I use is a paging list type see example: <xs:complexType name="pagedListType"> <xs:sequence> <xs:element ref="pag:totalSize"/> <xs:element ref="pag:pagingContext"/> <xs:element name="dataItems" type="pag:listOfAnyType"/> </xs:sequence> </xs:complexType> <xs:complexType name="listOfAnyType"> <xs:sequence minOccurs="0" maxOccurs="unbounded"> <xs:any processContents="lax"/> </xs:sequence> </xs:complexType> The goal is to define a complextype where a specific field can be rewritten to a concrete type.In the example from a above I want to reuse the pagedListType.If type needs to return accounts I want to redefine just that particular field.This could be a list of accounts or a list of persons.Is this possible at all?Regards Dirk
×
×
  • Create New...