You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ashish Kulkarni <as...@gmail.com> on 2007/08/23 22:33:49 UTC
Question about element in XSD
Hi
I have an element like below in XSD file
<xs:complexType name="message">
<xs:choice>
<xs:element name="FailureMessage" type="xs:string" minOccurs="0"/>
<xs:element name="SuccessMessage" type="xs:string" minOccurs="0"/>
</xs:choice>
</xs:complexType>
This means that the XML file can have FailureMessage or SuccessMessage?
When i create java soruce using wsdl2java and then use it to return SOAP
message,
will there be any validation for the xs:choice?
Ashish
Re: Question about element in XSD
Posted by Ashish Kulkarni <as...@gmail.com>.
Hi
I am using axis 1.4, but plan to move to axis 2.0 some time in future.
is it a easy migration or complicated, with axis 2.0, what data binding is
the best,
can i use castor for databinding?
Ashish
On 8/24/07, Amila Suriarachchi <am...@gmail.com> wrote:
>
>
>
> On 8/24/07, Ashish Kulkarni <as...@gmail.com> wrote:
> >
> > Hi
> > I have an element like below in XSD file
> > <xs:complexType name="message">
> > <xs:choice>
> > <xs:element name="FailureMessage" type="xs:string" minOccurs="0"/>
> >
> > <xs:element name="SuccessMessage" type="xs:string" minOccurs="0"/>
> > </xs:choice>
> > </xs:complexType>
> >
> >
> > This means that the XML file can have FailureMessage or SuccessMessage?
> >
> > When i create java soruce using wsdl2java and then use it to return SOAP
> > message,
> > will there be any validation for the xs:choice?
>
>
> Are you using Axis1.x or Axis2? if Axis2 with what databinding?
>
> Ashish
> >
> >
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
Re: Question about element in XSD
Posted by Amila Suriarachchi <am...@gmail.com>.
On 8/24/07, Ashish Kulkarni <as...@gmail.com> wrote:
>
> Hi
> I have an element like below in XSD file
> <xs:complexType name="message">
> <xs:choice>
> <xs:element name="FailureMessage" type="xs:string" minOccurs="0"/>
> <xs:element name="SuccessMessage" type="xs:string" minOccurs="0"/>
> </xs:choice>
> </xs:complexType>
>
>
> This means that the XML file can have FailureMessage or SuccessMessage?
>
> When i create java soruce using wsdl2java and then use it to return SOAP
> message,
> will there be any validation for the xs:choice?
Are you using Axis1.x or Axis2? if Axis2 with what databinding?
Ashish
>
>
--
Amila Suriarachchi,
WSO2 Inc.