axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amila Suriarachchi <amilasuriarach...@gmail.com>
Subject Re: XSD Import/Include Issue
Date Sat, 02 Jan 2010 05:54:15 GMT
set the target namespaces for SchemaOne.xsd and SchemaTwo.xsd.

thanks,
Amila.

On Sat, Dec 19, 2009 at 11:22 AM, Appasamy Thirugnana <
athirugnana@sapient.com> wrote:

>
>  Hi  Axis Members ,
>
>           I have one issue with XSDs along with Axis2
>
>          We have two XSDs (SchemaOne.xsd and SchemaTwo.xsd) with no
> namespaces defined.
>
>           Both XSDs contains single element of same name and type
>
>          We have one WSDL which imports it with two different namespaces as
> given below to avoid name collision
>
>
> <xsd:schema
>    xmlns:tns="http://xml.com/SchemaOne"
>    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>    targetNamespace="http://xml.com/SchemaOne"
>    elementFormDefault="qualified"
>    attributeFormDefault="unqualified">
>    <xsd:include    schemaLocation="SchemaOne.xsd" />
>   </xsd:schema>
>
> <xsd:schema
>    xmlns:tns="http://xml.com/SchemaTwo
> "
>    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>    targetNamespace="http://xml.com/SchemaTwo"
>    elementFormDefault="qualified"
>    attributeFormDefault="unqualified">
>    <xsd:include    schemaLocation="SchemaTwo.xsd" />
>   </xsd:schema>
>
> When I validate WSDL with Altova XML Spy it is showing
>
> "Invalid XML schema: ''UnsuspendRequest' is already declared in schema
> document 'C:\SchemaOne.xsd'."
>
> How can I get rid of this error?
> Attached WSDL and XSDs.
>
> Thanks in advance,
> Appasamy AT
>
>
> <athirugnana@sapient.com>
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Mime
View raw message