OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ekmi message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [ekmi] XSD improvements


Certainly there is opportunity to fix issues in the spec.

Tomas Gustavsson wrote:
> Hi,
>
> I am plying with making a jax-ws based SOAP webservice implementation of
> the EKMI protocol. When generating webservice files I get into an issue:
>
> -----
>      * You are getting this "catch-all" property because of the
> following reason: 
>      * The field name "SymkeyWorkInProgress1" is used by two different
> parts of a schema. See: 
>      * line 78 of
> file:/home/tomas/Dev/workspace/WSTest2/src/symkeyResponse.xsd
>      * line 74 of
> file:/home/tomas/Dev/workspace/WSTest2/src/symkeyResponse.xsd
>      * <p>
>      * To get rid of this property, apply a property customization to
> one 
>      * of both of the following declarations to change their names: 
>      * Gets the value of the content property.
> -----
>
> To get rid of this I changed symkeyResponse.xsd from:
>
> -----
>                 <xsd:sequence>
>                     <xsd:element ref="ekmi:Symkey" minOccurs="1"
> maxOccurs="unbounded"/>
>                     <xsd:element ref="ekmi:SymkeyWorkInProgress"
> minOccurs="0" maxOccurs="unbounded"/>
>                     <xsd:element ref="ekmi:SymkeyError" minOccurs="0"
> maxOccurs="unbounded"/>    
>                 </xsd:sequence>
>                 <xsd:sequence>
>                     <xsd:element ref="ekmi:SymkeyWorkInProgress"
> minOccurs="1" maxOccurs="unbounded"/>
>                     <xsd:element ref="ekmi:SymkeyError" minOccurs="0"
> maxOccurs="unbounded"/>
>                 </xsd:sequence>
>                 <xsd:sequence>
>                     <xsd:element ref="ekmi:SymkeyError" minOccurs="1"
> maxOccurs="unbounded"/>    
>                 </xsd:sequence>
> -----
>
> to:
> -----
>                 <xsd:sequence>
>                     <xsd:element ref="ekmi:Symkey" minOccurs="1"
> maxOccurs="unbounded"/>
>                     <xsd:element ref="ekmi:SymkeyWorkInProgress1"
> minOccurs="0" maxOccurs="unbounded"/>
>                     <xsd:element ref="ekmi:SymkeyError1" minOccurs="0"
> maxOccurs="unbounded"/>    
>                 </xsd:sequence>
>                 <xsd:sequence>
>                     <xsd:element ref="ekmi:SymkeyWorkInProgress2"
> minOccurs="1" maxOccurs="unbounded"/>
>                     <xsd:element ref="ekmi:SymkeyError2" minOccurs="0"
> maxOccurs="unbounded"/>
>                 </xsd:sequence>
>                 <xsd:sequence>
>                     <xsd:element ref="ekmi:SymkeyError3" minOccurs="1"
> maxOccurs="unbounded"/>    
>                 </xsd:sequence>
>
> -----
>
> and the relevant changes to the last lines as well.
>
> Is this something to consider to improve in the XSD?
>
> Regards,
> Tomas
>
>   



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]