On Thu, Jul 15, 2010 at 12:03, Donal K. Fellows
<[email protected]> wrote:
>> As you may know Heliophysics is using the VOTable format to exchange
>> data - so do we in HELIO. Our standard wsdl returns therefore structures
>> of the type VOTable, as defined by their standardisation organisation
>> IVOA. Trying to import these web services (e.g.
>> http://msslxw.mssl.ucl.ac.uk:8080/helio-ics/HelioService?wsdl) results
>> in a parsing exception:
>>
>> java.io.IOException: The definition of
>> {http://www.ivoa.net/xml/VOTable/v1.1}OPTION results in a loop.
>
> The offensive section of schema is:
>
>  <xs:element name="OPTION">
>    <xs:complexType>
>      <xs:sequence>
>        <xs:element ref="OPTION" minOccurs="0" maxOccurs="unbounded" />
>      </xs:sequence>
>      <xs:attribute name="name" type="xs:token" />
>      <xs:attribute name="valueopt" type="xs:string" use="required" />
>    </xs:complexType>
>  </xs:element>

If you do it by XSI type instead of referencing elemens it should work fine.

For instance:

<xs:complexType name="optionType">
      <xs:sequence>
        <xs:element name="OPTION" minOccurs="0" maxOccurs="unbounded"
type="optionType" />
      </xs:sequence>
      <xs:attribute name="name" type="xs:token" />
      <xs:attribute name="valueopt" type="xs:string" use="required" />
</xs:complexType>

<xs:element name="OPTION" type="optionType" />

You might get a warning about recursive types when you insert an
splitter for this in Taverna - but you are free to add a splitter to
the splitter etc. for your desired level of granularity.

On a side note - note that Taverna XML splitters does not currently
support XML Attributes, so it is recommended to use all XML elements
in your complex types.

-- 
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/

Reply via email to