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=DEVDEV
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to