Jump to content
Sign in to follow this  
Guest Rajib Biswas

schema compilation (JAXB)

Recommended Posts

Guest Rajib Biswas

Hi All,I have created 2 schema files from a XML file using XML Spy. But when I am trying to compile the schemas using JAXB compiler, I am getting many errors. Can anyone help me in this matter? My XML file is as follows:<?xml version="1.0" encoding="UTF-8" standalone="yes"?><!--W3C Schema generated by XMLSpy v2006 sp2 U (http://www.altova.com)--><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.triversity.com/TE/integration/" xmlns:ns1="http://www.nrf-arts.org/IXRetail/namespace/" targetNamespace="http://www.triversity.com/TE/integration/" elementFormDefault="qualified"> <xs:import namespace="http://www.nrf-arts.org/IXRetail/namespace/" schemaLocation="POSLog1.xsd"/> <xs:element name="ActionCode"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="ENTER"/> <xs:enumeration value="PAYMENT"/> <xs:enumeration value="SELL"/> <xs:enumeration value="SET_UDT"/> <xs:enumeration value="UPDATE"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ApplicationID" type="xs:string"/> <xs:complexType name="BodyType"> <xs:sequence> <xs:element name="Transaction" type="ns1:TransactionType"/> </xs:sequence> </xs:complexType> <xs:element name="CurrencyID"> <xs:simpleType> <xs:restriction base="xs:byte"> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DeviceID" type="xs:string"/> <xs:complexType name="HeaderType"> <xs:sequence> <xs:element ref="ns1:MessageId"/> <xs:element ref="ns1:Timestamp"/> <xs:element ref="ns1:Originator"/> <xs:element ref="ns1:SequenceNumber"/> </xs:sequence> </xs:complexType> <xs:complexType name="ItemInfoType" mixed="true"> <xs:attribute name="type" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="DutyType"/> <xs:enumeration value="PickedItem"/> <xs:enumeration value="PickedLocation"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:complexType name="ItemInformationType"> <xs:sequence> <xs:element name="ItemInfo" type="ns1:ItemInfoType" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> <xs:element name="LevelID"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="610"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="LineNumber"> <xs:simpleType> <xs:restriction base="xs:byte"> <xs:enumeration value="1"/> <xs:enumeration value="2"/> <xs:enumeration value="5"/> <xs:enumeration value="6"/> <xs:enumeration value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="LineType"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Customer"/> <xs:enumeration value="Item"/> <xs:enumeration value="StartTransaction"/> <xs:enumeration value="TenderMerch"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageId" type="xs:string"/> <xs:complexType name="NativeLineDetailType"> <xs:sequence> <xs:element ref="ns1:LineNumber"/> <xs:element ref="ns1:LineType"/> <xs:element ref="ns1:ActionCode"/> <xs:element name="ItemInformation" type="ns1:ItemInformationType" minOccurs="0"/> <xs:element ref="ns1:RequestedLevelID" minOccurs="0"/> <xs:element ref="ns1:CurrencyID" minOccurs="0"/> </xs:sequence> </xs:complexType> <xs:complexType name="NativeTrxDetailType"> <xs:sequence> <xs:element ref="ns1:ApplicationID"/> <xs:element ref="ns1:OrganizationID"/> <xs:element ref="ns1:SiteID"/> <xs:element ref="ns1:DeviceID"/> <xs:element ref="ns1:SubdeviceID"/> <xs:element ref="ns1:UDTID"/> <xs:element ref="ns1:UDTDescription"/> <xs:element ref="ns1:CurrencyID"/> <xs:element ref="ns1:LevelID"/> <xs:element ref="ns1:ReportGroup"/> </xs:sequence> </xs:complexType> <xs:element name="OrganizationID"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="DFS"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Originator"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="TE TransactionPostWorkflow"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="POSLog"> <xs:complexType> <xs:sequence> <xs:element name="Header" type="ns1:HeaderType"/> <xs:element name="Body" type="ns1:BodyType"/> </xs:sequence> <xs:attribute name="GeneratingCodeVersion" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="1.9.2.0.321"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="Version" use="required"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="1.0"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> </xs:element> <xs:element name="ReportGroup"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="610"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="RequestedLevelID"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="610"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SequenceNumber"> <xs:simpleType> <xs:restriction base="xs:byte"> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SiteID"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="610"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubdeviceID" type="xs:string"/> <xs:element name="Timestamp"> <xs:simpleType> <xs:restriction base="xs:dateTime"> <xs:enumeration value="2006-03-07T08:20:15"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="TransactionType"> <xs:sequence> <xs:element ref="ns1:RetailStoreID"/> <xs:element ref="ns1:WorkstationID"/> <xs:element ref="ns1:SequenceNumber"/> <xs:element ref="ns1:UserDefinedSequenceNumber"/> <xs:element ref="ns1:BusinessDayDate"/> <xs:element ref="ns1:BeginDateTime"/> <xs:element ref="ns1:EndDateTime"/> <xs:element ref="ns1:TradingPeriodID"/> <xs:element name="NativeTrxDetail" type="ns1:NativeTrxDetailType"/> <xs:element ref="ns1:OperatorID"/> <xs:element ref="ns1:CurrencyCode"/> <xs:element ref="ns1:TillSupervisor"/> <xs:element name="LineItem" type="ns1:LineItemType" maxOccurs="unbounded"/> <xs:element name="Total" type="ns1:TotalType" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="Version" use="required"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="1.0"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:element name="UDTDescription"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Duty Free Sale"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="UDTID"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="DutyFreeSale"/> </xs:restriction> </xs:simpleType> </xs:element></xs:schema>---------------------------------------------------------------------------------------XSD file(File 1):---------------------------------------------------------------------------------------<?xml version="1.0" encoding="UTF-8" standalone="yes"?><!--W3C Schema generated by XMLSpy v2006 sp2 U (http://www.altova.com)--><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.triversity.com/TE/integration/" xmlns:ns1="http://www.nrf-arts.org/IXRetail/namespace/" targetNamespace="http://www.triversity.com/TE/integration/" elementFormDefault="qualified"> <xs:import namespace="http://www.nrf-arts.org/IXRetail/namespace/" schemaLocation="NEW1.xsd"/> <xs:element name="ActionCode"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="ENTER"/> <xs:enumeration value="PAYMENT"/> <xs:enumeration value="SELL"/> <xs:enumeration value="SET_UDT"/> <xs:enumeration value="UPDATE"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ApplicationID" type="xs:string"/> <xs:complexType name="BodyType"> <xs:sequence> <xs:element name="Transaction" type="ns1:TransactionType"/> </xs:sequence> </xs:complexType> <xs:element name="CurrencyID"> <xs:simpleType> <xs:restriction base="xs:byte"> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="DeviceID" type="xs:string"/> <xs:complexType name="HeaderType"> <xs:sequence> <xs:element ref="ns1:MessageId"/> <xs:element ref="ns1:Timestamp"/> <xs:element ref="ns1:Originator"/> <xs:element ref="ns1:SequenceNumber"/> </xs:sequence> </xs:complexType> <xs:complexType name="ItemInfoType" mixed="true"> <xs:attribute name="type" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="DutyType"/> <xs:enumeration value="PickedItem"/> <xs:enumeration value="PickedLocation"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:complexType name="ItemInformationType"> <xs:sequence> <xs:element name="ItemInfo" type="ns1:ItemInfoType" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> <xs:element name="LevelID"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="610"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="LineNumber"> <xs:simpleType> <xs:restriction base="xs:byte"> <xs:enumeration value="1"/> <xs:enumeration value="2"/> <xs:enumeration value="5"/> <xs:enumeration value="6"/> <xs:enumeration value="9"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="LineType"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Customer"/> <xs:enumeration value="Item"/> <xs:enumeration value="StartTransaction"/> <xs:enumeration value="TenderMerch"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="MessageId" type="xs:string"/> <xs:complexType name="NativeLineDetailType"> <xs:sequence> <xs:element ref="ns1:LineNumber"/> <xs:element ref="ns1:LineType"/> <xs:element ref="ns1:ActionCode"/> <xs:element name="ItemInformation" type="ns1:ItemInformationType" minOccurs="0"/> <xs:element ref="ns1:RequestedLevelID" minOccurs="0"/> <xs:element ref="ns1:CurrencyID" minOccurs="0"/> </xs:sequence> </xs:complexType> <xs:complexType name="NativeTrxDetailType"> <xs:sequence> <xs:element ref="ns1:ApplicationID"/> <xs:element ref="ns1:OrganizationID"/> <xs:element ref="ns1:SiteID"/> <xs:element ref="ns1:DeviceID"/> <xs:element ref="ns1:SubdeviceID"/> <xs:element ref="ns1:UDTID"/> <xs:element ref="ns1:UDTDescription"/> <xs:element ref="ns1:CurrencyID"/> <xs:element ref="ns1:LevelID"/> <xs:element ref="ns1:ReportGroup"/> </xs:sequence> </xs:complexType> <xs:element name="OrganizationID"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="DFS"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Originator"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="TE TransactionPostWorkflow"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="POSLog"> <xs:complexType> <xs:sequence> <xs:element name="Header" type="ns1:HeaderType"/> <xs:element name="Body" type="ns1:BodyType"/> </xs:sequence> <xs:attribute name="GeneratingCodeVersion" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="1.9.2.0.321"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="Version" use="required"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="1.0"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> </xs:element> <xs:element name="ReportGroup"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="610"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="RequestedLevelID"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="610"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SequenceNumber"> <xs:simpleType> <xs:restriction base="xs:byte"> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SiteID"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="610"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SubdeviceID" type="xs:string"/> <xs:element name="Timestamp"> <xs:simpleType> <xs:restriction base="xs:dateTime"> <xs:enumeration value="2006-03-07T08:20:15"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="TransactionType"> <xs:sequence> <xs:element ref="ns1:RetailStoreID"/> <xs:element ref="ns1:WorkstationID"/> <xs:element ref="ns1:SequenceNumber"/> <xs:element ref="ns1:UserDefinedSequenceNumber"/> <xs:element ref="ns1:BusinessDayDate"/> <xs:element ref="ns1:BeginDateTime"/> <xs:element ref="ns1:EndDateTime"/> <xs:element ref="ns1:TradingPeriodID"/> <xs:element name="NativeTrxDetail" type="ns1:NativeTrxDetailType"/> <xs:element ref="ns1:OperatorID"/> <xs:element ref="ns1:CurrencyCode"/> <xs:element ref="ns1:TillSupervisor"/> <xs:element name="LineItem" type="ns1:LineItemType" maxOccurs="unbounded"/> <xs:element name="Total" type="ns1:TotalType" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="Version" use="required"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="1.0"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:element name="UDTDescription"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Duty Free Sale"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="UDTID"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="DutyFreeSale"/> </xs:restriction> </xs:simpleType> </xs:element></xs:schema>-------------------------------------------------------------------------------------XSD File (File 2)-------------------------------------------------------------------------------------<?xml version="1.0" encoding="UTF-8" standalone="yes"?><!--W3C Schema generated by XMLSpy v2006 sp2 U (http://www.altova.com)--><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.triversity.com/TE/integration/" xmlns:ns1="http://www.nrf-arts.org/IXRetail/namespace/" targetNamespace="http://www.nrf-arts.org/IXRetail/namespace/" elementFormDefault="qualified"> <xs:import namespace="http://www.triversity.com/TE/integration/" schemaLocation="NEW.xsd"/> <xs:element name="ACCOUNT_NUMBER_VERIFICATION"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="403"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ADDRESS_1"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="816-3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ADDRESS_2"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="CHIKUMA"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ADDRESS_CITY"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="KAMIGORI-CHO, AKO-GUN HYO"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ADDRESS_COUNTRY"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="JAPAN"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ADDRESS_POSTAL_CODE"> <xs:simpleType> <xs:restriction base="xs:int"> <xs:enumeration value="6781232"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AccountID"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value=" "/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="ActualSalesUnitPriceType" mixed="true"> <xs:attribute name="Quantity" use="required"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="1.000"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:element name="Amount"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="2300.00"/> <xs:enumeration value="2300.0000"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ApprovalCode"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value=" "/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="AuthorizationType"> <xs:sequence> <xs:element ref="ns1:RequestedAmount"/> <xs:element ref="ns1:AuthorizationCode"/> <xs:element ref="ns1:ReferenceNumber"/> <xs:element ref="ns1:ProviderID"/> <xs:element ref="ns1:AuthorizationDateTime"/> <xs:element ref="ns1:HostAuthorized"/> <xs:element ref="ns1:ApprovalCode"/> <xs:element ref="ns1:AuthorizingTermID"/> <xs:element ref="ns1:ForceOnLine"/> </xs:sequence> </xs:complexType> <xs:element name="AuthorizationCode"> <xs:simpleType> <xs:restriction base="xs:int"> <xs:enumeration value="762867"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AuthorizationDateTime"> <xs:simpleType> <xs:restriction base="xs:dateTime"> <xs:enumeration value="2006-03-07T08:19:55"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="AuthorizingTermID"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="212"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="BankID"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value=" "/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="BeginDateTime"> <xs:simpleType> <xs:restriction base="xs:dateTime"> <xs:enumeration value="2006-03-07T08:18:44"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="BusinessDayDate"> <xs:simpleType> <xs:restriction base="xs:date"> <xs:enumeration value="2006-03-07"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CARD_BUSINESS_LOCATION_CODE"> <xs:simpleType> <xs:restriction base="xs:byte"> <xs:enumeration value="3"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CARD_CLASSIFICATION"> <xs:simpleType> <xs:restriction base="xs:byte"> <xs:enumeration value="5"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CARD_ENTERPRISE_CODE"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="0129"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CARD_NUMBER"> <xs:simpleType> <xs:restriction base="xs:long"> <xs:enumeration value="3587878055270403"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="CUSTOMER_REFERENCE_NUMBER"> <xs:simpleType> <xs:restriction base="xs:int"> <xs:enumeration value="0001360054"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="CheckType"> <xs:sequence> <xs:element ref="ns1:BankID"/> <xs:element ref="ns1:CheckNumber"/> </xs:sequence> </xs:complexType> <xs:element name="CheckNumber"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value=" "/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Command" type="xs:string"/> <xs:element name="CurrencyCode"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="JPY"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="CustomerType"> <xs:sequence> <xs:element ref="ns1:CustomerID"/> </xs:sequence> <xs:attribute name="Online" use="required"> <xs:simpleType> <xs:restriction base="xs:boolean"/> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:element name="CustomerID"> <xs:simpleType> <xs:restriction base="xs:int"> <xs:enumeration value="0001360054"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="CustomerUpdateType"> <xs:sequence> <xs:element ref="ns1:CustomerID"/> </xs:sequence> <xs:attribute name="Online" use="required"> <xs:simpleType> <xs:restriction base="xs:boolean"/> </xs:simpleType> </xs:attribute> <xs:attribute name="ExistingCustomer" use="required"> <xs:simpleType> <xs:restriction base="xs:boolean"/> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:element name="DATA_CAPTURE_CreditConfirmDetails"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="OK"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Description"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="LIPSTICK"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="EXPIRY_DATE"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="0608"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="EndDateTime"> <xs:simpleType> <xs:restriction base="xs:dateTime"> <xs:enumeration value="2006-03-07T08:18:44"/> <xs:enumeration value="2006-03-07T08:19:30"/> <xs:enumeration value="2006-03-07T08:19:40"/> <xs:enumeration value="2006-03-07T08:19:55"/> <xs:enumeration value="2006-03-07T08:20:15"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="EntryMethod"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Keyed"/> <xs:enumeration value="MSR"/> <xs:enumeration value="Scanned"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ExtendedAmount"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="2300.00"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="ExtendedDataType" mixed="true"> <xs:attribute name="name" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="SourceNumber"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:element name="FIRST_NAME"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="KEIKO"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ForceOnLine"> <xs:simpleType> <xs:restriction base="xs:boolean"/> </xs:simpleType> </xs:element> <xs:element name="HostAuthorized"> <xs:simpleType> <xs:restriction base="xs:boolean"/> </xs:simpleType> </xs:element> <xs:element name="ITEM_KEY"> <xs:simpleType> <xs:restriction base="xs:long"> <xs:enumeration value="0001360054"/> <xs:enumeration value="3145891527827"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="LineItemType"> <xs:sequence> <xs:element ref="ns1:SequenceNumber"/> <xs:element ref="ns1:EndDateTime"/> <xs:element name="NativeLineDetail" type="ns1:NativeLineDetailType"/> <xs:element name="SupplementalData" type="ns1:SupplementalDataType"/> <xs:element ref="ns1:EntryMethod"/> <xs:element ref="ns1:Command" minOccurs="0"/> <xs:element name="Customer" type="ns1:CustomerType" minOccurs="0"/> <xs:element name="CustomerUpdate" type="ns1:CustomerUpdateType" minOccurs="0"/> <xs:element name="Sale" type="ns1:SaleType" minOccurs="0"/> <xs:element name="Tender" type="ns1:TenderType" minOccurs="0"/> </xs:sequence> </xs:complexType> <xs:complexType name="MerchandiseHierarchyType" mixed="true"> <xs:attribute name="Level" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Department"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:element name="OperatorID"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="1097"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PARAMETER"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="JCB-4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PAX_DELIVERY_LOCATION"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="JAL"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PAX_DEP_FLT_CUT"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="020000"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PAX_DEP_FLT_DATE"> <xs:simpleType> <xs:restriction base="xs:date"> <xs:enumeration value="2006-03-07"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PAX_DEP_FLT_NAME"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="JL"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PAX_DEP_FLT_NUM"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="3384"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PAX_DEP_FLT_TIME"> <xs:simpleType> <xs:restriction base="xs:int"> <xs:enumeration value="122500"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PAX_ETHN"> <xs:simpleType> <xs:restriction base="xs:byte"> <xs:enumeration value="1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PAX_RUNNING_DUTY_TOTAL"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="0.0"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="PAYMENT_OPTION_TYPE"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="One Time"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="POSIdentityType"> <xs:sequence> <xs:element ref="ns1:POSItemID"/> <xs:element ref="ns1:Qualifier"/> </xs:sequence> </xs:complexType> <xs:element name="POSItemID"> <xs:simpleType> <xs:restriction base="xs:int"> <xs:enumeration value="64572295"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ProviderID"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value=" "/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="Qualifier"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="610"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="QuantityType" mixed="true"> <xs:attribute name="Units" use="required"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="1.0"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="UnitOfMeasureCode" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Each"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:element name="REPORT_GROUP"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="610"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="ReferenceNumber"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="00100610021220060307081951380240007"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="RegularSalesUnitPrice"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="2300.00"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="RequestedAmount"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="2300.0000"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="RetailStoreID"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="DFS.610"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="SURNAME"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="MIURA"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="SaleType"> <xs:sequence> <xs:element name="POSIdentity" type="ns1:POSIdentityType"/> <xs:element name="MerchandiseHierarchy" type="ns1:MerchandiseHierarchyType"/> <xs:element ref="ns1:Description"/> <xs:element ref="ns1:RegularSalesUnitPrice"/> <xs:element name="ActualSalesUnitPrice" type="ns1:ActualSalesUnitPriceType"/> <xs:element ref="ns1:ExtendedAmount"/> <xs:element name="Quantity" type="ns1:QuantityType"/> <xs:element name="Tax" type="ns1:TaxType"/> </xs:sequence> <xs:attribute name="ItemType" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Stock"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:element name="SequenceNumber"> <xs:simpleType> <xs:restriction base="xs:int"> <xs:enumeration value="1"/> <xs:enumeration value="2"/> <xs:enumeration value="2960681"/> <xs:enumeration value="3"/> <xs:enumeration value="4"/> <xs:enumeration value="41726"/> <xs:enumeration value="5"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="SupplementalDataType"> <xs:sequence> <xs:element ref="ns1:udtDescription" minOccurs="0"/> <xs:element ref="ns1:CUSTOMER_REFERENCE_NUMBER" minOccurs="0"/> <xs:element ref="ns1:SURNAME" minOccurs="0"/> <xs:element ref="ns1:FIRST_NAME" minOccurs="0"/> <xs:element ref="ns1:ADDRESS_POSTAL_CODE" minOccurs="0"/> <xs:element ref="ns1:ADDRESS_1" minOccurs="0"/> <xs:element ref="ns1:ADDRESS_2" minOccurs="0"/> <xs:element ref="ns1:ADDRESS_CITY" minOccurs="0"/> <xs:element ref="ns1:ADDRESS_COUNTRY" minOccurs="0"/> <xs:element ref="ns1:PAX_ETHN" minOccurs="0"/> <xs:element ref="ns1:PAX_DEP_FLT_NAME" minOccurs="0"/> <xs:element ref="ns1:_datasource_"/> <xs:element ref="ns1:UDF_FOR_UDT" minOccurs="0"/> <xs:element ref="ns1:PAX_DEP_FLT_NUM" minOccurs="0"/> <xs:element ref="ns1:PAX_DEP_FLT_CUT" minOccurs="0"/> <xs:element ref="ns1:SequenceNumber" minOccurs="0"/> <xs:element ref="ns1:PAX_DEP_FLT_TIME" minOccurs="0"/> <xs:element ref="ns1:REPORT_GROUP" minOccurs="0"/> <xs:element ref="ns1:ITEM_KEY" minOccurs="0"/> <xs:element ref="ns1:PAX_RUNNING_DUTY_TOTAL" minOccurs="0"/> <xs:element ref="ns1:UDT_ID" minOccurs="0"/> <xs:element ref="ns1:PAX_DEP_FLT_DATE" minOccurs="0"/> <xs:element ref="ns1:PAX_DEP_FLT_TIME" minOccurs="0"/> <xs:element ref="ns1:PAX_DEP_FLT_CUT" minOccurs="0"/> <xs:element ref="ns1:ITEM_KEY" minOccurs="0"/> <xs:element ref="ns1:PAX_RUNNING_DUTY_TOTAL" minOccurs="0"/> <xs:element ref="ns1:UDT_ID" minOccurs="0"/> <xs:element ref="ns1:SequenceNumber" minOccurs="0"/> <xs:element ref="ns1:CARD_NUMBER" minOccurs="0"/> <xs:element ref="ns1:EXPIRY_DATE" minOccurs="0"/> <xs:element ref="ns1:ACCOUNT_NUMBER_VERIFICATION" minOccurs="0"/> <xs:element ref="ns1:TENDER_AMOUNT" minOccurs="0"/> <xs:element ref="ns1:PAYMENT_OPTION_TYPE" minOccurs="0"/> <xs:element ref="ns1:CARD_BUSINESS_LOCATION_CODE" minOccurs="0"/> <xs:element ref="ns1:CARD_ENTERPRISE_CODE" minOccurs="0"/> <xs:element ref="ns1:CARD_CLASSIFICATION" minOccurs="0"/> <xs:element ref="ns1:_datasource_"/> <xs:element ref="ns1:REPORT_GROUP" minOccurs="0"/> <xs:element ref="ns1:UDF_FOR_UDT" minOccurs="0"/> <xs:element ref="ns1:PAX_DELIVERY_LOCATION" minOccurs="0"/> <xs:element ref="ns1:_original_datasource_" minOccurs="0"/> <xs:element ref="ns1:PARAMETER" minOccurs="0"/> <xs:element ref="ns1:DATA_CAPTURE_CreditConfirmDetails" minOccurs="0"/> </xs:sequence> </xs:complexType> <xs:element name="TENDER_AMOUNT"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="2300.00"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="TaxType"> <xs:sequence> <xs:element ref="ns1:TaxGroupID"/> <xs:element ref="ns1:TaxableAmount"/> </xs:sequence> </xs:complexType> <xs:element name="TaxGroupID"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value=" "/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TaxableAmount"> <xs:simpleType> <xs:restriction base="xs:byte"> <xs:enumeration value="-1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="TenderType"> <xs:sequence> <xs:element ref="ns1:TenderID"/> <xs:element ref="ns1:Amount"/> <xs:element ref="ns1:AccountID"/> <xs:element name="Authorization" type="ns1:AuthorizationType"/> <xs:element name="Check" type="ns1:CheckType"/> <xs:element name="TenderExtensions" type="ns1:TenderExtensionsType"/> </xs:sequence> </xs:complexType> <xs:complexType name="TenderExtensionsType"> <xs:sequence> <xs:element name="ExtendedData" type="ns1:ExtendedDataType"/> </xs:sequence> </xs:complexType> <xs:element name="TenderID"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="JCB-4"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="TillSupervisor"> <xs:simpleType> <xs:restriction base="xs:short"> <xs:enumeration value="1097"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:complexType name="TotalType"> <xs:sequence> <xs:element ref="ns1:Amount"/> </xs:sequence> <xs:attribute name="TotalType" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="TransactionGrandAmount"/> <xs:enumeration value="TransactionNetAmount"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:element name="TradingPeriodID"> <xs:simpleType> <xs:restriction base="xs:byte"> <xs:enumeration value="0"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="UDF_FOR_UDT"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="START_TRANSACTION"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="UDT_ID"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="DutyFreeSale"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="UserDefinedSequenceNumber"> <xs:simpleType> <xs:restriction base="xs:int"> <xs:enumeration value="38024"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="WorkstationID"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="POS.212.1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="_datasource_"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Keyboard"/> <xs:enumeration value="MSR"/> <xs:enumeration value="Scanner"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="_original_datasource_"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Scanner"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="udtDescription"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Duty Free Sale"/> </xs:restriction> </xs:simpleType> </xs:element></xs:schema>-----------------------------------------------------------------------------------------Errors while compiling through JAXB compiler:------------------------------------------------------------------------------------------C:\java\jwsdp-1.4\jaxb\bin>xjc -d C:\XMLTest\gen-src -p com.dfs.mcs.opxml C:\XMLTest\NEW.xsdparsing a schema...[ERROR] src-resolve: Cannot resolve the name 'ns1:TransactionType' to a(n) 'type definition' component. line 19 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:MessageId' to a(n) 'element declaration' component. line 32 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:Timestamp' to a(n) 'element declaration' component. line 33 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:Originator' to a(n) 'element declaration' component. line 34 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:ItemInfoType' to a(n) 'type definition' component. line 51 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:LineNumber' to a(n) 'element declaration' component. line 85 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:LineType' to a(n) 'element declaration' component. line 86 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:ActionCode' to a(n) 'element declaration' component. line 87 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:ItemInformationType' to a(n) 'type definition' component. line 88 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:RequestedLevelID' to a(n) 'element declaration' component. line 89 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:CurrencyID' to a(n) 'element declaration' component. line 90 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:ApplicationID' to a(n) 'element declaration' component. line 95 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:OrganizationID' to a(n) 'element declaration' component. line 96 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:SiteID' to a(n) 'element declaration' component. line 97 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:DeviceID' to a(n) 'element declaration' component. line 98 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:SubdeviceID' to a(n) 'element declaration' component. line 99 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:UDTID' to a(n) 'element declaration' component. line 100 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:UDTDescription' to a(n) 'element declaration' component. line 101 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:CurrencyID' to a(n) 'element declaration' component. line 102 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:LevelID' to a(n) 'element declaration' component. line 103 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:ReportGroup' to a(n) 'element declaration' component. line 104 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:HeaderType' to a(n) 'type definition' component. line 124 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:BodyType' to a(n) 'type definition' component. line 125 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:NativeTrxDetailType' to a(n) 'type definition' component. line 189 of NEW.xsd[ERROR] src-resolve: Cannot resolve the name 'ns1:NativeLineDetailType' to a(n) 'type definition' component. line 307 of NEW1.xsd[ERROR] cos-nonambig: "http://www.nrf-arts.org/IXRetail/namespace/":PAX_DEP_FLT_CUT and "http://www.nrf-arts.org/IXRetail/namespace/":PAX_DEP_FLT_CUT (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. line 520 of NEW1.xsdFailed to parse a schema.Please let me know if there are any solutions to this problem.mail id: rajib.biswas@cognizant.com

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...