Importing a schema into another schema: "invalid schema file"? [message #203757] |
Tue, 06 November 2007 05:29  |
Eclipse User |
|
|
|
Originally posted by: mauro.molinari.cardinis.com
Hello all!
I'm editing the inline schema of a WSDL and I tried to add an import
directive to import another schema I defined on a stand-alone XSD file.
This file is well-formed and valid (no validation errors given by
Eclipse), but in the import wizard dialog, when I try to select it from
the workspace (step named "Select XML schema file"), as soon as I click
on it an error hint is given: "filename.xsd is an invalid XML schema
file". The "Finish" button is grayed out and I cannot import it...
I'm quite new to WSDL and XSD, I'm learning now... anyone could help me
to determine the source of the problem?
The XSD I'm trying to import is the following:
<?xml version="1.0" encoding="UTF-8"?>
<schema
targetNamespace="http://webservice.cardinis.com/AccessServices/xsd"
elementFormDefault="qualified"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://webservice.cardinis.com/AccessServices/xsd">
<annotation>
<documentation>
Schema per la definizione dei tipi usati dal webservice di
autenticazione.
</documentation>
</annotation>
<element name="Login_Username" type="string">
<annotation>
<documentation>
Parametro d'ingresso relativo al nome utente nell'operazione di
login.
</documentation>
</annotation>
</element>
<element name="Login_Password" type="string">
<annotation>
<documentation>
Parametro d'ingresso relativo alla password nell'operazione di
login.
</documentation>
</annotation>
</element>
<element name="Login_Ticket" type="string">
<annotation>
<documentation>
Parametro di uscita relativo al ticket assegnato all'utente
dall'operazione di login.
</documentation>
</annotation>
</element>
</schema>
Thanks in advance.
Mauro.
|
|
|
|
|
|
Re: Importing a schema into another schema: "invalid schema file"? [message #203987 is a reply to message #203900] |
Thu, 08 November 2007 03:28  |
Eclipse User |
|
|
|
Originally posted by: mauro.molinari.cardinis.com
David Carver ha scritto:
>
> Mauro,
>
> You need to specify the WSDL to import in the wsdl:types, something like
> the following:
> Mauro Molinari wrote:
>>
>> <wsdl:types>
>> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>
>> targetNamespace="http://webservice.cardinis.com/AccessService/wsdl">
> <xsd:include schemaLocation="filexsd.xsd"/>
>> </xsd:schema>
>> </wsdl:types>
>
> Where the schemaLocation points to the file you want to include.
>
> Dave
Hi Dave,
yes, I know, but I tried to use the wizard instead of editing manually
the code and the wizard says the XSD is invalid as soon as I select it
in the dialog named "Select XML schema file" opened by clicking on "..."
beside the "location" attribute of the newly created import element
(Properties view).
I searched here for a confirmation of this IMHO strange behaviour,
before filing a new bug...
Cheers,
Mauro.
|
|
|
Powered by
FUDForum. Page generated in 0.50484 seconds