
Yes, I know....unfortunately Axis 1.4 doesn't realize that that definition imparts a name unto the element when used as a reference only (hence, why I added the name element in my document). -Mark -- Mark Morgan Research Scientist Department of Computer Science University of Virginia http://www.cs.virginia.edu mmm2a@virginia.edu (434) 982-2047
-----Original Message----- From: Christopher Smith [mailto:csmith@platform.com] Sent: Monday, October 23, 2006 1:11 PM To: Donal K. Fellows; Mark Morgan Cc: ogsa-hpcp-wg@ggf.org Subject: Re: [ogsa-hpcp-wg] Another Problem (maybe?) in the WSDL
ActivityIdentifier is defined as a global element in the bes-factory.xsd.
-- Chris
On 23/10/06 05:28, "Donal K. Fellows" <donal.k.fellows@manchester.ac.uk> 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@ogf.org http://www.ogf.org/mailman/listinfo/ogsa-hpcp-wg