Hi Dennis Thanks a lot for your response; I know how busy you are. You are totally right, problem was being caused by what it looks incompatibilities between the jibx version we were using (1.3) and the generator version. When we changed our jibx version to 1.1, everything was ok.
It's very a good to know that you will be releasing a new version for the generator soon. Will it compatible with the latest jibx version? Thx a lot Javier -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: 27 March 2007 22:05 To: JiBX users Subject: Re: [jibx-users] Help - Problems with the Schema Generator Hi Javier, That looks very strange to me. From the error messages, it appears that your binding is not being read correctly. I don't know what could cause this. What version of the main jibx-binding.jar are you using with the schema generator (either located in the same directory as the jibx-genschema.jar, or in your classpath)? I do have a rewrite of the schema generator which I'm trying to get out now. The main focus for this version is on handling the output of the rewritten binding generator. I'm still trying to add a couple more features, but will try to get test versions of these tools out before the weekend. - 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 Javier Diaz wrote: > > Hi all > > We are new to jibx. We are trying to use it combined with Xfire. Due > to problems with Xfire not able to generate the WSDL properly using > the jibx mappings, we will need to generate the .xsd schema and force > Xfire to use it. > > Our binding is running ok, but when try to run the schema generator we > got some errors. It looks to us we are missing something really > obvious as the error we are getting is not making sense. > > See below our binding.xml > > <?xml version="1.0" encoding="UTF-8"?> > > <binding forwards="false" value-style="attribute"> > > <mapping > class="com.lastminute.sconnector.api.availability.AvailabilityRequest" > name="AvailReq"> > > <value style="element" name="dep" set-method="setDEP" > get-method="getDEP" usage="optional"/> > > <value style="element" name="des" set-method="setDES" > get-method="getDES" usage="optional"/> > > </mapping> > > <mapping > class="com.lastminute.sconnector.api.availability.AvailabilityResponse" > name="AvailResp"> > > <value style="element" name="result" set-method="setResult" > get-method="getResult" usage="optional"/> > > <value style="element" name="num-fares" set-method="setNumFares" > get-method="getNumFares" usage="optional"/> > > </mapping> > > </binding> > > Error trying to generate the schema: > > java -jar > /home/jdiaz/p4/project/cppLFE/main/SConnector/lib/jibx/jibx-genschema.ja r > binding.xml > > Running schema generator version 0.2 > > Error: Non-abstract mapping must define an element name; on mapping > element at (line 3, col 99, in binding_xml) > > Error: Class name is required; on mapping element at (line 3, col 99, > in binding_xml) > > Error: Non-abstract mapping must define an element name; on mapping > element at (line 7, col 101, in binding_xml) > > Error: Class name is required; on mapping element at (line 7, col 101, > in binding_xml) > > It looks to us that we are clear defining a "name" for both mapping > elements, so we are not sure where the problem lies. > > We will really appreciate if you could please let us know, what the > problem could be. > > Thx > > Javier > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V > ------------------------------------------------------------------------ > > _______________________________________________ > jibx-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jibx-users > ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
