You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Bartolomeo Nicolotti <bn...@siapcn.it> on 2010/01/14 15:05:44 UTC
two similar xsd in the same wsdl databinded with xmlbean in axis2
Hello,
we're using xmlbean to parse xmls as an axis2 databinding for travel
industries web services
A web service we query has different version of the same kind of xml
AirAvailability_8
AirAvailability_9
Is it possible to use xmlbean data binding with only one wsdl that has
both the kind of xml, i.e. something like:
...
<s:include schemaLocation="AirAvailability_8.xsd"/>
<s:include schemaLocation="AirAvailability_9.xsd"/>
<s:element name="SubmitXml">
<s:complexType>
<s:sequence>
<s:element maxOccurs="1" minOccurs="0" name="Profile"
type="s:string"/>
<s:element maxOccurs="1" minOccurs="0" name="Request">
<s:complexType>
<s:sequence>
<s:element maxOccurs="1" minOccurs="0"
name="LocalDateTimeCT_6_0" type="s0:LocalDateTimeCT_6_0Type"/>
<s:element maxOccurs="1"
minOccurs="0" name="AirAvailability_8"
type="s0:AirAvailability_8Type"/>
<s:element maxOccurs="1"
minOccurs="0" name="AirAvailability_9"
type="s0:AirAvailability_9Type"/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
....
My doubt is that this two kinds of xml have, oviously many similiar
tags, won't these conflict?
Many many thanks
Best regards.
Bartolomeo Nicolotti.
Re: two similar xsd in the same wsdl databinded with xmlbean in axis2
Posted by Amila Suriarachchi <am...@gmail.com>.
On Thu, Jan 14, 2010 at 7:35 PM, Bartolomeo Nicolotti
<bn...@siapcn.it>wrote:
> Hello,
>
> we're using xmlbean to parse xmls as an axis2 databinding for travel
> industries web services
>
> A web service we query has different version of the same kind of xml
>
> AirAvailability_8
> AirAvailability_9
>
>
> Is it possible to use xmlbean data binding with only one wsdl that has both
> the kind of xml, i.e. something like:
>
> ...
> <s:include schemaLocation="AirAvailability_8.xsd"/>
> <s:include schemaLocation="AirAvailability_9.xsd"/>
>
> <s:element name="SubmitXml">
> <s:complexType>
> <s:sequence>
> <s:element maxOccurs="1" minOccurs="0" name="Profile" type="s:string"/>
> <s:element maxOccurs="1" minOccurs="0" name="Request">
> <s:complexType>
> <s:sequence>
> <s:element maxOccurs="1" minOccurs="0"
> name="LocalDateTimeCT_6_0" type="s0:LocalDateTimeCT_6_0Type"/>
> <s:element maxOccurs="1" minOccurs="0"
> name="AirAvailability_8" type="s0:AirAvailability_8Type"/>
> <s:element maxOccurs="1" minOccurs="0"
> name="AirAvailability_9" type="s0:AirAvailability_9Type"/>
> </s:sequence>
> </s:complexType>
> </s:element>
> </s:sequence>
> </s:complexType>
> </s:element>
> ....
>
> My doubt is that this two kinds of xml have, oviously many similiar tags,
> won't these conflict?
>
yes. if they have the same target namespace.
thanks,
Amila.
>
> Many many thanks
>
> Best regards.
>
> Bartolomeo Nicolotti.
>
>
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/
Re: two similar xsd in the same wsdl databinded with xmlbean in axis2
Posted by Amila Suriarachchi <am...@gmail.com>.
On Thu, Jan 14, 2010 at 7:35 PM, Bartolomeo Nicolotti
<bn...@siapcn.it>wrote:
> Hello,
>
> we're using xmlbean to parse xmls as an axis2 databinding for travel
> industries web services
>
> A web service we query has different version of the same kind of xml
>
> AirAvailability_8
> AirAvailability_9
>
>
> Is it possible to use xmlbean data binding with only one wsdl that has both
> the kind of xml, i.e. something like:
>
> ...
> <s:include schemaLocation="AirAvailability_8.xsd"/>
> <s:include schemaLocation="AirAvailability_9.xsd"/>
>
> <s:element name="SubmitXml">
> <s:complexType>
> <s:sequence>
> <s:element maxOccurs="1" minOccurs="0" name="Profile" type="s:string"/>
> <s:element maxOccurs="1" minOccurs="0" name="Request">
> <s:complexType>
> <s:sequence>
> <s:element maxOccurs="1" minOccurs="0"
> name="LocalDateTimeCT_6_0" type="s0:LocalDateTimeCT_6_0Type"/>
> <s:element maxOccurs="1" minOccurs="0"
> name="AirAvailability_8" type="s0:AirAvailability_8Type"/>
> <s:element maxOccurs="1" minOccurs="0"
> name="AirAvailability_9" type="s0:AirAvailability_9Type"/>
> </s:sequence>
> </s:complexType>
> </s:element>
> </s:sequence>
> </s:complexType>
> </s:element>
> ....
>
> My doubt is that this two kinds of xml have, oviously many similiar tags,
> won't these conflict?
>
yes. if they have the same target namespace.
thanks,
Amila.
>
> Many many thanks
>
> Best regards.
>
> Bartolomeo Nicolotti.
>
>
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/