Hi Suresh,

It looks like you were using the generated binding.xml rather than your 
modified version when trying to generate the schema.

I'm working on a cleanup of all the tools to bring them up to date with 
the current JiBX code. This is taking me longer than I'd hoped, but I 
should have something ready to try this month.

  - Dennis

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



suresh kumar wrote:
> Hi
>         All
>  
>           This is suresh.  When generating schema file iam getting 
> this error.  plz help me on this
>        
>              Non-abstract mapping must define an element name; on 
> mapping element at (
> Line 3, col 39, in binding_xml)
>  
> My xml file is
> ---------------------
>  <?xml version="1.0" encoding="UTF-8" ?>
> - <btw:AddAppointment xmlns="urn:uk.org.telcob2b/tML/BT-Request-v2-0" 
> xmlns:btw="urn:com.btwholesale.Fulfilment2-v3-0" 
> xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd: 
> CommonBasicComponents-1.0" 
> xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0"
>  
> xmlns:utcc="urn:uk.org.telcob2b/tML/ukt-CommonComponents-v2-0" 
> xmlns:ds="urn: uk.org.telcob2b/tML/DialogueServices-v1-0" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:schemaLocation="urn:com.btwholesale.Fulfilment2-v3-0 
> ..\Schemas\Application\Fulfilment2-v3-0.xsd 
> urn:uk.org.telcob2b/tML/BT-Request-v2-0 
> ../Schemas/telcoB2Bdoc/BT-Request-v2-0.xsd 
> urn:uk.org.telcob2b/tML/DialogueServices-v1-0 
> ..\Schemas\Application\DialogueServices-v1-0.xsd ">
> - <Request>
>   <RequestersID>50009999</RequestersID>
>   <utcc:IssueDateTime>2005-03-05T17:04:10</utcc:IssueDateTime>
> - <RequesterParty>
> - <cac:Party>
> - <cac:PartyIdentification>
>   <cac:ID identificationSchemeAgencyName="DUNS">131620343</cac:ID>
>   </cac:PartyIdentification>
>   </cac:Party>
>   </RequesterParty>
> - <ResponderParty>
> - <cac:Party>
> - <cac:PartyIdentification>
>   <cac:ID identificationSchemeName="DUNS">364877501</cac:ID>
>   </cac:PartyIdentification>
>   </cac:Party>
>   </ResponderParty>
> - <utcc:RequestLine>
> - <utcc:RequestLineItem>
>   <utcc:RequestersID>1</utcc:RequestersID>
> - <utcc:Features>
> + <ds:AppointmentFeatureSet>
> + <ds:InputFeatures>
> + <utcc:Address>
> + <utcc:AddressReference>
>   <utcc:RefNum>This</utcc:RefNum>
>   <utcc:DistrictCode>District Code</utcc:DistrictCode>
>   </utcc:AddressReference>
>   </utcc:Address>
>   <utcc:ServiceId>Or This</utcc:ServiceId>
>   <utcc:DirectoryNumber>Or This</utcc:DirectoryNumber>
> + <utcc:Appointment>
>   <utcc:AppointmentDate>2005-12-28</utcc:AppointmentDate>
>   <utcc:AppointmentTimeslot>PM</utcc:AppointmentTimeslot>
>   <utcc:ServiceType>SMPF</utcc:ServiceType>
>   <utcc:Action>Repair</utcc:Action>
>   <utcc:Quantity>1</utcc:Quantity>
>   <utcc:ServiceLevel>Standard</utcc:ServiceLevel>
>   </utcc:Appointment>
>   </ds:InputFeatures>
>   </ds:AppointmentFeatureSet>
>   </utcc:Features>
>   </utcc:RequestLineItem>
>   </utcc:RequestLine>
>   </Request>
>   </btw:AddAppointment>
>  
> My java classes regarding my xml
> ------------------------------------------
>
> package s;
>
> class AddAppointment
> {
>  
>       public Request request;
>    public RequesterParty requesterparty;
>       public ResponderParty responderparty;
>       public RequestLine requestline;
>
> }
>
> package s;
>
> public class Request{
>      
>       public int RequestersID;
>       public int IssueDateTime;
>
> }
>
> package s;
>
> public class RequesterParty{
>        public String identificationSchemeAgencyName;
>        public int ID;
> }
>
> package s;
>
> public class RequestLine{
>        public int RequestersID;
>        public String RefNum;
>        public String DistrictCode;
>        public String ServiceID;
>        public String DirectoryNumber;
>        public int AppointmentDate;
>        public String AppointmentTimeslot;
>        public String ServiceType;
>        public String  Action;
>        public int Quantity;
>        public String ServiceLevel;
> }
>
> package s;
>
> public class ResponderParty{
>        public String identificationSchemeAgencyName;      
>   public int ID;
> }
>
> my binding xml is
>
> -----------------------
>
> <binding>
>  <mapping class="s.AddAppointment" name="AddAppointment" >
>     <namespace uri="urn:com.btwholesale.Fulfilment2-v3-0" prefix="btw" 
> default="all"/>
>     <structure field="requesterparty"/>
>     <structure field="responderparty"/>
>     <structure field="requestline"/>
>  </mapping>
>  <mapping class=" s.Request" name="request" >
>    <value name="RequestersID" field="RequestersID"/>
>     <value name="IssueDateTime" field="IssueDateTime"/>
>   </mapping>
>   <mapping name="requesterParty" class="s.RequesterParty">
>     <namespace 
> uri="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0"
>  
> prefix="cac" default="all"/>
>     <value name="identificationSchemeAgencyName" stryle="attribute" 
> field="identificationSchemeAgencyName"/>
>     <value name="ID" field="ID"/>
>   </mapping>
>   <mapping name="responderParty" class="s.ResponderParty">
>     <namespace 
> uri="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0"
>  
> prefix="cac" default="all"/>
>     <value name="identificationSchemeAgencyName" stryle="attribute" 
> field="identificationSchemeAgencyName"/>
>     <value name="ID" field="ID"/>
>   </mapping>
>   <mapping name="requestLine" class="s.RequestLine">
>     <namespace uri="urn:uk.org.telcob2b/tML/ukt-CommonComponents-v2-0" 
> prefix="utcc" default="all"/>
>     <value name="RequestersID" field="RequestersID"/>
>     <value name="RefNum" field="RefNum"/>
>     <value name="DistrictCode" field="DistrictCode"/>
>     <value name="ServiceID" field="ServiceID"/>
>     <value name="DirectoryNumber" field="DirectoryNumber"/>
>     <value name="AppointmentDate" field="AppointmentDate"/>
>     <value name="AppointmentTimeslot" field="AppointmentTimeslot"/>
>     <value name="ServiceType" field="ServiceType"/>
>     <value name="Action" field="Action"/>
>     <value name="Quantity" field="Quantity"/>
>     <value name="ServiceLevel" field="ServiceLevel"/>
>   </mapping>
> </binding>
>
> System generated binding xml is
>
> --------------------------------------------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <binding forwards="false" value-style="attribute">
>   <mapping class="s.AddAppointment">
>     <structure field="request" usage="optional" name="request">
>       <value name="requesters-id" field="RequestersID"/>
>       <value name="issue-date-time" field="IssueDateTime"/>
>     </structure>
>     <structure field="requesterparty" usage="optional" 
> name="requesterparty">
>       <value style="element" name="identification-scheme-agency-name" 
> field="identificationSchemeAgencyName" usage="optional"/>
>       <value name="id" field="ID"/>
>     </structure>
>     <structure field="responderparty" usage="optional" 
> name="responderparty">
>       <value style="element" name="identification-scheme-agency-name" 
> field="identificationSchemeAgencyName" usage="optional"/>
>       <value name="id" field="ID"/>
>     </structure>
>     <structure field="requestline" usage="optional" name="requestline">
>       <value name="requesters-id" field="RequestersID"/>
>       <value style="element" name="ref-num" field="RefNum" 
> usage="optional"/>
>       <value style="element" name="district-code" field="DistrictCode" 
> usage="optional"/>
>       <value style="element" name="service-id" field="ServiceID" 
> usage="optional"/>
>       <value style="element" name="directory-number" 
> field="DirectoryNumber" usage="optional"/>
>       <value name="appointment-date" field="AppointmentDate"/>
>       <value style="element" name="appointment-timeslot" 
> field="AppointmentTimeslot" usage="optional"/>
>       <value style="element" name="service-type" field="ServiceType" 
> usage="optional"/>
>       <value style="element" name="action" field="Action" 
> usage="optional"/>
>       <value name="quantity" field="Quantity"/>
>       <value style="element" name="service-level" field="ServiceLevel" 
> usage="optional"/>
>     </structure>
>   </mapping>
> </binding>
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>   

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to