You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by jcaristi <jc...@whisolutions.com> on 2008/11/24 23:30:43 UTC

XMLSchemaException when including XSD in WSDL

I am attempting to proxy Axis services using Synapse.  The <types> section of
my WSDL has the following instruction (which works perfectly in Axis): 

<xsd:include schemaLocation="PartSelectService.xsd"/>

When I point Synapse at the WSDL and XSD, I get the following exception:

org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in
collection. 
Namespace: http://www.whisolutions.com/PartSelectService/2008-10-07

This is the only namespace for my service.  Both the WSDL and XSD have the
same namespace.  This is why I am using an xsd:include rather than an
xsd:import.  Is Synapse treating this like an import?  This all worked
before I extracted my types into a separate XSD file.

Here is my WSDL:

http://www.nabble.com/file/p20671355/PartSelectService.wsdl
PartSelectService.wsdl 

Here is my XSD:

http://www.nabble.com/file/p20671355/PartSelectService.xsd
PartSelectService.xsd 

Here is my Synapse configuration:

http://www.nabble.com/file/p20671355/synapse_config.xml synapse_config.xml 
-- 
View this message in context: http://www.nabble.com/XMLSchemaException-when-including-XSD-in-WSDL-tp20671355p20671355.html
Sent from the Synapse - User mailing list archive at Nabble.com.


Re: XMLSchemaException when including XSD in WSDL

Posted by Rajesh_lakhotia <la...@gmail.com>.
Here is my config file and other xsds which are causing this ....
could generate a client using wsdl to java and this service is working
everywhere.. ..

Need to configure Synpase to do the routing piece....

http://www.nabble.com/file/p25437816/ipws-services.wsdl ipws-services.wsdl 
http://www.nabble.com/file/p25437816/expr.xsd expr.xsd 
http://www.nabble.com/file/p25437816/filter.xsd filter.xsd 
http://www.nabble.com/file/p25437816/filterCapabilities.xsd
filterCapabilities.xsd  http://www.nabble.com/file/p25437816/sort.xsd
sort.xsd 
http://www.nabble.com/file/p25437816/Mysynapse.xml Mysynapse.xml 

Hiranya Jayathilaka-3 wrote:
> 
> On Fri, Sep 11, 2009 at 8:53 PM, Rajesh_lakhotia
> <la...@gmail.com>wrote:
> 
>>
>> Is this one fixed ?  I am running into the same issue.
>> I have few xsds sharing the same tns.
>>
> 
> According to [1] it is fixed. However if you are still facing issues may
> be
> you could reopen the JIRA issue and provide your WSDLs, XSDs and other
> configurations.
> 
> Thanks,
> Hiranya
> 
> [1] - http://issues.apache.org/jira/browse/SYNAPSE-486
> 
> 
>>
>> jcaristi wrote:
>> >
>> > Jira issue #SYNAPSE-486
>> >
>> >
>> > Asankha C. Perera wrote:
>> >>
>> >> This seems like a bug we need to fix.. but I guess there is a
>> workaround
>> >> for you for now..
>> >>
>> >> Could you raise this on the JIRA?
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/XMLSchemaException-when-including-XSD-in-WSDL-tp20671355p25403059.html
>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Hiranya Jayathilaka
> Software Engineer;
> WSO2 Inc.;  http://wso2.org
> E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
> 
> 

-- 
View this message in context: http://www.nabble.com/XMLSchemaException-when-including-XSD-in-WSDL-tp20671355p25437816.html
Sent from the Synapse - User mailing list archive at Nabble.com.


Re: XMLSchemaException when including XSD in WSDL

Posted by Hiranya Jayathilaka <hi...@gmail.com>.
On Fri, Sep 11, 2009 at 8:53 PM, Rajesh_lakhotia <la...@gmail.com>wrote:

>
> Is this one fixed ?  I am running into the same issue.
> I have few xsds sharing the same tns.
>

According to [1] it is fixed. However if you are still facing issues may be
you could reopen the JIRA issue and provide your WSDLs, XSDs and other
configurations.

Thanks,
Hiranya

[1] - http://issues.apache.org/jira/browse/SYNAPSE-486


>
> jcaristi wrote:
> >
> > Jira issue #SYNAPSE-486
> >
> >
> > Asankha C. Perera wrote:
> >>
> >> This seems like a bug we need to fix.. but I guess there is a workaround
> >> for you for now..
> >>
> >> Could you raise this on the JIRA?
> >>
> >>
> >>
> >
> >
>
>
> --
> View this message in context:
> http://www.nabble.com/XMLSchemaException-when-including-XSD-in-WSDL-tp20671355p25403059.html
> Sent from the Synapse - User mailing list archive at Nabble.com.
>
>


-- 
Hiranya Jayathilaka
Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com

Re: XMLSchemaException when including XSD in WSDL

Posted by Rajesh_lakhotia <la...@gmail.com>.
Is this one fixed ?  I am running into the same issue.
I have few xsds sharing the same tns.


jcaristi wrote:
> 
> Jira issue #SYNAPSE-486
> 
> 
> Asankha C. Perera wrote:
>> 
>> This seems like a bug we need to fix.. but I guess there is a workaround
>> for you for now..
>> 
>> Could you raise this on the JIRA?
>> 
>> 
>> 
> 
> 


-- 
View this message in context: http://www.nabble.com/XMLSchemaException-when-including-XSD-in-WSDL-tp20671355p25403059.html
Sent from the Synapse - User mailing list archive at Nabble.com.


Re: XMLSchemaException when including XSD in WSDL

Posted by jcaristi <jc...@whisolutions.com>.
Jira issue #SYNAPSE-486


Asankha C. Perera wrote:
> 
> This seems like a bug we need to fix.. but I guess there is a workaround
> for you for now..
> 
> Could you raise this on the JIRA?
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/XMLSchemaException-when-including-XSD-in-WSDL-tp20671355p20792384.html
Sent from the Synapse - User mailing list archive at Nabble.com.


Re: XMLSchemaException when including XSD in WSDL

Posted by "Asankha C. Perera" <as...@apache.org>.
This seems like a bug we need to fix.. but I guess there is a workaround
for you for now..

Could you raise this on the JIRA?

asankha
> I am attempting to proxy Axis services using Synapse.  The <types> section of
> my WSDL has the following instruction (which works perfectly in Axis): 
>
> <xsd:include schemaLocation="PartSelectService.xsd"/>
>
> When I point Synapse at the WSDL and XSD, I get the following exception:
>
> org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in
> collection. 
> Namespace: http://www.whisolutions.com/PartSelectService/2008-10-07
>
> This is the only namespace for my service.  Both the WSDL and XSD have the
> same namespace.  This is why I am using an xsd:include rather than an
> xsd:import.  Is Synapse treating this like an import?  This all worked
> before I extracted my types into a separate XSD file.
>
> Here is my WSDL:
>
> http://www.nabble.com/file/p20671355/PartSelectService.wsdl
> PartSelectService.wsdl 
>
> Here is my XSD:
>
> http://www.nabble.com/file/p20671355/PartSelectService.xsd
> PartSelectService.xsd 
>
> Here is my Synapse configuration:
>
> http://www.nabble.com/file/p20671355/synapse_config.xml synapse_config.xml 
>   


-- 
Asankha C. Perera
http://adroitlogic.org

http://esbmagic.blogspot.com