[ogsa-hpcp-wg] Another Problem (maybe?) in the WSDL

Peter G. Lane lane at mcs.anl.gov
Mon Oct 23 11:29:53 CDT 2006


That's the *only* way it will and should work. Despite needing some sort of XPath or something to 
identify which local element you're talking about, the documentation blurb I pasted earlier clearly 
says it must be a global ("top-level") element declaration.

Peter

Donal K. Fellows wrote:
> Mark Morgan wrote:
> [tooling copes with this]
>> 	<xsd:complexType name="GetActivityStatusesType">
>>          <xsd:sequence>
>>            <xsd:element name="ActivityIdentifier"
>>                type="wsa:EndpointReferenceType"
>>                maxOccurs="unbounded"/>
>>          </xsd:sequence>
>>       </xsd:complexType>
> [but not with this]
>> 	<xsd:complexType name="GetActivityDocumentsType">
>>         <xsd:sequence>
>>           <xsd:element ref="bes-factory:ActivityIdentifier"
>>               minOccurs="0" maxOccurs="unbounded"/>
>>         </xsd:sequence>
>>       </xsd:complexType>
> 
> I think the only thing that can be counted on to work evenly with
> tooling as it currently stands is for a ref to refer to a named top
> level element, and not one defined inside a complexType. If you define
> the ActivityIdentifier at the top level and use references to that, it
> will (probably) work.
> 
>    <xs:element name="ActivityIdentifier"
>        type="wsa:EndpointReferenceType"/>
>    <xs:complexType name="GetActivityStatusesType">
>       <xs:sequence>
>          <xs:element ref="bes-factory:ActivityIdentifier"
>              maxOccurs="unbounded"/>
>       </xs:sequence>
>    </xs:complexType>
>    <xs:complexType name="GetActivityDocumentsType">
>       <xs:sequence>
>          <xs:element ref="bes-factory:ActivityIdentifier"
>              minOccurs="0" maxOccurs="unbounded"/>
>       </xs:sequence>
>    </xs:complexType>
>    <xs:complexType name="TerminateActivitiesType">
>       <xs:sequence>
>          <xs:element ref="bes-factory:ActivityIdentifier"
>              maxOccurs="unbounded"/>
>       </xs:sequence>
>    </xs:complexType>
> 
> Or at least that's how I was told to use name/ref in XML Schema. :-)
> 
> Donal.
> --
>   ogsa-hpcp-wg mailing list
>   ogsa-hpcp-wg at ogf.org
>   http://www.ogf.org/mailman/listinfo/ogsa-hpcp-wg
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3804 bytes
Desc: S/MIME Cryptographic Signature
Url : http://www.ogf.org/pipermail/ogsa-hpcp-wg/attachments/20061023/4435c9b3/attachment.bin 


More information about the ogsa-hpcp-wg mailing list