Hi Tom,

You need to show the actual binding definition you're using, which I 
assume you're probably generating with Xsd2Jibx.

The current Xsd2Jibx code is not very reliable, though I'd expect it to 
handle such a simple schema structure without problems.

- Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Tom Decsi wrote:
>
> Recently, I build an xsd model as shown below :
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
> xmlns:config="http://www.itinq.com/config"; 
> targetNamespace="http://www.itinq.com/config"; 
> elementFormDefault="qualified" attributeFormDefault="unqualified">
>
> <xs:element name="Configuration">
>
> <xs:complexType>
>
> <xs:sequence>
>
> <xs:element name="ApplicationInfo" type="config:ApplicationInfoType" 
> minOccurs="0" maxOccurs="unbounded" />
>
> </xs:sequence>
>
> </xs:complexType>
>
> </xs:element>
>
> <xs:complexType name="ApplicationInfoType">
>
> <xs:sequence>
>
> <xs:element name="ApplicationName" type="xs:string" minOccurs="0"/>
>
> <xs:element name="ApplicationVersion" type="xs:string" minOccurs="0"/>
>
> </xs:sequence>
>
> </xs:complexType>
>
> </xs:schema>
>
> Then I use the Jibx and Ant to create a jar which I include in my web 
> project.
>
> The Xml I’m trying to unmarchall looks like this :
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <Configuration xmlns="http://www.itinq.com/config";>
>
> <ApplicationInfo>
>
> <ApplicationName>appname</ApplicationName>
>
> <ApplicationVersion>appversion</ApplicationVersion>
>
> </ApplicationInfo>
>
> </Configuration>
>
> However I keep getting the following binding exception when 
> unmarchalling from the xml to the jar classes :
>
> Expected ApplicationInfo end tag, found ApplicationName start tag
>
> I’m I missing something here? Any help would be highly appreciated.
>
> Thank you in advance
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to