Parse a SimpleType...

hi , i parse an Element and like this:
XSDElement element=(XSDElement)nodeArray[z];
//nodeArray[z] is a XSDNode[]
System.out.println(element.getType().getName());
//print the TYPE of the lement like string or decimal or integer...
but if the element is a simpletype, how i can see the TYPE of this simpletype?

The XSDNode class does not have a method to determine the type of SimpleType.

Similar Messages

  • How to use jaxb-impl-2.1.3.jar  for jaxb

    hi ,
    I want to use jaxb-impl-2.1.3.jar ,thus I am placing the same jar in 'endorsed' folder in the jdk1.6.0/jre/lib folder . But while generating the java classes from the XSD it using 'xjc -verbose -d [folder] -p[package structure]' command it gives
    Exception in thread "main" java.lang.NoSuchMethodError: com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(Lcom/sun/xml/bind/v2/runtime/JAXBContextImpl$JAXBContextBuilder;)V
            at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1136)
            at com.sun.tools.xjc.reader.xmlschema.bindinfo.BindInfo.getJAXBContext(BindInfo.java:330)
            at com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$1.<init>(AnnotationParserFactoryImpl.java:80)
            at com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl.create(AnnotationParserFactoryImpl.java:79)
            at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.createAnnotationParser(NGCCRuntimeEx.java:359)
            at com.sun.xml.xsom.impl.parser.state.annotation.action0(annotation.java:48)
            at com.sun.xml.xsom.impl.parser.state.annotation.enterElement(annotation.java:73)
            at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
            at com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromEnterElement(NGCCHandler.java:74)
            at com.sun.xml.xsom.impl.parser.state.simpleType.enterElement(simpleType.java:62)
            at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
            at com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromEnterElement(NGCCHandler.java:111)
            at com.sun.xml.xsom.impl.parser.state.foreignAttributes.enterElement(foreignAttributes.java:50)
            at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
            at com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromEnterElement(NGCCHandler.java:74)
            at com.sun.xml.xsom.impl.parser.state.simpleType.enterElement(simpleType.java:145)
            at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
            at com.sun.xml.xsom.impl.parser.state.simpleType.enterElement(simpleType.java:86)
            at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
            at com.sun.xml.xsom.impl.parser.state.simpleType.enterElement(simpleType.java:107)
            at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:219)
            at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
            at com.sun.tools.xjc.util.SubtreeCutter.startElement(SubtreeCutter.java:104)
            at com.sun.tools.xjc.reader.ExtensionBindingChecker.startElement(ExtensionBindingChecker.java:144)
            at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
            at com.sun.tools.xjc.reader.xmlschema.parser.IncorrectNamespaceURIChecker.startElement(IncorrectNamespaceURIChecker.java:113)
            at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
            at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.startElement(CustomizationContextChecker.java:188)
            at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
            at com.sun.tools.xjc.ModelLoader$SpeculationChecker.startElement(ModelLoader.java:455)
            at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
            at com.sun.tools.xjc.reader.internalizer.VersionChecker.startElement(VersionChecker.java:98)
            at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
            at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
            at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
            at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
            at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
            at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
            at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
            at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
            at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
            at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333)If I removes the endorse folder it generates the classes properly ,but it uses jaxb2.0 jar which is there in rt.jar .
    Please suggest me how to use the jaxb-impl-2.1.3.jar ....
    With Regards
    Arunabh Dash

    You can set JDeveloper to use JDK 1.4 for your project compile.
    JDeveloper 10.1.3.2 has the needed portlet wizards.
    See:
    http://download.oracle.com/otndocs/tech/webcenter/files/owcs_10132_buildportlets_viewlet.html
    You might also want to verify these on the Portal/WebCenter forums as well.

  • Exception when parsing schema with XJC

    Using the command "xjc -d C:\Temp -p sbxml C:\Temp\sb2.xsd" in attempt to generate java classes for my schema I get the error below. The schema is well-formed and valid according to XMLSpy. The schema in question is found below the error. Thanks.
    Mark
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
    at com.sun.msv.verifier.identity.IDConstraintChecker.feedAttribute(IDConstraintChecker.java:218)
    at com.sun.msv.verifier.Verifier.startElement(Verifier.java:204)
    at org.iso_relax.verifier.impl.VerifierFilterImpl.startElement(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
    at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:874)
    at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:591)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScanner
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
    at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
    at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
    at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:151)
    at com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMParser.java:116)
    at com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:511)
    at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
    at com.sun.tools.xjc.Driver.run(Driver.java:268)
    at com.sun.tools.xjc.Driver.main(Driver.java:88)
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by Mark (CMH) -->
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:element name="INFO_EX">
              <xs:annotation>
                   <xs:documentation>Collection of data for any number of days</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="DAILY_INFO" minOccurs="0" maxOccurs="unbounded">
                             <xs:annotation>
                                  <xs:documentation>Collection of data for all areas for a single day</xs:documentation>
                             </xs:annotation>
                             <xs:complexType>
                                  <xs:sequence>
                                       <xs:element name="AREA_INFO" type="AREA_INFO_TYPE" minOccurs="0" maxOccurs="unbounded"/>
                                  </xs:sequence>
                                  <xs:attribute name="DATE_TODAY" type="xs:date" use="required"/>
                             </xs:complexType>
                        </xs:element>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:complexType name="AREA_INFO_TYPE">
              <xs:annotation>
                   <xs:documentation>Collection of data for a single area for a single day</xs:documentation>
              </xs:annotation>
              <xs:sequence>
                   <xs:element name="FIELD_OBS" type="FIELD_OBS_TYPE" minOccurs="0" maxOccurs="unbounded"/>
                   <xs:element name="AVALANCHE" type="AV_TYPE" minOccurs="0" maxOccurs="unbounded"/>
                   <xs:element name="NOTABLE" type="NOTABLE_TYPE" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>
              <xs:attribute name="AREA_ABBREV" type="AREA_ABBREV_TYPE" use="required"/>
         </xs:complexType>
         <xs:complexType name="FIELD_OBS_TYPE">
              <xs:annotation>
                   <xs:documentation>Collection of a day's field observations</xs:documentation>
              </xs:annotation>
              <xs:sequence>
                   <xs:element name="GEO_ID" type="SB_ID_TYPE"/>
                   <xs:element name="SKY_PM" type="SKY_TYPE"/>
                   <xs:element name="SKY_AM" type="SKY_TYPE"/>
                   <xs:element name="SKI_ELEV_MAX" type="xs:unsignedShort"/>
                   <xs:element name="SKI_ELEV_MIN" type="xs:unsignedShort"/>
                   <xs:element name="SKI_METERS" type="xs:unsignedShort"/>
                   <xs:element name="SKI_QUALITY">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="P"/>
                                  <xs:enumeration value="F"/>
                                  <xs:enumeration value="G"/>
                                  <xs:enumeration value="E"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="HI_TEMP" type="xs:decimal"/>
                   <xs:element name="LO_TEMP" type="xs:decimal"/>
                   <xs:element name="XPORT_AM" type="TRANSPORT_TYPE"/>
                   <xs:element name="XPORT_PM" type="TRANSPORT_TYPE"/>
                   <xs:element name="HN24" type="xs:int"/>
                   <xs:element name="FO_DATE" type="xs:date" minOccurs="0"/>
                   <xs:element name="W_SPD_AM" type="WIND_SPEED_TYPE"/>
                   <xs:element name="W_SPD_PM" type="WIND_SPEED_TYPE"/>
                   <xs:element name="DTMOD" type="xs:dateTime"/>
                   <xs:element name="AV_ACTIVITY" type="xs:string"/>
                   <xs:element name="PRECIP_AM" type="PRECIP_TYPE"/>
                   <xs:element name="PRECIP_PM" type="PRECIP_TYPE"/>
                   <xs:element name="FO_REMARK" type="xs:string"/>
                   <xs:element name="NIL_NEW" type="xs:boolean"/>
                   <xs:element name="PERCENT_OBS" type="xs:unsignedShort"/>
                   <xs:element name="HS" type="xs:integer"/>
                   <xs:element name="W_DIR_AM" type="WIND_DIRECTION_TYPE"/>
                   <xs:element name="W_DIR_PM" type="WIND_DIRECTION_TYPE"/>
                   <xs:element name="SFC2" type="SURFACE_TYPE"/>
                   <xs:element name="SFC1" type="SURFACE_TYPE"/>
                   <xs:element name="XPORT_DIR_AM" type="TRANSPORT_DIRECTION_TYPE"/>
                   <xs:element name="XPORT_DIR_PM" type="TRANSPORT_DIRECTION_TYPE"/>
              </xs:sequence>
              <xs:attribute name="FO_ID" type="SB_ID_TYPE" use="required"/>
         </xs:complexType>
         <xs:complexType name="NOTABLE_TYPE">
              <xs:annotation>
                   <xs:documentation>Data concerning a notable event</xs:documentation>
              </xs:annotation>
              <xs:sequence>
                   <xs:element name="AV_ID" type="SB_ID_TYPE" minOccurs="0"/>
                   <xs:element name="PARTY_SIZE" type="xs:unsignedShort"/>
                   <xs:element name="CAUGHT" type="xs:unsignedShort"/>
                   <xs:element name="PARTLY_BURIED" type="xs:unsignedShort"/>
                   <xs:element name="BURIED" type="xs:unsignedShort"/>
                   <xs:element name="INJURED" type="xs:unsignedShort"/>
                   <xs:element name="FATALITIES" type="xs:unsignedShort"/>
                   <xs:element name="REMARK" type="xs:string"/>
                   <xs:element name="DTMOD" type="xs:dateTime"/>
                   <xs:element name="NTBL_IMG" type="xs:hexBinary" minOccurs="0"/>
                   <xs:element name="NTBL_TIME" type="xs:time"/>
                   <xs:element name="NTBL_DATE" type="xs:date"/>
                   <xs:element name="MAIN_IMGLINK_ID" type="SB_ID_TYPE" minOccurs="0"/>
                   <xs:element name="NTBL_GEO_ID" type="SB_ID_TYPE" minOccurs="0"/>
              </xs:sequence>
              <xs:attribute name="NOTABLE_ID" type="SB_ID_TYPE" use="required"/>
         </xs:complexType>
         <xs:complexType name="AV_TYPE">
              <xs:annotation>
                   <xs:documentation>Data concerning a single avalanche</xs:documentation>
              </xs:annotation>
              <xs:sequence>
                   <xs:element name="LENGTH_MIN" type="xs:unsignedInt"/>
                   <xs:element name="LENGTH_MAX" type="xs:unsignedInt"/>
                   <xs:element name="REMARK" type="xs:string"/>
                   <xs:element name="LWC">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="Dry"/>
                                  <xs:enumeration value="Moist"/>
                                  <xs:enumeration value="Wet"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="AV_SIZE">
                        <xs:simpleType>
                             <xs:restriction base="xs:float">
                                  <xs:minInclusive value="1"/>
                                  <xs:maxInclusive value="5"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="SKIABLE">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="Y"/>
                                  <xs:enumeration value="N"/>
                                  <xs:enumeration value="N-Y"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="GEO_ID" type="SB_ID_TYPE" minOccurs="0"/>
                   <xs:element name="THICK_MIN" type="xs:unsignedInt"/>
                   <xs:element name="NUM">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:pattern value="[0-9]*"/>
                                  <xs:pattern value="Sev"/>
                                  <xs:pattern value="Num"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="WIDTH_MIN" type="xs:unsignedInt"/>
                   <xs:element name="WIDTH_MAX" type="xs:unsignedInt"/>
                   <xs:element name="MAIN_IMGLINK_ID" type="SB_ID_TYPE" minOccurs="0"/>
                   <xs:element name="THICK_MAX" type="xs:unsignedInt"/>
                   <xs:element name="THICK_MIN" type="xs:unsignedInt"/>
                   <xs:element name="DTMOD" type="xs:dateTime"/>
                   <xs:element name="TYPE">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="Slab"/>
                                  <xs:enumeration value="Loose"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="AV_DATE" type="xs:date"/>
                   <xs:element name="AV_TIME" type="xs:time"/>
                   <xs:element name="AV_TRIGGER">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:maxLength value="15"/>
                                  <xs:pattern value="N[aci].*|S[acry].*|H[acry].*|X[hcryer].*"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="BEDSFC_FORMANDSIZE">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="RG"/>
                                  <xs:enumeration value="DF"/>
                                  <xs:enumeration value="CR"/>
                                  <xs:enumeration value="IM"/>
                                  <xs:enumeration value="WG"/>
                                  <xs:enumeration value="FC"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="AV_LEVEL">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="Old"/>
                                  <xs:enumeration value="Storm"/>
                                  <xs:enumeration value="Ground"/>
                                  <xs:enumeration value="Glacier"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="ASPECT">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="N"/>
                                  <xs:enumeration value="NE"/>
                                  <xs:enumeration value="E"/>
                                  <xs:enumeration value="SE"/>
                                  <xs:enumeration value="S"/>
                                  <xs:enumeration value="SW"/>
                                  <xs:enumeration value="W"/>
                                  <xs:enumeration value="NW"/>
                                  <xs:enumeration value="All"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="WKLYR_DATE"/>
                   <xs:element name="TIMERANGE" type="xs:unsignedInt"/>
                   <xs:element name="INCLINE">
                        <xs:simpleType>
                             <xs:restriction base="xs:unsignedInt">
                                  <xs:minInclusive value="0"/>
                                  <xs:maxInclusive value="180"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="ELEV_MIN" type="xs:unsignedInt"/>
                   <xs:element name="ELEV_MAX" type="xs:unsignedInt"/>
                   <xs:element name="AV_CUTBLOCK">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:maxLength value="1"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="LOC_DESCRIPTION">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:maxLength value="30"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="WKLYR_FORMANDSIZE">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="PP"/>
                                  <xs:enumeration value="SH"/>
                                  <xs:enumeration value="FC"/>
                                  <xs:enumeration value="DF"/>
                                  <xs:enumeration value="WG"/>
                                  <xs:enumeration value="DH"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="NTBL" type="xs:boolean"/>
              </xs:sequence>
              <xs:attribute name="AV_ID" type="SB_ID_TYPE" use="required"/>
         </xs:complexType>
         <xs:simpleType name="SB_ID_TYPE">
              <xs:annotation>
                   <xs:documentation>Reference type</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:maxLength value="10"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="AREA_ABBREV_TYPE">
              <xs:restriction base="xs:string">
                   <xs:enumeration value="AD"/>
                   <xs:enumeration value="BB"/>
                   <xs:enumeration value="BU"/>
                   <xs:enumeration value="BA"/>
                   <xs:enumeration value="CA"/>
                   <xs:enumeration value="GL"/>
                   <xs:enumeration value="GO"/>
                   <xs:enumeration value="MO"/>
                   <xs:enumeration value="MB"/>
                   <xs:enumeration value="RE"/>
                   <xs:enumeration value="KO"/>
                   <xs:enumeration value="VA"/>
                   <xs:enumeration value="ST"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="SKY_TYPE">
              <xs:annotation>
                   <xs:documentation>Restricts choices of sky observations</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="CLR"/>
                   <xs:enumeration value="OVC"/>
                   <xs:enumeration value="BKN"/>
                   <xs:enumeration value="SCT"/>
                   <xs:enumeration value="X"/>
                   <xs:enumeration value=""/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="PRECIP_TYPE">
              <xs:annotation>
                   <xs:documentation>Restricts choices of precipation observations</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="NIL"/>
                   <xs:enumeration value="S-1"/>
                   <xs:enumeration value="S1"/>
                   <xs:enumeration value="S2"/>
                   <xs:enumeration value="S3"/>
                   <xs:enumeration value="S4"/>
                   <xs:enumeration value="RV"/>
                   <xs:enumeration value="RL"/>
                   <xs:enumeration value="RH"/>
                   <xs:enumeration value="RS"/>
                   <xs:enumeration value="G"/>
                   <xs:enumeration value="ZR"/>
                   <xs:enumeration value=""/>
                   <xs:enumeration value="RM"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="WIND_SPEED_TYPE">
              <xs:annotation>
                   <xs:documentation>Restricts the choices of wind speed observations</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="C"/>
                   <xs:enumeration value="L"/>
                   <xs:enumeration value="M"/>
                   <xs:enumeration value="S"/>
                   <xs:enumeration value="X"/>
                   <xs:enumeration value=""/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="TRANSPORT_DIRECTION_TYPE">
              <xs:annotation>
                   <xs:documentation>Enumeration of directions</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="N"/>
                   <xs:enumeration value="NE"/>
                   <xs:enumeration value="E"/>
                   <xs:enumeration value="SE"/>
                   <xs:enumeration value="S"/>
                   <xs:enumeration value="SW"/>
                   <xs:enumeration value="W"/>
                   <xs:enumeration value="NW"/>
                   <xs:enumeration value=""/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="TRANSPORT_TYPE">
              <xs:annotation>
                   <xs:documentation>Restricts the choices of transport observations</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="Nil"/>
                   <xs:enumeration value="Prv"/>
                   <xs:enumeration value="M"/>
                   <xs:enumeration value="I"/>
                   <xs:enumeration value="U"/>
                   <xs:enumeration value=""/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="SURFACE_TYPE">
              <xs:annotation>
                   <xs:documentation>Restricts the choices of the surface descriptions</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="PP"/>
                   <xs:enumeration value="DF"/>
                   <xs:enumeration value="RG"/>
                   <xs:enumeration value="FC"/>
                   <xs:enumeration value="DH"/>
                   <xs:enumeration value="WG"/>
                   <xs:enumeration value="SH"/>
                   <xs:enumeration value="IM"/>
                   <xs:enumeration value="CR"/>
                   <xs:enumeration value=""/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="WIND_DIRECTION_TYPE">
              <xs:annotation>
                   <xs:documentation>Restricts possible observed wind directions</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="N"/>
                   <xs:enumeration value="NE"/>
                   <xs:enumeration value="E"/>
                   <xs:enumeration value="SE"/>
                   <xs:enumeration value="S"/>
                   <xs:enumeration value="SW"/>
                   <xs:enumeration value="W"/>
                   <xs:enumeration value="NW"/>
                   <xs:enumeration value="V"/>
                   <xs:enumeration value=""/>
              </xs:restriction>
         </xs:simpleType>
    </xs:schema>

    myhrem, I've just come across exactly the same problem after amemding my schema. Fortunatley I hadn't changed much so it was possible to find out what caused the error. It is the empty enumeration element where value is equal to "" that causes xjc to throw the error.
    I don't know if its right or wrong, in my case I was able to remove the empty element from the xsd.

  • XML parser error while testing web service client using jdeveloper 10.1.2.1

    hi
    I have generated a web service stub/skeleton out of the wsdl file using jdeveloper 10.1.2.1.0. The client will return a complex type result, i.e., it will return an array of elements. When I try to run the client using jdeveloper 10.1.2.10 i am getting the following error:
    E:\oracle\DevSuiteHome_1\jdk\bin\javaw.exe -ojvm -classpath E:\oracle\DevSuiteHome_1\jdev\mywork\Application2\Project2\classes;E:\oracle\DevSuiteHome_1\jdev\lib\jdev-rt.jar;E:\oracle\DevSuiteHome_1\soap\lib\soap.jar;E:\oracle\DevSuiteHome_1\lib\xmlparserv2.jar;E:\oracle\DevSuiteHome_1\jlib\javax-ssl-1_2.jar;E:\oracle\DevSuiteHome_1\jlib\jssl-1_2.jar;E:\oracle\DevSuiteHome_1\j2ee\home\lib\activation.jar;E:\oracle\DevSuiteHome_1\j2ee\home\lib\mail.jar;E:\oracle\DevSuiteHome_1\j2ee\home\lib\http_client.jar;E:\oracle\DevSuiteHome_1\lib\xmlcomp.jar mypackage2.RESSelectionServiceStub
    oracle.xml.parser.v2.XMLElement@11
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLText
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:877)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:903)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:928)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.fromElement(WrappedDocLiteralStub.java:621)
         at mypackage2.RESSelectionServiceStub.selectParticipants(RESSelectionServiceStub.java:112)
         at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:43)
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLText
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:877)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:903)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:928)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.fromElement(WrappedDocLiteralStub.java:621)
         at mypackage2.RESSelectionServiceStub.selectParticipants(RESSelectionServiceStub.java:112)
         at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:43)
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLText
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:877)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:903)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:928)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.fromElement(WrappedDocLiteralStub.java:621)
         at mypackage2.RESSelectionServiceStub.selectParticipants(RESSelectionServiceStub.java:112)
         at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:43)
    [Lmypackage2.ProfiledClaimant;@18
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLText
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:877)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:903)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:928)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.fromElement(WrappedDocLiteralStub.java:621)
         at mypackage2.RESSelectionServiceStub.selectParticipants(RESSelectionServiceStub.java:113)
         at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:43)
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLText
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:877)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:903)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:928)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.fromElement(WrappedDocLiteralStub.java:621)
         at mypackage2.RESSelectionServiceStub.selectParticipants(RESSelectionServiceStub.java:113)
         at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:43)
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLText
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:877)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:903)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:928)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.fromElement(WrappedDocLiteralStub.java:621)
         at mypackage2.RESSelectionServiceStub.selectParticipants(RESSelectionServiceStub.java:113)
         at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:43)
    java.lang.ArrayIndexOutOfBoundsException: 1
         at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:55)
    Process exited with exit code 0.I have googled to see if i can get any solution , i got the following information:
    Cannot Generate a Stub or Skeleton for a WSDL that Uses Certain Types (3912349)
    JDeveloper 10.1.2 only understands a subset of all of the complexTypes that can be defined in a WSDL document. For example, if the following appear in the "types" section of the WSDL, any use of those types will cause JDeveloper to generate a reference to UnknownType in a stub or skeleton:
    •     Restrictions of simpleTypes
    •     complexTypes which define attributes Does that mean that the jdeveloper will not support complex types?Could anybody tell me how to resolve the above said issue? Is there any patch that i can run to resolve the issue?

    Can i use the client generated using jdeveloper 11g to import into the oracle forms 10g, i.e., form builder 10g. Currently this is the version we have in our office.

  • Error in XML Parsing  through Schema doc.

    I know this is not the correct group for XML related queries. I had posted the query in XML forum but could not get any reply. I have been in the forum and know this is very active forum.
    Please help if you can..
    Hi Friends,
    I am trying to validate XML file as per the defined schema document through JAXB parser.
    Following is my xml. schema and java class code.
    XML File*
    <?xml version="1.0"?>
    <notify xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="NotificationDetailsSchema.xsd">
    <notification>
    <alertname>Alert1</alertname>
    <deletable>Y</deletable>
    <descurl>Alert1URL</descurl>
    </notification>
    <notification>
    <alertname>Alert2</alertname>
    <deletable>Y</deletable>
    <descurl>Alert2URL</descurl>
    </notification>
    </notify>
    Schema file_
    <?xml version="1.0" encoding="windows-1252"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xsd:element name="notify">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="notification" maxOccurs="unbounded">
    <xsd:complexType mixed="true">
    <xsd:sequence>
    <xsd:element name="alertname">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="1"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="deletable">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="Y|N"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="descurl">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="1"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Java Class_
    SAXSource source = new SAXSource (xmlInputSource);
    SchemaFactory sf = SchemaFactory.newInstance (XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Schema schema = sf.newSchema(schemaFileObj);
    Validator validator = schema.newValidator ();
    validator.setErrorHandler (new ParserErrorHandler());
    validator.validate (source);
    I tried to execute the validation through stand along java class and it worked correctly.
    However when I added this class into my Fusion web application, I am getting following error.
    org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Alert1'._
    Can you please help me to figure out this problem?
    Edited by: Jaykishan on Jul 20, 2011 10:04 AM

    earlier it was
    org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'USAVER'.anmd now it is
    org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Alert1'.some problem in this Alert1 message is what i guess.. some parsing error.. look closely..
    i guess some of the xml characters are not rendered properly in forum software.. or it may be truncated.. so i believe something wrong which is not visible..

  • Persisting unexplained errors when parsing XML with schema validation

    Hi,
    I am trying to parse an XML file including XML schema validation. When I validate my .xml and .xsd in NetBeans 5.5 beta, I get not error. When I parse my XML in Java, I systematically get the following errors no matter what I try:
    i) Document root element "SQL_STATEMENT_LIST", must match DOCTYPE root "null".
    ii) Document is invalid: no grammar found.
    The code I use is the following:
    try {
    Document document;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating(true);
    factory.setNamespaceAware(true);
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.parse( new File(PathToXml) );
    My XML is:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <!-- Defining the SQL_STATEMENT_LIST element -->
    <xs:element name="SQL_STATEMENT_LIST" type= "SQL_STATEMENT_ITEM"/>
    <xs:complexType name="SQL_STATEMENT_ITEM">
    <xs:sequence>
    <xs:element name="SQL_SCRIPT" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <!-- Defining simple type ApplicationType with 3 possible values -->
    <xs:simpleType name="ApplicationType">
    <xs:restriction base="xs:string">
    <xs:enumeration value="DawningStreams"/>
    <xs:enumeration value="BaseResilience"/>
    <xs:enumeration value="BackBone"/>
    </xs:restriction>
    </xs:simpleType>
    <!-- Defining the SQL_SCRIPT element -->
    <xs:element name="SQL_SCRIPT" type= "SQL_STATEMENT"/>
    <xs:complexType name="SQL_STATEMENT">
    <xs:sequence>
    <xs:element name="NAME" type="xs:string"/>
    <xs:element name="TYPE" type="xs:string"/>
    <xs:element name="APPLICATION" type="ApplicationType"/>
    <xs:element name="SCRIPT" type="xs:string"/>
    <!-- Making sure the following element can occurs any number of times -->
    <xs:element name="FOLLOWS" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    and my XML is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    Document : SQLStatements.xml
    Created on : 1 juillet 2006, 15:08
    Author : J�r�me Verstrynge
    Description:
    Purpose of the document follows.
    -->
    <SQL_STATEMENT_LIST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.dawningstreams.com/XML-Schemas/SQLStatements.xsd">
    <SQL_SCRIPT>
    <NAME>CREATE_PEERS_TABLE</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE CACHED TABLE PEERS (
    PEER_ID           VARCHAR(20) NOT NULL,
    PEER_KNOWN_AS      VARCHAR(30) DEFAULT ' ' ,
    PRIMARY KEY ( PEER_ID )
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>CREATE_COMMUNITIES_TABLE</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE CACHED TABLE COMMUNITIES (
    COMMUNITY_ID VARCHAR(20) NOT NULL,
    COMMUNITY_KNOWN_AS VARCHAR(25) DEFAULT ' ',
    PRIMARY KEY ( COMMUNITY_ID )
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>CREATE_COMMUNITY_MEMBERS_TABLE</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE CACHED TABLE COMMUNITY_MEMBERS (
    COMMUNITY_ID VARCHAR(20) NOT NULL,
    PEER_ID VARCHAR(20) NOT NULL,
    PRIMARY KEY ( COMMUNITY_ID, PEER_ID )
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>DROP_PEER_TABLE</NAME>
    <TYPE>DELETION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    DROP TABLE PEERS IF EXISTS
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>DROP_COMMUNITIES_TABLE</NAME>
    <TYPE>DELETION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    DROP TABLE COMMUNITIES IF EXISTS
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>DROP_COMMUNITY_MEMBERS_TABLE</NAME>
    <TYPE>DELETION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    DROP TABLE COMMUNITY_MEMBERS IF EXISTS
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>CREATE_COMMUNITY_MEMBERS_VIEW</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE VIEW COMMUNITY_MEMBERS_VW AS
    SELECT P.PEER_ID, P.PEER_KNOWN_AS, C.COMMUNITY_ID, C.COMMUNITY_KNOWN_AS
    FROM PEERS P, COMMUNITIES C, COMMUNITY_MEMBERS CM
    WHERE P.PEER_ID = CM.PEER_ID
    AND C.COMMUNITY_ID = CM.COMMUNITY_ID
    </SCRIPT>
    <FOLLOWS>CREATE_PEERS_TABLE</FOLLOWS>
    <FOLLOWS>CREATE_COMMUNITIES_TABLE</FOLLOWS>
    </SQL_SCRIPT>
    </SQL_STATEMENT_LIST>
    Any ideas? Thanks !!!
    J�r�me Verstrynge

    Hi,
    I found the solution in the following post:
    Validate xml with DOM - no grammar found
    Sep 17, 2003 10:58 AM
    The solution is to add a line of code when parsing:
    try {
    Document document;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating(true);
    factory.setNamespaceAware(true);
    factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.parse( new File(PathToXml) );
    The errors are gone !!!
    J�r�me Verstrynge

  • Problem in parsing a particular XML file.

    Hello, I have an XML file like this:
    <eGov_IT:Intestazione xmlns:eGov_IT="http://www.cnipa.it/schemas/2003/eGovIT/Busta1_0/" xmlns:SOAP_ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cnipa.it/schemas/2003/eGovIT/Busta1_0/
    E:\Progetti\EchoPorte\sviluppo\WEBCON~1\WEB-INF\risorse\Messaggio.xsd">
    <eGov_IT:IntestazioneMessaggio xmlns:eGov_IT="http://www.cnipa.it/schemas/2003/eGovIT/Busta1_0/">
    <eGov_IT:Collaborazione>PortaDelegata_PortaDiDominio_0000001_2007-10-05_12:26</eGov_IT:Collaborazione>
    <eGov_IT:Identificatore>PortaDelegata_PortaDiDominio_0000002_2007-10-05_12:26</eGov_IT:Identificatore>
    </eGov_IT:IntestazioneMessaggio>
    As you can see there are 2 elements in which the values are really similar. In fact in the Schema we use they have to match the same regular expression; here's the extract from my schema.
    <xsd:element name="Collaborazione" type="IdentificatoreType"/>
    <xsd:element name="Identificatore" type="IdentificatoreType"/>
    <xsd:simpleType name="IdentificatoreType">
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="[\w]+_[\w]+_\d{7}_\d{4}\-\d{2}\-\d{2}_\d{2}:\d{2}"/>
    </xsd:restriction>
    </xsd:simpleType>
    I can CORRECTLY validate this expression using this code:
    public void validate (String doc, String schema) throws SAXParseException, SAXException
    try
    SchemaFactory schemaFactory = SchemaFactory.newInstance( XMLConstants.W3C_XML_SCHEMA_NS_URI );
    Schema schemaXSD = schemaFactory.newSchema( new File ( schema ) );
    Validator validator = schemaXSD.newValidator();
    DocumentBuilderFactory.newInstance().newDocumentBuilder();
    ByteArrayInputStream baisDoc = new ByteArrayInputStream(doc.getBytes());
    Document document = parser.parse(baisDoc);
    validator.validate( new DOMSource( document ) );
    And, in case the validation fails, I correctly gain a SAXParseException.
    The problem is that I can't understand if, in this case, the error is in the "Collaborazione" element or in the "Identificatore" element, because I get the following detailed message from the Exception:
    "cvc-pattern-valid: Value '' is not facet-valid with respect to pattern '[\w]+_[\w]+_\d{7}_\d{4}\-\d{2}\-\d{2}_\d{2}:\d{2}' for type 'IdentificatoreType'."
    How can I get more detailed informations about this error?
    Thanks everybody,
    Cris

    Check here:
    http://forum.java.sun.com/thread.jspa?threadID=5223284
    This is the correct post with my problem.
    Thanks!
    Cristiano

  • DOM Parsing problems... (newbie in trouble)

    I am trying to get a DOM Parser contruct a DOM Object from an XML file... I am having trouble getting the code validate against my XML Schema: <p>
    <?xml version="1.0" encoding="UTF-8"?> <
    <!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Fedro E. Ponce de Leon Luengas (ASI Consulores, S.A. de C.V.) -->
    <xs:schema targetNamespace="http://palaciohierro.com.mx/mde/expe" xmlns="http://palaciohierro.com.mx/mde/expe" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="existencia-peticion" type="epType">
    <xs:annotation>
    <xs:documentation>Peticion de existencias para la Mesa de Eventos Web</xs:documentation>
    </xs:annotation>
    </xs:element>
    <xs:complexType name="epType">
    <xs:annotation>
    <xs:documentation>peticion de existencia</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="articulo" type="articuloType" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="articuloType">
    <xs:annotation>
    <xs:documentation>articulo</xs:documentation>
    </xs:annotation>
    <xs:attribute name="id_articulo" type="IdentifierType" use="required"/>
    <xs:attribute name="sku" type="skuType" use="required"/>
    </xs:complexType>
    <xs:simpleType name="IdentifierType">
    <xs:annotation>
    <xs:documentation>identificador</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:long">
    <xs:minInclusive value="0"/>
    <xs:maxInclusive value="999999999999999999"/>
    <xs:totalDigits value="22"/>
    <xs:fractionDigits value="0"/>
    </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="skuType">
    <xs:annotation>
    <xs:documentation>sku</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
    <xs:minLength value="11"/>
    <xs:maxLength value="20"/>
    <xs:pattern value="\d{11,20}"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:schema>
    taking this sample XML file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--Sample XML file generated by XML Spy v4.4 U (http://www.xmlspy.com)-->
    <expe:existencia-peticion xmlns:expe="http://palaciohierro.com.mx/mde/expe" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://palaciohierro.com.mx/mde/expe
    C:\oracle\Oracle9iDS\jdev\mywork\testCompra\MesaEventos\src\ph\mesaeventos\schema\existencia-peticion.xsd">
    <articulo id_articulo="450" sku="12245110021"/>
    <articulo id_articulo="15" sku="45421213223"/>
    <articulo id_articulo="12" sku="121131231858"/>
    <articulo id_articulo="74" sku="4101031234545"/>
    <articulo id_articulo="871" sku="022324563212"/>
    </expe:existencia-peticion>
    with the following code:
    public Document getDOM( String existenciapeticionXML ) throws Exception
    // Obtain parser instance and parse the document
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating( true );
    factory.setNamespaceAware( true );
    DocumentBuilder builder = factory.newDocumentBuilder();
    byte buf[] = existenciapeticionXML.getBytes();
    ByteArrayInputStream stream = new ByteArrayInputStream( buf );
    Document doc = builder.parse( stream );
    return doc;
    I am getting the following Exception:
    oracle.xml.parser.v2.XMLParseException: Element 'expe:existencia-peticion' used but not declared.
    void oracle.xml.parser.v2.XMLError.flushErrors()
    XMLError.java:145
    void oracle.xml.parser.v2.NonValidatingParser.parseDocument()
    NonValidatingParser.java:263
    void oracle.xml.parser.v2.XMLParser.parse(org.xml.sax.InputSource)
    XMLParser.java:141
    org.w3c.dom.Document oracle.xml.jaxp.JXDocumentBuilder.parse(org.xml.sax.InputSource)
    JXDocumentBuilder.java:96
    org.w3c.dom.Document javax.xml.parsers.DocumentBuilder.parse(java.io.InputStream)
    DocumentBuilder.java:119
    org.w3c.dom.Document ph.mesaeventos.mesa.xml.ExistenciaPeticionDOM.getDOM(java.lang.String)
    ExistenciaPeticionDOM.java:26
    void ph.mesaeventos.mesa.xml.Test.main(java.lang.String[])
    Test.java:38
    What am I doing wrong? I am clueless... please help!
    Thanks,

    I finally managed to make it work.... well quite!
    Having an XML Doc like this:
    <?xml version="1.0"?>
    <existencia-peticion xmlns = "http://palaciohierro.com.mx/mde/expe">
    <articulo id_articulo="10" sku="00000000010"></articulo>
    <articulo id_articulo="11" sku="00000000011"></articulo>
    <articulo id_articulo="12" sku="00000000012"></articulo>
    <articulo id_articulo="13" sku="00000000013"></articulo>
    </existencia-peticion>
    with an schema like:
    <?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://palaciohierro.com.mx/mde/expe"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:expe="http://palaciohierro.com.mx/mde/expe"
    elementFormDefault="qualified">
    <annotation>
    <documentation xml:lang="es">
    Esquema de peticion de existencias para la Mesa de Eventos Web
    Copyright 2002 palaciodehierro.com.mx. Todos los derechos reservados.
    </documentation>
    </annotation>
    <element name="existencia-peticion" type="expe:epType">
    <unique name="id_articulo">
    <selector xpath="expe:articulo"/>
    <field xpath="@id_articulo"/>
    </unique>
    <unique name="sku">
    <selector xpath="expe:articulo"/>
    <field xpath="@sku"/>
    </unique>
    </element>
    <complexType name="epType">
    <annotation>
    <documentation>peticion de existencias</documentation>
    </annotation>
    <sequence>
    <element name="articulo" type="expe:articuloType" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    <complexType name="articuloType">
    <annotation>
    <documentation>articulo</documentation>
    </annotation>
    <attribute name="id_articulo" type="expe:IdentifierType" use="required"/>
    <attribute name="sku" type="expe:skuType" use="required"/>
    </complexType>
    <simpleType name="IdentifierType">
    <annotation>
    <documentation>identificador</documentation>
    </annotation>
    <restriction base="long">
    <minInclusive value="0"/>
    <maxInclusive value="999999999999999999"/>
    <totalDigits value="18"/>
    <fractionDigits value="0"/>
    </restriction>
    </simpleType>
    <simpleType name="skuType">
    <annotation>
    <documentation>sku</documentation>
    </annotation>
    <restriction base="string">
    <minLength value="11"/>
    <maxLength value="20"/>
    <pattern value="\d{11,20}"/>
    </restriction>
    </simpleType>
    </schema>
    and with the following class:
    public class XMLValidator
    // Instancia singleton
    private static XMLValidator validator = new XMLValidator();
    * Constructor privado
    private XMLValidator()
    * Mitodo para acceder a la instancia Singleton de XMLValidator
    * @regresa <b>XMLValidator</b> La instancia de esta clase
    public static XMLValidator getValidator()
    return validator;
    public boolean validaEsquema( String docXML, String esquema ) throws Exception
    // Establece el URL correcto para el documento de esquema
    XSDBuilder builder = new XSDBuilder();
    URL url = createURL( esquema );
    // Construye el objecto del Schema XML
    try
    XMLSchema schemadoc = (XMLSchema)builder.build( url );
    // Valida el documento XML procesandolo contra el esquema
    return validate( docXML, schemadoc );
    catch( XMLParseException e )
    throw new Exception( "Error al analizar el documento XML: " + e.getMessage() );
    catch( Exception e )
    throw new Exception( "No es posible validar con el esquema: " + e.getMessage() );
    private static boolean validate(String docXML, XMLSchema schemadoc) throws Exception
    boolean isValid = false;
    // Crea un objeto Parser DOM de XML
    DOMParser dp = new DOMParser();
    // Establece el objeto Schema XML para la validacion
    dp.setXMLSchema( schemadoc );
    dp.setValidationMode( XMLParser.SCHEMA_VALIDATION );
    dp.setPreserveWhitespace( true );
    // Establece la salida de errores
    dp.setErrorStream( System.out );
    // Recupera los datos del documento XML en un objeto InputStream
    byte[] docbytes = docXML.getBytes();
    ByteArrayInputStream in = new ByteArrayInputStream( docbytes );
    // Parsea el documento y validalo contra el esquema
    try
    dp.parse( in );
    isValid = true;
    catch( Exception e )
    // Devuelve el documento XML DOM construido durante el parseo
    return isValid;
    I am able to validate when invoking with the XML and schemas in the parameters...
    Problem is that I have to include the attribute xmlns = "http://palaciohierro.com.mx/mde/expe" in my XML doc.
    What I really need is to be able to validate de XML doc against a stablished schema, when the XML doc does not include the
    xmlns attribute.

  • JAXB 1.3 can't parse W3 SOAP 2003-05 envelope XML schema

    Hello,
    I was trying to use JAXB to parse the MMAP schema from the SMS Forum
    (http://www.smsforum.net/schemas/mmap/v1.0/mmap.xsd). I finally
    tracked it down to XJC choking on the included SOAP envelope schema's
    use of the xml:lang attribute for a tag called reasontext. Here's the
    pared-down test case:
    C:\java\src\baz>%JWSDP_HOME%\jaxb\bin\xjc.bat http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd
    %JWSDP_HOME%\jaxb\bin\xjc.bat http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd
    parsing a schema...
    [ERROR] src-resolve: Cannot resolve the name 'xml:lang' to a(n) attribute declaration component.
      line 97 of soap-envelope.xsd
    [ERROR] src-ct.0.1: Complex Type Definition Representation Error for type 'reasontext'.  Element 'attribute' is invalid, misplaced, or occurs too often.
      line 97 of soap-envelope.xsd
    Failed to parse a schema.
    C:\java\src\baz>I believe that the relevant portions of the schemas and namespaces in
    question are:
    http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd
    <xs:complexType name="reasontext">
    <xs:simpleContent>
    <xs:extension base="xs:string">
    <xs:attribute ref="xml:lang" use="required" />
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>http://www.w3.org/2001/XMLSchema.xsd
    <xs:complexType name="attribute" mixed="false">
    <xs:complexContent>
    <xs:extension base="xs:annotated">
    <xs:sequence>
    <xs:element name="simpleType" minOccurs="0" type="xs:localSimpleType" />
    </xs:sequence>
    <xs:attributeGroup ref="xs:defRef" />
    <xs:attribute name="type" type="xs:QName" />
    <xs:attribute name="use" use="optional" default="optional">
    <xs:simpleType>
    <xs:restriction base="xs:NMTOKEN">
    <xs:enumeration value="prohibited" />
    <xs:enumeration value="optional" />
    <xs:enumeration value="required" />
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="default" type="xs:string" />
    <xs:attribute name="fixed" type="xs:string" />
    <xs:attribute name="form" type="xs:formChoice" />
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>http://www.w3.org/2001/XMLSchema.xsd
    <xs:attributeGroup name="defRef">
    <xs:annotation>
    <xs:documentation>for element, group and attributeGroup, which both define and reference</xs:documentation>
    </xs:annotation>
    <xs:attribute name="name" type="xs:NCName" />
    <xs:attribute name="ref" type="xs:QName" />
    </xs:attributeGroup>http://www.w3.org/XML/1998/namespace
    The namespace whose name is http://www.w3.org/XML/1998/namespace is
    bound by definition to the prefix xml: according to Namespaces in XML,
    W3C Recommendation 14 Jan 1999. Note that unlike all other XML
    namespaces, both the name and the prefix are specified; i.e., if you
    want XML 1.0 processors to recognize this namespace, you must use the
    reserved prefix xml:.
    xml:lang and xml:space
    As of the last update of this document, the XML 1.0 Specification
    defines two attribute names in this namespace:
    xml:lang
    Designed for identifying the human language used in the scope of the
    element to which it's attached.
    .I'm no XML schema expert, but it looks to me like "name" and "ref"
    are both valid attributes for an <xs:attribute> tag and that the XML
    namespace standard requires XML processors to recognize the xml:lang
    attribute. Hence, this appears to me to be a bug in JAXB.
    A secondary bug is that the original error message left the name of
    the offending included schema blank:
    C:\java\src\foo>d:\java\jwsdp\jwsdp-1.3\jaxb\bin\xjc.bat http://www.smsforum.net/schemas/mmap/v1.0/mmap.xsd
    parsing a schema...
    [ERROR] src-resolve: Cannot resolve the name 'xml:lang' to a(n) attribute declaration component.
      line 97 of
    [ERROR] src-ct.0.1: Complex Type Definition Representation Error for type 'reasontext'.  Element 'attribute' is invalid, misplaced, or occurs too often.
      line 97 of
    Failed to parse a schema.
    C:\java\src\foo>In case it helps with problem diagnosis, I'm running with J2SDK 1.4.2
    and have copied the endorsed jar files into the JRE lib as instructured
    with JAXB:
    C:\java\src\baz>java -version
    java -version
    java version "1.4.2"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
    Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
    C:\java\src\baz>dir %JAVA_HOME%\jre\lib\endorsed
    dir %JAVA_HOME%\jre\lib\endorsed
    Volume in drive D has no label.
    Volume Serial Number is 70AE-6E52
    Directory of D:\java\j2se\j2sdk1.4.2\jre\lib\endorsed
    03/31/2004  09:41 AM    <DIR>          .
    03/31/2004  09:41 AM    <DIR>          ..
    03/29/2004  01:28 PM            56,619 dom.jar
    03/29/2004  01:28 PM            60,963 sax.jar
    03/29/2004  01:28 PM         2,823,241 xalan.jar
    03/29/2004  01:28 PM         2,667,618 xercesImpl.jar
    10/10/2003  06:36 PM         1,379,810 xsltc.jar
                   6 File(s)      6,989,573 bytes
                   2 Dir(s)   7,889,731,584 bytes free
    C:\java\src\baz>I'm quite interested in the resolution of this issue as I'm stopped in
    my tracks on progress here. Help with resolution, whether in JAXB or
    my usage of it, will be much appreciated. I did a search of existing
    issues but didn't notice a duplicate. Thanks in advance.

    I have also come across a similar problem with validating an xml file with an xml:lang attribute. It seems to be common across the schema validation and dtd validation. I get the following error with both schema and dtd validation:
    Validation Error Msg (0): unexpected attribute "xml:lang"
    Validation Error Location (0): FreeFormText
    The test file extract looks like this:
    <FreeFormText xml:lang="EN">Pelle</FreeFormText>
    The schema defines the node as:
    <xs:complexType name="FreeFormText">
              <xs:simpleContent>
                   <xs:extension base="FreeFormTextType">
                        <xs:attribute name="lang" type="xs:language"/>
                   </xs:extension>
              </xs:simpleContent>
    </xs:complexType>
    and the dtd defines the node as:
    <!ELEMENT FreeFormText
         (#PCDATA)>
    <!ATTLIST FreeFormText xml:lang CDATA #IMPLIED >
    This looks like a bug in JAXB to me aswell. Any help on it would be much appreciated as i am also stuck.

  • SQL*Loader problem - not efficient, parsing error for big xml files

    Hi Experts,
    First of all, I would like to store xml files in object relation way. Therefore I created a schema and a table for it (see above).
    I wants to propagate it (by using generated xml files), hence I created a control file for sql loader (see above).
    I have two problems for it.
    1, It takes a lot of time. It means I can upload a ~80MB file in 2 hours and a half.
    2, At bigger files, I got the following error messages (OCI-31011: XML parsing failed OCI-19202: Error occurred in XML processing LPX-00243: element attribute value must be enclosed in quotes). It is quite interesting because my xml file is generated and I could generated and uploaded the first and second half of the file.
    Can you help me to solve these problems?
    Thanks,
    Adam
    Control file
    UNRECOVERABLE
    LOAD DATA
    CHARACTERSET UTF8
    INFILE *
    APPEND
    INTO TABLE coll_xml_objrel
    XMLTYPE(xml)
    FIELDS
    ident constant 2
    ,file_name filler char(100)
    ,xml LOBFILE (file_name) TERMINATED BY EOF
    BEGINDATA
    generated1000x10000.xml
    Sql Loader command
    sqlldr.exe username/password@//localhost:1521/SID control='loader.ctl' log='loadr.log' direct=true
    Schema
    <?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://www.something.com/shema/simple_searches" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.something.com/shema/simple_searches">
        <element name="searches" type="tns:searches_type"></element>
        <element name="search" type="tns:search_type"></element>
        <element name="results" type="tns:results_type"></element>
        <element name="result" type="tns:result_type"></element>
        <complexType name="searches_type">
            <sequence>
                <element ref="tns:search" maxOccurs="unbounded"></element>
            </sequence>
        </complexType>
        <complexType name="search_type">
            <sequence>
                <element ref="tns:results"></element>
            </sequence>
            <attribute ref="tns:id" use="required"></attribute>
            <attribute ref="tns:type" use="required"></attribute>
        </complexType>
        <complexType name="results_type">
            <sequence maxOccurs="unbounded">
                <element ref="tns:result"></element>
            </sequence>
        </complexType>
        <complexType name="result_type">
            <attribute ref="tns:id" use="required"></attribute>
        </complexType>
        <simpleType name="type_type">
            <restriction base="string">
                <enumeration value="value1"></enumeration>
                <enumeration value="value2"></enumeration>
            </restriction>
        </simpleType>
        <attribute name="type" type="tns:type_type"></attribute>
        <attribute name="id" type="string"></attribute>
    </schema>
    Create table
    create table coll_xml_objrel
    ident Number(20) primary key,
    xml xmltype)
    Xmltype column xml
    store as object relational
    xmlschema "http://www.something.com/schema/simple_searches.xsd"
    Element "searches";

    Hi Odie_63,
    Thanks for your answer.
    I will post this question in the XML DB forum too (edit: I realized that you have done it. Thanks for it).
    1, Version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    2, see above
    3, I have registered my schema with using dbms_xmlschema.registerSchema function.
    Cheers,
    Adam
    XML generator:
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import javax.xml.stream.XMLOutputFactory;
    import javax.xml.stream.XMLStreamException;
    import javax.xml.stream.XMLStreamWriter;
    public class mainGenerator {
        public static void main(String[] args) throws FileNotFoundException, XMLStreamException {
            // TODO Auto-generated method stub
            final long numberOfSearches = 500;
            final long numberOfResults = 10000;
            XMLOutputFactory xof = XMLOutputFactory.newFactory();
            XMLStreamWriter writer = xof.createXMLStreamWriter(new FileOutputStream("C:\\Working\\generated500x10000.xml"));
            writer.writeStartDocument();
            writer.writeStartElement("tns","searches", "http://www.something.com/schema/simple_searches");
            writer.writeNamespace("tns", "http://www.something.com/schema/simple_searches");
            for (long i = 0; i < numberOfSearches; i++){
                Long help = new Long(i);
                writer.writeStartElement("tns","search", "http://www.something.com/schema/simple_searches);
                writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "type", "value1");
                writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "id", help.toString());
                writer.writeStartElement("tns","results", "http://www.something.com/schema/simple_searches");
                for (long j = 0; j < numberOfResults; j++){
                    writer.writeStartElement("tns","result", "http://www.something.com/schema/simple_searches");
                    Long helper = new Long(i*numberOfResults+j);
                    writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "id", helper.toString());
                    writer.writeEndElement();
                writer.writeEndElement();
                writer.writeEndElement();
            writer.writeEndElement();
            writer.writeEndDocument();
            writer.close();
    registerSchema:
    begin
    dbms_xmlschema.registerSchema(
    'http://www.something.com/schema/simple_searches',
    '<?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://www.something.com/schema/simple_searches" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.something.com/schema/simple_searches">
        <element name="searches" type="tns:searches_type"></element>
        <element name="search" type="tns:search_type"></element>
        <element name="results" type="tns:results_type"></element>
        <element name="result" type="tns:result_type"></element>
        <complexType name="searches_type">
            <sequence>
                <element ref="tns:search" maxOccurs="unbounded"></element>
            </sequence>
        </complexType>
        <complexType name="search_type">
            <sequence>
                <element ref="tns:results"></element>
            </sequence>
            <attribute ref="tns:id" use="required"></attribute>
            <attribute ref="tns:type" use="required"></attribute>
        </complexType>
        <complexType name="results_type">
            <sequence maxOccurs="unbounded">
                <element ref="tns:result"></element>
            </sequence>
        </complexType>
        <complexType name="result_type">
            <attribute ref="tns:id" use="required"></attribute>
        </complexType>
        <simpleType name="type_type">
            <restriction base="string">
                <enumeration value="value1"></enumeration>
                <enumeration value="value2"></enumeration>
            </restriction>
        </simpleType>
        <attribute name="type" type="tns:type_type"></attribute>
        <attribute name="id" type="string"></attribute>
    </schema>',
    TRUE, TRUE, FALSE, FALSE);
    end

  • ORA-31011 : Weird case of parsing/validation failure...

    Hello all,
    It seems that when trying to insert into an XMLTYPE schema-bound column I am hitting a validation error that I cannot replicate with either XMLSpy os Stylus Studio.
    Here follow the schemas that are used, and the offending XML :
    envelope-consult.xsd
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:publicid:-:DGTAXUD:GENERAL:ENVELOPE:1.0" xmlns:xml="http://www.w3.org/XML/1998/namespace" targetNamespace="urn:publicid:-:DGTAXUD:GENERAL:ENVELOPE:1.0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="EORI-CONSULT-ENVELOPE-1.0">
         <xs:annotation>
              <xs:documentation>
                   This XML schema can be used by a national application to
                   validate consultation envelopes sent to the EORI
                   CDCO application. It can also be used to validate
                   consultation responses and acknowledgement envelopes
                   sent back by the EORI CDCO application. The number of
                   transactions in an envelope is 5.
                   For a request envelope, each transaction
                   contains a single app.message.
                   For a response envelope, each transaction contains
                   a single status element and a single app.message
                   element.
              </xs:documentation>
         </xs:annotation>
      <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
         <xs:element name="envelope">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="header" type="Header" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element name="transaction" type="Transaction" maxOccurs="5"/>
                   </xs:sequence>
                   <xs:attribute name="id" type="xs:string" use="required"/>
                   <xs:attribute ref="xml:lang" default="en-GB"/>
              </xs:complexType>
         </xs:element>
         <xs:complexType name="AppMessage">
              <xs:sequence>
                   <xs:element ref="abstract.message"/>
              </xs:sequence>
              <xs:attribute name="id" type="xs:string" use="required"/>
         </xs:complexType>
         <xs:complexType name="Binary">
              <xs:simpleContent>
                   <xs:extension base="xs:base64Binary">
                        <xs:attribute name="mime.type" type="xs:string" default="application/octet-stream"/>
                   </xs:extension>
              </xs:simpleContent>
         </xs:complexType>
         <xs:complexType name="BusinessRef">
              <xs:sequence>
                   <xs:element ref="abstract.ref"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="Header">
              <xs:attribute name="name" type="xs:string" use="required"/>
              <xs:attribute name="value" type="xs:string" use="required"/>
         </xs:complexType>
         <xs:complexType name="MMIMessageType">
              <xs:simpleContent>
                   <xs:extension base="xs:string">
                        <xs:attribute ref="xml:lang" default="en-GB"/>
                   </xs:extension>
              </xs:simpleContent>
         </xs:complexType>
         <xs:complexType name="Status">
              <xs:sequence>
                   <xs:element name="mmi.message" type="MMIMessageType" minOccurs="0"/>
                   <xs:element name="status.detail" type="StatusDetail" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>
              <xs:attribute name="category" type="StatusCategory" use="required"/>
              <xs:attribute name="location" type="xs:string" use="required"/>
         </xs:complexType>
         <xs:simpleType name="StatusCategory">
              <xs:restriction base="xs:string">
                   <xs:enumeration value="ok"/>
                   <xs:enumeration value="error"/>
                   <xs:enumeration value="rejected"/>
                   <xs:enumeration value="warning"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:complexType name="StatusDetail">
              <xs:sequence>
                   <xs:element name="business.ref" type="BusinessRef" minOccurs="0"/>
                   <xs:element name="binary" type="Binary" minOccurs="0"/>
                   <xs:element name="mmi.message" type="MMIMessageType" minOccurs="0"/>
              </xs:sequence>
              <xs:attribute name="category" type="StatusDetailCategory" use="required"/>
              <xs:attribute name="location" type="xs:string" use="required"/>
              <xs:attribute name="code" type="xs:NMTOKEN" use="required"/>
         </xs:complexType>
         <xs:simpleType name="StatusDetailCategory">
              <xs:restriction base="xs:string">
                   <xs:enumeration value="error"/>
                   <xs:enumeration value="info"/>
                   <xs:enumeration value="warning"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:complexType name="Transaction">
              <xs:sequence>
                   <xs:element name="header" type="Header" minOccurs="0" maxOccurs="unbounded"/>
                   <xs:element name="status" type="Status" minOccurs="0"/>
                   <xs:element name="app.message" type="AppMessage"/>
              </xs:sequence>
              <xs:attribute name="id" type="xs:string" use="required"/>
         </xs:complexType>
         <xs:element name="abstract.message" abstract="true"/>
         <xs:element name="abstract.ref" abstract="true"/>
    </xs:schema>EORI-consult.xsd
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:envelope="urn:publicid:-:DGTAXUD:GENERAL:ENVELOPE:1.0" xmlns="urn:publicid:-:DGTAXUD:EORI:CONSULT:1.0" targetNamespace="urn:publicid:-:DGTAXUD:EORI:CONSULT:1.0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
         <xs:annotation>
              <xs:documentation>
                   This XML schema contains the definitions of data
                   elements and messages specific to the EORI consult
                   functionality.
              </xs:documentation>
         </xs:annotation>
         <xs:import namespace="urn:publicid:-:DGTAXUD:GENERAL:ENVELOPE:1.0" schemaLocation="envelope-consult.xsd"/>
         <xs:include schemaLocation="EORI-data.xsd"/>
         <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
         <!-- Base types -->
      <xs:simpleType name="Date">
              <xs:annotation>
                   <xs:documentation>Date format</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:pattern value="\d{4}\d{2}\d{2}"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:complexType name="EoriRecord">
              <xs:sequence>
                   <xs:element name="eori.record.ref" type="EoriNumberRef"/>
                   <xs:element name="tc.number.list" type="TcNumberList"/>
                   <xs:element name="economic.operator.details" type="EconomicOperatorDetails"/>
                   <xs:element name="legal.status.list" type="LegalStatusPeriodList"/>
                   <xs:element name="establishment.address.list" type="EstablishmentAddressPeriodList"/>
                   <xs:element name="vat.list" type="VatList"/>
                   <xs:element name="contact.list" type="ContactPeriodList"/>
              </xs:sequence>
         </xs:complexType>     
         <xs:complexType name="EconomicOperatorDetails">
              <xs:sequence>
                   <xs:element name="full.name" type="EOFullName"/>
                   <xs:element name="short.name" type="EOShortName"/>
                   <xs:element name="establishment.date" type="Date" minOccurs="0"/>
                   <xs:element name="person.type.code" type="TypePerson" minOccurs="0"/>
                   <xs:element name="economic.activity.code" type="ActivityCode" minOccurs="0"/>
                   <xs:element name="start.date" type="Date"/>
                   <xs:element name="expiry.date" type="Date" minOccurs="0"/>
                   <xs:element name="publication.ind" type="xs:boolean" minOccurs="0"/>
              </xs:sequence>
         </xs:complexType>     
      <xs:complexType name="ValidityPeriod">
              <xs:sequence>
                   <xs:element name="start.date" type="Date"/>
                   <xs:element name="end.date" type="Date" minOccurs="0"/>
              </xs:sequence>
         </xs:complexType>     
         <xs:complexType name="ContactPeriod">
              <xs:sequence>
                   <xs:element name="contact" type="Contact"/>
                   <xs:element name="validity.period" type="ValidityPeriod"/>
              </xs:sequence>
         </xs:complexType>     
         <xs:complexType name="ContactPeriodList">
              <xs:sequence>
                   <xs:element name="contact" type="ContactPeriod" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>          
         </xs:complexType>
         <xs:complexType name="EstablishmentAddressPeriod">
              <xs:sequence>
                   <xs:element name="establishment.address" type="EstablishmentAddress"/>
                   <xs:element name="validity.period" type="ValidityPeriod"/>
              </xs:sequence>
         </xs:complexType>     
         <xs:complexType name="EstablishmentAddressPeriodList">
              <xs:sequence>
                   <xs:element name="establishment.address" type="EstablishmentAddressPeriod" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>     
         <xs:complexType name="LegalStatusPeriod">
              <xs:sequence>
                   <xs:element name="legal.status" type="LegalStatus"/>
                   <xs:element name="validity.period" type="ValidityPeriod"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="LegalStatusPeriodList">
              <xs:sequence>
                   <xs:element name="legal.status" type="LegalStatusPeriod" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>     
         <xs:complexType name="EoriRecordFull">
              <xs:complexContent>
                   <xs:extension base="EoriRecord">
                        <xs:sequence>
                             <xs:element name="aeo.certificate.lifecycle.list" type="AeoCertificateLifecycleList" minOccurs="0"/>
                        </xs:sequence>
                   </xs:extension>
              </xs:complexContent>
         </xs:complexType>
         <xs:complexType name="AeoCertificateLifecycleList">
              <xs:sequence>
                   <xs:element name="aeo.certificate.lifecycle" type="AeoCertificateLifecycle" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>     
         <xs:complexType name="AeoCertificateLifecycle">
              <xs:sequence>
                   <xs:element name="start.date" type="Date"/>
                   <xs:element name="end.date" type="Date" minOccurs="0"/>
                   <xs:element name="aeo.certificate.ref" type="AeoCertificateNumber" minOccurs="0"/>
              </xs:sequence>
         </xs:complexType>          
         <!-- Consultation messages -->
         <xs:element name="eori.record.snapshot.consultation.request" substitutionGroup="envelope:abstract.message">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="snapshot.request.list" type="EoriRecordSnapshotRequestList"/>
                   </xs:sequence>
                <xs:attribute ref="xml:lang" default="en-GB"/>                              
              </xs:complexType>
         </xs:element>
         <xs:element name="eori.record.full.consultation.request" substitutionGroup="envelope:abstract.message">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="full.request.list" type="EoriRecordFullRequestList"/>
                   </xs:sequence>
                   <xs:attribute ref="xml:lang" default="en-GB"/>               
              </xs:complexType>
         </xs:element>
         <xs:element name="eori.record.snapshot.consultation.response" substitutionGroup="envelope:abstract.message">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="snapshot.response.list" type="EoriRecordSnapshotResponseList"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="eori.record.full.consultation.response" substitutionGroup="envelope:abstract.message">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="full.response.list" type="EoriRecordFullResponseList"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <!-- Acknowledgement business references -->
         <xs:element name="full.request" type="EoriRecordFullRequest" substitutionGroup="envelope:abstract.ref"/>
         <xs:element name="snapshot.request" type="EoriRecordSnapshotRequest" substitutionGroup="envelope:abstract.ref"/>
         <!-- Snapshot: Consultation messages -->
         <xs:complexType name="SnapshotConsultationRequest">
              <xs:sequence>
                   <xs:element name="snapshot.request.list" type="EoriRecordSnapshotRequestList"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="SnapshotConsultationResponse">
              <xs:sequence>
                   <xs:element name="snapshot.response.list" type="EoriRecordSnapshotResponseList"/>
              </xs:sequence>
         </xs:complexType>
         <!-- Full: Consultation messages -->
         <xs:complexType name="FullConsultationRequest">
              <xs:sequence>
                   <xs:element name="full.request.list" type="EoriRecordFullRequestList"/>                              
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="FullConsultationResponse">
              <xs:sequence>
                   <xs:element name="full.response.list" type="EoriRecordFullResponseList"/>
              </xs:sequence>
         </xs:complexType>
         <!-- Snapshot: Message structures -->
         <xs:complexType name="EoriRecordSnapshot">
              <xs:sequence>
                   <xs:element name="eori.record.ref" type="EoriNumberRef"/>
                   <xs:element name="tc.number.list" type="TcNumberList" minOccurs="0"/>
                   <xs:element name="economic.operator.details" type="EconomicOperatorDetails"/>
                   <xs:element name="legal.status" type="LegalStatus" minOccurs="0"/>
                   <xs:element name="establishment.address" type="EstablishmentAddress"/>
                   <xs:element name="vat.list" type="VatList" minOccurs="0"/>
                   <xs:element name="contact" type="Contact" minOccurs="0"/>
                   <xs:element name="aeo.certificate.ref" type="AeoCertificateNumber" minOccurs="0"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="EoriRecordSnapshotRequestList">
              <xs:sequence>
                   <xs:element name="snapshot.request" type="EoriRecordSnapshotRequest" maxOccurs="20"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="EoriRecordSnapshotRequest">
              <xs:sequence>
                   <xs:element name="eori.record.ref" type="EoriNumberRef"/>
                   <xs:element name="applicable.date" type="Date"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="EoriRecordFullRequestList">
              <xs:sequence>
                   <xs:element name="full.request" type="EoriRecordFullRequest" maxOccurs="20"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="EoriRecordFullRequest">
              <xs:sequence>
                   <xs:element name="eori.record.ref" type="EoriNumberRef"/>
                   <xs:element name="consultation.purpose.code" type="ConsultationPurpose" minOccurs="0"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="EoriRecordSnapshotResponseList">
              <xs:sequence>
                   <xs:element name="snapshot.response" type="EoriRecordSnapshotResponse" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="EoriRecordSnapshotResponse">
              <xs:sequence>
                   <xs:element name="eori.record.snapshot" type="EoriRecordSnapshot"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="EoriRecordFullResponseList">
              <xs:sequence>
                   <xs:element name="full.response" type="EoriRecordFullResponse" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="EoriRecordFullResponse">
              <xs:sequence>
                   <xs:element name="eori.record.full" type="EoriRecordFull"/>
              </xs:sequence>
         </xs:complexType>
    </xs:schema>EORI-data.xsd
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
         <xs:annotation>
              <xs:documentation>
                   This XML schema contains the definitions of data
                   elements common to the messages exchanged in the
                   EORI download, upload and consultation
                   functionalities.
              </xs:documentation>
         </xs:annotation>
         <!-- List types -->
         <xs:complexType name="CountryList">
              <xs:sequence>
                   <xs:element name="country" type="Country" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="LegalStatusList">
              <xs:sequence>
                   <xs:element name="legal.status" type="LegalStatus" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="TcNumberList">
              <xs:sequence>
                   <xs:element name="tc.number" type="TcNumberRef" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="VatList">
              <xs:sequence>
                   <xs:element name="vat" type="Vat" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="CertificateInfoList">
              <xs:sequence>
                   <xs:element name="certificate.info" type="CertificateInfo" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>          
         </xs:complexType>     
         <xs:complexType name="ApplicationInfoList">
              <xs:sequence>
                   <xs:element name="application.info" type="ApplicationInfo" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>          
         </xs:complexType>     
         <!-- Complex types -->
         <xs:complexType name="CertificateInfo">
              <xs:sequence>
                   <xs:element name="aeo.certificate.ref" type="AeoCertificateNumber"/>
              </xs:sequence>          
         </xs:complexType>     
         <xs:complexType name="ApplicationInfo">
              <xs:sequence>
                   <xs:element name="aeo.application.ref" type="AeoApplicationNumber"/>
              </xs:sequence>          
         </xs:complexType>     
         <xs:complexType name="AeoCertificateNumber">
              <xs:sequence>
                   <xs:element name="country.code" type="CountryCode"/>
                   <xs:element name="aeo.certificate.type.code" type="AeoCertificateTypeCode"/>
                   <xs:element name="national.number" type="NationalAuthorisationNumber"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="AeoApplicationNumber">
        <xs:sequence>
          <xs:element name="country.code" type="CountryCode"/>
          <xs:element name="national.number" type="ApplicationNumber"/>
        </xs:sequence>
      </xs:complexType>
         <xs:complexType name="Contact">
              <xs:sequence>
                   <xs:element name="phone" type="PhoneNumber" minOccurs="0"/>
                   <xs:element name="fax" type="PhoneNumber" minOccurs="0"/>
                   <xs:element name="email" type="Email" minOccurs="0"/>
                   <xs:element name="name.address" type="NameAddress"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="Country">
              <xs:choice>
                   <xs:element name="country.code" type="CountryCode"/>
                   <xs:element name="country.name" type="CountryName"/>
              </xs:choice>
         </xs:complexType>
         <xs:complexType name="EoriNumberRef">
              <xs:sequence>
                   <xs:element name="country.code" type="CountryCode"/>
                   <xs:element name="national.number" type="EoNationalNumber"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="TcNumberRef">
              <xs:sequence>
                   <xs:element name="country" type="Country"/>
                   <xs:element name="national.number" type="TcNationalNumber"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="EstablishmentAddress">
              <xs:sequence>
                   <xs:element name="language.code" type="LanguageCode"/>
                   <xs:element name="name" type="Name" minOccurs="0"/>
                   <xs:element name="street" type="Street"/>
                   <xs:element name="postcode" type="Postcode" minOccurs="0"/>
                   <xs:element name="city" type="City"/>
                   <xs:element name="country" type="Country"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="LegalStatus">
              <xs:sequence>
                   <xs:element name="language.code" type="LanguageCode"/>
                   <xs:element name="legal.status.description" type="LegalStatusDescription"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="NameAddress">
              <xs:sequence>
                   <xs:element name="language.code" type="LanguageCode"/>
                   <xs:element name="full.name" type="FullName"/>
                   <xs:element name="short.name" type="Name" minOccurs="0"/>
                   <xs:element name="street" type="Street"/>
                   <xs:element name="postcode" type="Postcode" minOccurs="0"/>
                   <xs:element name="city" type="City"/>
                   <xs:element name="country" type="Country"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="Vat">
              <xs:sequence>
                   <xs:element name="country.code" type="CountryCode"/>
                   <xs:element name="number" type="VATNationalNumber"/>
              </xs:sequence>
         </xs:complexType>
         <!-- Simple types -->
         <xs:simpleType name="Accepted">
              <xs:restriction base="xs:int">
                   <xs:pattern value="0|1"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="ActivityCode">
              <xs:restriction base="SingleLineString">
          <xs:length value="4"/>
          <xs:pattern value="[0-9]+"/>   
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="NationalAuthorisationNumber">
              <xs:restriction base="SingleLineString">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="29"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="AeoCertificateTypeCode">
              <xs:restriction base="SingleLineString">
                   <xs:length value="4"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="ApplicationNumber">
             <xs:restriction base="SingleLineString">
               <xs:minLength value="1"/>
               <xs:maxLength value="29"/>
             </xs:restriction>
           </xs:simpleType>
         <xs:simpleType name="City">
              <xs:restriction base="SingleLineString">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="35"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="ConsultationPurpose">
              <xs:restriction base="xs:string">
                   <xs:length value="1"/>
                   <xs:enumeration value="C"/>
                   <xs:enumeration value="Q"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="CountryCode">
              <xs:annotation>
                   <xs:documentation>
                        Country code format
                   </xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:pattern value="[A-Z][A-Z]"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="CountryName">
              <xs:annotation>
                   <xs:documentation>Country name</xs:documentation>
              </xs:annotation>
              <xs:restriction base="SingleLineString">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="30"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="Email">
              <xs:restriction base="SingleLineString">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="70"/>
                   <xs:pattern value="\p{IsBasicLatin}+"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="EoNationalNumber">
              <xs:restriction base="SingleLineString">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="15"/>
                   <xs:pattern value="\p{IsBasicLatin}+"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="TcNationalNumber">
              <xs:restriction base="SingleLineString">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="15"/>
                   <xs:pattern value="\p{IsBasicLatin}+"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="LanguageCode">
              <xs:annotation>
                   <xs:documentation>
                        Language code format
                   </xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:pattern value="[a-z][a-z]"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="LegalStatusDescription">
              <xs:annotation>
                   <xs:documentation>
                        Legal status value
                   </xs:documentation>
              </xs:annotation>
              <xs:restriction base="SingleLineString">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="50"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="EOFullName">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="300"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="EOShortName">
              <xs:restriction base="SingleLineString">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="35"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="PhoneNumber">
              <xs:restriction base="SingleLineString">
                   <xs:minLength value="2"/>
                   <xs:maxLength value="35"/>
                   <xs:pattern value="\+\p{IsBasicLatin}+"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="Postcode">
              <xs:restriction base="SingleLineString">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="9"/>
                   <xs:pattern value="\p{IsBasicLatin}+"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="SingleLineString">
              <xs:annotation>
                   <xs:documentation>
                        Single line string: Avoid presence of \n (new
                        line) and \r (return) characters in the string.
                        Note that pattern ".*" is equivalent.
                   </xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:pattern value="[^\n\r]*"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="FullName">
              <xs:restriction base="SingleLineString">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="100"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="Name">
              <xs:restriction base="SingleLineString">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="35"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="Street">
              <xs:restriction base="SingleLineString">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="35"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="TypePerson">
              <xs:annotation>
                   <xs:documentation>
                        Type of person values as follows: 1-Natural
                        person, 2-Legal person and 3-Association of
                        persons. Values can be updated and retrieved by the CS/RD.
                   </xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:unsignedInt">
                   <xs:totalDigits value="1"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="VATNationalNumber">
              <xs:restriction base="SingleLineString">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="15"/>
                   <xs:pattern value="\p{IsBasicLatin}+"/>
              </xs:restriction>
         </xs:simpleType>
    </xs:schema>xml.xsd
    <?xml version='1.0'?>
    <xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
    <xs:attribute name="lang" type="xs:language"/>
    <xs:attribute name="space" default="preserve">
      <xs:simpleType>
       <xs:restriction base="xs:NCName">
        <xs:enumeration value="default"/>
        <xs:enumeration value="preserve"/>
       </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="base" type="xs:anyURI"/>
    <xs:attributeGroup name="specialAttrs">
      <xs:attribute ref="xml:base"/>
      <xs:attribute ref="xml:lang"/>
      <xs:attribute ref="xml:space"/>
    </xs:attributeGroup>
    </xs:schema>(second part follows...)

    (continuing from above post ...)
    TestXML.xml
    <?xml version="1.0" encoding="utf-8"?>
    <env:envelope id="5555" xmlns="urn:publicid:-:DGTAXUD:EORI:CONSULT:1.0" xmlns:env="urn:publicid:-:DGTAXUD:GENERAL:ENVELOPE:1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <env:header name="Version" value="1.0"/>
      <env:header name="From" value="EOS-CDCO"/>
      <env:header name="Originator" value="BE-EORI"/>
      <env:header name="InReplyTo" value="5554"/>
      <env:transaction id="1">
        <env:header name="InReplyTo" value="1"/>
        <env:status category="ok" location="/envelope[@id=&apos;5554&apos;]/transaction[@id=&apos;1&apos;]">
          <env:status.detail category="info" code="100" location="/envelope[@id=&apos;5554&apos;]/transaction[@id=&apos;1&apos;]/app.message[@id=&apos;1&apos;]">
            <env:business.ref>
              <full.request>
                <eori.record.ref>
                  <country.code>BE</country.code>
                  <national.number>123</national.number>
                </eori.record.ref>
                <consultation.purpose.code>C</consultation.purpose.code>
              </full.request>
            </env:business.ref>
            <env:mmi.message>Ok</env:mmi.message>
          </env:status.detail>
        </env:status>
        <env:app.message id="1">
          <eori.record.full.consultation.response>
            <full.response.list>
              <full.response>
                <eori.record.full>
                  <eori.record.ref>
                    <country.code>FR</country.code>
                    <national.number>123</national.number>
                  </eori.record.ref>
                  <tc.number.list>
                    <tc.number>
                      <country>
                        <country.code>AA</country.code>
                      </country>
                      <national.number>465466</national.number>
                    </tc.number>
                  </tc.number.list>
                  <economic.operator.details>
                    <full.name>a</full.name>
                    <short.name>a</short.name>
                    <establishment.date>19670813</establishment.date>
                    <person.type.code>1</person.type.code>
                    <economic.activity.code>1234</economic.activity.code>
                    <start.date>19670813</start.date>
                    <expiry.date>19670813</expiry.date>
                    <publication.ind>0</publication.ind>
                  </economic.operator.details>
                  <legal.status.list>
                    <legal.status>
                      <legal.status>
                        <language.code>aa</language.code>
                        <legal.status.description>status</legal.status.description>
                      </legal.status>
                      <validity.period>
                        <start.date>19670813</start.date>
                        <end.date>19670813</end.date>
                      </validity.period>
                    </legal.status>
                  </legal.status.list>
                  <establishment.address.list>
                    <establishment.address>
                      <establishment.address>
                        <language.code>aa</language.code>
                        <name>a</name>
                        <street>s</street>
                        <postcode>p</postcode>
                        <city>c</city>
                        <country>
                          <country.code>AA</country.code>
                        </country>
                      </establishment.address>
                      <validity.period>
                        <start.date>19670813</start.date>
                        <end.date>19670813</end.date>
                      </validity.period>
                    </establishment.address>
                  </establishment.address.list>
                  <vat.list>
                    <vat>
                      <country.code>AA</country.code>
                      <number>74455</number>
                    </vat>
                  </vat.list>
                  <contact.list>
                    <contact>
                      <contact>
                        <phone>+ 123</phone>
                        <fax>+ 123</fax>
                        <name.address>
                          <language.code>aa</language.code>
                          <full.name>a</full.name>
                          <short.name>a</short.name>
                          <street>s</street>
                          <postcode>p</postcode>
                          <city>c</city>
                          <country>
                            <country.code>AA</country.code>
                          </country>
                        </name.address>
                      </contact>
                      <validity.period>
                        <start.date>19670813</start.date>
                        <end.date>19670813</end.date>
                      </validity.period>
                    </contact>
                  </contact.list>
                  <aeo.certificate.lifecycle.list>
                    <aeo.certificate.lifecycle>
                      <start.date>19670813</start.date>
                      <end.date>19670813</end.date>
                    </aeo.certificate.lifecycle>
                  </aeo.certificate.lifecycle.list>
                </eori.record.full>
              </full.response>
            </full.response.list>
          </eori.record.full.consultation.response>
        </env:app.message>
      </env:transaction>
    </env:envelope>Here is the script that created the table and registered the schemas
    BEGIN     
       DBMS_XMLSCHEMA.REGISTERSCHEMA(
         SCHEMAURL => 'envelope-consult.xsd',
         SCHEMADOC => XDBURITYPE('/public/xsdfiles/EORI/envelope-consult.xsd').getBlob(),
         LOCAL     => TRUE,
         GENTYPES  => FALSE,
         GENBEAN   => FALSE,
         GENTABLES => FALSE,
         FORCE     => FALSE,
         CSID      => NLS_CHARSET_ID('AL32UTF8'),
         OPTIONS   => DBMS_XMLSCHEMA.REGISTER_BINARYXML);
    END;
    BEGIN     
       DBMS_XMLSCHEMA.REGISTERSCHEMA(
         SCHEMAURL => 'EORI-consult.xsd',
         SCHEMADOC => XDBURITYPE('/public/xsdfiles/EORI/EORI-consult.xsd').getBlob(),
         LOCAL     => TRUE,
         GENTYPES  => FALSE,
         GENBEAN   => FALSE,
         GENTABLES => FALSE,
         FORCE     => FALSE,
         CSID      => NLS_CHARSET_ID('AL32UTF8'),
         OPTIONS   => DBMS_XMLSCHEMA.REGISTER_BINARYXML);
    END;
    CREATE TABLE TEST_XML_TABLE
      ENV_CONSULT  SYS.XMLTYPE,
      MSG_TSTAMP   TIMESTAMP(6) WITH TIME ZONE      DEFAULT SYSTIMESTAMP          NOT NULL
    XMLTYPE COLUMN ENV_CONSULT STORE AS SECUREFILE BINARY XML
    (       TABLESPACE PARTYMS10_DATA
      INDEX(TABLESPACE PARTYMS10_INDEX)
    XMLSCHEMA "envelope-consult.xsd" ELEMENT "envelope"
       DISALLOW NONSCHEMA
    TABLESPACE PARTYMS10_DATA
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING
    /And here is the offending statement, together with the reported error
    INSERT
      INTO TEST_XML_TABLE
    VALUES (XDBURITYPE('/public/xmlfiles/EORI/TestXML.xml').getXML(), SYSTIMESTAMP)
    COMMIT
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LSX-00213: only 0 occurrences of particle "abstract.ref", minimum is 1
    Details:
    INSERT
      INTO TEST_XML_TABLE
    VALUES (XDBURITYPE('/public/xmlfiles/EORI/TestXML.xml').getXML(), SYSTIMESTAMP)
    Error at line 1
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LSX-00213: only 0 occurrences of particle "abstract.ref", minimum is 1I am using 11.1.0.7.0, as seen on
    select * from v$version;
    BANNER                                                                         
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production         
    PL/SQL Release 11.1.0.7.0 - Production                                         
    CORE   11.1.0.7.0   Production                                                     
    TNS for 32-bit Windows: Version 11.1.0.7.0 - Production                        
    NLSRTL Version 11.1.0.7.0 - Production                                         
    5 rows selected.Any ideas ? I cannot understand it at all... It seems to relate to the substitutionGroup entries in general, but I can't for the life of me see why :(
    Best Regards
    Philip

  • Error parsing envelope: (1, 1) Start of root element expected.

    Hello BI Publisher:
    The issue has been resolved. I found the cause the problem. The following line in my WSDL was preventing BI Publisher from reading the WSDL, which will return the "Error parsing envelope" message:
    <xsd:attribute name="dateTimeTagFormat" fixed="xsd" use="required"/>
    Once I removed the above line, BI Publisher was able to read the WSDL without any issues, and run the report.
    Benjamin
    Hello BI Publisher:
    I am trying to define a new dataset of type "Web Service", with a Complex Type configuration using WS-Security 2004. I get the following error when I try to "View" it:
    **"javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected."**
    This happens even if my Application Server (where the service is located) is not running, so I suspect that the error happens before the Publisher server tries to send the SOAP envevelop to the service server.
    Publisher Version: Release 10.1.3.4
    Complex Type: True
    Username: User1
    Password: ******
    Time Out: 60
    WSDL URL: http://localhost:4100/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF?WSDL
    Web Service: ZZ_BIP_XAI_ZFService
    Method: ZZ_BIP_XAI_ZF
    ResponseData XPath: <blank>
    Here is the Publisher server log in debug mode:
    [072909_110222553][][STATEMENT] Setting data definition:New DataSet 1 type:oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11
    [072909_110222569][][STATEMENT] Skip migration for cookie (ORA_XDO) is not found
    [072909_110228644][][STATEMENT] Skip migration for cookie (ORA_XDO) is not found
    [072909_110228690][][STATEMENT] WebServiceBoundValue11::getValue m_xpath =
    [072909_110228690][][STATEMENT] WSS Parameter = 2004
    09/07/29 11:02:28 WebServiceCall::callComplexClient SOAP Message = null
    [072909_110228706][][STATEMENT] SOAP Response XPATH =
    [072909_110228706][][STATEMENT] http://localhost.us.oracle.com:4100/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF?WSDL
    [072909_110228706][][STATEMENT] ZZ_BIP_XAI_ZF
    [072909_110228706][][STATEMENT] null
    09/07/29 11:02:28 WebServiceCall::callComplexClient WS-Security Enabled - uid [SPLBPG], pwd [splbpg00], spec-2004 [true]
    09/07/29 11:02:28 javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    09/07/29 11:02:28 at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    09/07/29 11:02:28 at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    09/07/29 11:02:28 at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1429)
    09/07/29 11:02:28 at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1399)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.server.WebServiceCall.callComplexClient(WebServiceCall.java:179)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.server.WebServiceCall.doFetch(WebServiceCall.java:63)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.server.AbstractDataCall.execute(AbstractDataCall.java:63)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11.getValue(WebServiceBoundValue11.java:147)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:412)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:231)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    09/07/29 11:02:28 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    09/07/29 11:02:28 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    09/07/29 11:02:28 at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
    09/07/29 11:02:28 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    09/07/29 11:02:28 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    09/07/29 11:02:28 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    09/07/29 11:02:28 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    09/07/29 11:02:28 at java.lang.Thread.run(Thread.java:595)
    09/07/29 11:02:28 Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    09/07/29 11:02:28 at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    09/07/29 11:02:28 at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
    09/07/29 11:02:28 at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    09/07/29 11:02:28 at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
    09/07/29 11:02:28 at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:77)
    09/07/29 11:02:28 ... 30 more
    [072909_110228862][][EXCEPTION] oracle.apps.xdo.webservice.wsclient.WSClientException: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1406)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.callComplexClient(WebServiceCall.java:179)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.doFetch(WebServiceCall.java:63)
    at oracle.apps.xdo.servlet.data.server.AbstractDataCall.execute(AbstractDataCall.java:63)
    at oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11.getValue(WebServiceBoundValue11.java:147)
    at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:412)
    at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:231)
    at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
    at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1429)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1399)
    ... 27 more
    Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:77)
    ... 30 more
    [072909_110228878][][EXCEPTION] oracle.apps.xdo.webservice.wsclient.WSClientException: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1406)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.callComplexClient(WebServiceCall.java:179)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.doFetch(WebServiceCall.java:63)
    at oracle.apps.xdo.servlet.data.server.AbstractDataCall.execute(AbstractDataCall.java:63)
    at oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11.getValue(WebServiceBoundValue11.java:147)
    at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:412)
    at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:231)
    at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
    at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1429)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1399)
    ... 27 moreCaused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:77)
    ... 30 more
    Here is my WSDL:
    <?xml version="1.0"?>
    <!-- root element wsdl:definitions defines set of related services -->
    <wsdl:definitions name="ZZ_BIP_XAI_ZF"
    targetNamespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"
    xmlns:xai="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"
    xmlns:xaixsd="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF.xsd"
    xmlns:schemans1="http://oracle.com/ZZ_BIP_XAI_ZF.xsd"
    xmlns:schemans2="http://oracle.com/ZZ_BIP_XAI_ZF.xsd"
    xmlns:ouaf="urn:oracle:ouaf"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <!-- wsdl:types encapsulates schema definitions of communication types;
    here using xsd -->
    <wsdl:types>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:oracle:ouaf" elementFormDefault="qualified">
    <xsd:element name="Fault">
    <xsd:complexType>
    <xsd:all>
    <xsd:element name="ResponseStatus" type="xsd:string"/>
    <xsd:element name="ResponseCode" type="xsd:int"/>
    <xsd:element name="ResponseText" type="xsd:string"/>
    <xsd:element name="ResponseData" minOccurs="0">
    <xsd:complexType>
    <xsd:attribute name="parm1" type="xsd:string"/>
    <xsd:attribute name="parm2" type="xsd:string"/>
    <xsd:attribute name="parm3" type="xsd:string"/>
    <xsd:attribute name="parm4" type="xsd:string"/>
    <xsd:attribute name="parm5" type="xsd:string"/>
    <xsd:attribute name="text" type="xsd:string"/>
    <xsd:attribute name="category" type="xsd:string"/>
    <xsd:attribute name="numParm" type="xsd:int"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:all>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:oracle:ouaf" elementFormDefault="qualified">
    <xsd:simpleType name="money">
    <xsd:restriction base="xsd:decimal"/>
    </xsd:simpleType>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ouaf="urn:oracle:ouaf" targetNamespace="http://oracle.com/ZZ_BIP_XAI_ZF.xsd" elementFormDefault="qualified">
    <xsd:import namespace="urn:oracle:ouaf"/>
    <xsd:element name="ZZ_BIP_XAI_ZF">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="startDttm" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="endDttm" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="crew" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="crewId" type="xsd:string" minOccurs="0"/>
    <xsd:element name="crewName" type="xsd:string"/>
    <xsd:element name="task" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="crewId" type="xsd:string" minOccurs="0"/>
    <xsd:element name="taskId" type="xsd:string" minOccurs="0"/>
    <xsd:element name="taskName" type="xsd:string"/>
    <xsd:element name="status" type="xsd:string"/>
    <xsd:element name="startDttm" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="endDttm" type="xsd:dateTime" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="dateTimeTagFormat" fixed="xsd" use="required"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </wsdl:types>
    <!-- wsdl:message elements describe potential transactions -->
    <!-- request ZZ_BIP_XAI_ZFRequest is of type ZZ_BIP_XAI_ZF -->
    <wsdl:message name="ZZ_BIP_XAI_ZFRequest">
    <wsdl:part name="body" element="schemans1:ZZ_BIP_XAI_ZF"/>
    </wsdl:message>
    <!-- response ZZ_BIP_XAI_ZFResponse is of type ZZ_BIP_XAI_ZFResponse -->
    <wsdl:message name="ZZ_BIP_XAI_ZFResponse">
    <wsdl:part name="body" element="schemans2:ZZ_BIP_XAI_ZF"/>
    </wsdl:message>
    <!-- fault ZZ_BIP_XAI_ZFFault is of type ZZ_BIP_XAI_ZFFault -->
    <wsdl:message name="ZZ_BIP_XAI_ZFFault">
    <wsdl:part name="fault" element="ouaf:Fault"/>
    </wsdl:message>
    <!-- wsdl:portType describes messages in an operation -->
    <wsdl:portType name="ZZ_BIP_XAI_ZFPortType">
    <!-- the value of wsdl:operation eludes me -->
    <wsdl:operation name="ZZ_BIP_XAI_ZF">
    <wsdl:input message="xai:ZZ_BIP_XAI_ZFRequest"/>
    <wsdl:output message="xai:ZZ_BIP_XAI_ZFResponse"/>
    <wsdl:fault name="fault" message="xai:ZZ_BIP_XAI_ZFFault"/>
    </wsdl:operation>
    </wsdl:portType>
    <!-- wsdl:binding states a serialization protocol for this service -->
    <wsdl:binding name="ZZ_BIP_XAI_ZFSoapBinding"
    type="xai:ZZ_BIP_XAI_ZFPortType">
    <!-- leverage off soap:binding document style @@@(no wsdl:foo pointing at
    the soap binding) -->
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <!-- semi-opaque container of network transport details classed by
    soap:binding above @@@ -->
    <wsdl:operation name="ZZ_BIP_XAI_ZF">
    <!-- again bind to SOAP? @@@ -->
    <soap:operation soapAction="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    <!-- furthur specify that the messages in the wsdl:operation
    "ZZ_BIP_XAI_ZF" use SOAP? @@@ -->
    <wsdl:input>
    <soap:body use="literal"
              namespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"
              namespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:output>
    <wsdl:fault name="fault">
    <soap:fault name="fault" use="literal"
              namespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <!-- wsdl:service names a new service "ZZ_BIP_XAI_ZFService" -->
    <wsdl:service name="ZZ_BIP_XAI_ZFService">
    <wsdl:documentation>ZZ_BIP_XAI_ZF version 3: Test XAI WS for BIP</wsdl:documentation>
    <!-- connect it to the binding "ZZ_BIP_XAI_ZFSoapBinding" above -->
    <wsdl:port name="ZZ_BIP_XAI_ZFPort"
    binding="xai:ZZ_BIP_XAI_ZFSoapBinding">
    <!-- give the binding an network address -->
    <soap:address location="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Edited by: bperezg on Aug 12, 2009 2:49 PM
    Edited by: bperezg on Aug 12, 2009 2:56 PM

    Hello BI Publisher:
    The issue has been resolved. I found the cause the problem. The following line in my WSDL was preventing BI Publisher from reading the WSDL, which will return the "Error parsing envelope" message:
    <xsd:attribute name="dateTimeTagFormat" fixed="xsd" use="required"/>
    Once I removed the above line, BI Publisher was able to read the WSDL without any issues, and run the report.
    Benjamin
    Hello BI Publisher:
    I am trying to define a new dataset of type "Web Service", with a Complex Type configuration using WS-Security 2004. I get the following error when I try to "View" it:
    **"javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected."**
    This happens even if my Application Server (where the service is located) is not running, so I suspect that the error happens before the Publisher server tries to send the SOAP envevelop to the service server.
    Publisher Version: Release 10.1.3.4
    Complex Type: True
    Username: User1
    Password: ******
    Time Out: 60
    WSDL URL: http://localhost:4100/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF?WSDL
    Web Service: ZZ_BIP_XAI_ZFService
    Method: ZZ_BIP_XAI_ZF
    ResponseData XPath: <blank>
    Here is the Publisher server log in debug mode:
    [072909_110222553][][STATEMENT] Setting data definition:New DataSet 1 type:oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11
    [072909_110222569][][STATEMENT] Skip migration for cookie (ORA_XDO) is not found
    [072909_110228644][][STATEMENT] Skip migration for cookie (ORA_XDO) is not found
    [072909_110228690][][STATEMENT] WebServiceBoundValue11::getValue m_xpath =
    [072909_110228690][][STATEMENT] WSS Parameter = 2004
    09/07/29 11:02:28 WebServiceCall::callComplexClient SOAP Message = null
    [072909_110228706][][STATEMENT] SOAP Response XPATH =
    [072909_110228706][][STATEMENT] http://localhost.us.oracle.com:4100/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF?WSDL
    [072909_110228706][][STATEMENT] ZZ_BIP_XAI_ZF
    [072909_110228706][][STATEMENT] null
    09/07/29 11:02:28 WebServiceCall::callComplexClient WS-Security Enabled - uid [SPLBPG], pwd [splbpg00], spec-2004 [true]
    09/07/29 11:02:28 javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    09/07/29 11:02:28 at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    09/07/29 11:02:28 at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    09/07/29 11:02:28 at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1429)
    09/07/29 11:02:28 at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1399)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.server.WebServiceCall.callComplexClient(WebServiceCall.java:179)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.server.WebServiceCall.doFetch(WebServiceCall.java:63)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.server.AbstractDataCall.execute(AbstractDataCall.java:63)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11.getValue(WebServiceBoundValue11.java:147)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:412)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:231)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    09/07/29 11:02:28 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    09/07/29 11:02:28 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    09/07/29 11:02:28 at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    09/07/29 11:02:28 at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
    09/07/29 11:02:28 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    09/07/29 11:02:28 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    09/07/29 11:02:28 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    09/07/29 11:02:28 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    09/07/29 11:02:28 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    09/07/29 11:02:28 at java.lang.Thread.run(Thread.java:595)
    09/07/29 11:02:28 Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    09/07/29 11:02:28 at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    09/07/29 11:02:28 at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
    09/07/29 11:02:28 at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    09/07/29 11:02:28 at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
    09/07/29 11:02:28 at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:77)
    09/07/29 11:02:28 ... 30 more
    [072909_110228862][][EXCEPTION] oracle.apps.xdo.webservice.wsclient.WSClientException: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1406)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.callComplexClient(WebServiceCall.java:179)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.doFetch(WebServiceCall.java:63)
    at oracle.apps.xdo.servlet.data.server.AbstractDataCall.execute(AbstractDataCall.java:63)
    at oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11.getValue(WebServiceBoundValue11.java:147)
    at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:412)
    at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:231)
    at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
    at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1429)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1399)
    ... 27 more
    Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:77)
    ... 30 more
    [072909_110228878][][EXCEPTION] oracle.apps.xdo.webservice.wsclient.WSClientException: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1406)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.callComplexClient(WebServiceCall.java:179)
    at oracle.apps.xdo.servlet.data.server.WebServiceCall.doFetch(WebServiceCall.java:63)
    at oracle.apps.xdo.servlet.data.server.AbstractDataCall.execute(AbstractDataCall.java:63)
    at oracle.apps.xdo.servlet.data.bind.WebServiceBoundValue11.getValue(WebServiceBoundValue11.java:147)
    at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:412)
    at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:231)
    at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
    at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1429)
    at oracle.apps.xdo.webservice.wsclient.WSClient.insertSecurityHeaders(WSClient.java:1399)
    ... 27 moreCaused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
    at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:77)
    ... 30 more
    Here is my WSDL:
    <?xml version="1.0"?>
    <!-- root element wsdl:definitions defines set of related services -->
    <wsdl:definitions name="ZZ_BIP_XAI_ZF"
    targetNamespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"
    xmlns:xai="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"
    xmlns:xaixsd="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF.xsd"
    xmlns:schemans1="http://oracle.com/ZZ_BIP_XAI_ZF.xsd"
    xmlns:schemans2="http://oracle.com/ZZ_BIP_XAI_ZF.xsd"
    xmlns:ouaf="urn:oracle:ouaf"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <!-- wsdl:types encapsulates schema definitions of communication types;
    here using xsd -->
    <wsdl:types>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:oracle:ouaf" elementFormDefault="qualified">
    <xsd:element name="Fault">
    <xsd:complexType>
    <xsd:all>
    <xsd:element name="ResponseStatus" type="xsd:string"/>
    <xsd:element name="ResponseCode" type="xsd:int"/>
    <xsd:element name="ResponseText" type="xsd:string"/>
    <xsd:element name="ResponseData" minOccurs="0">
    <xsd:complexType>
    <xsd:attribute name="parm1" type="xsd:string"/>
    <xsd:attribute name="parm2" type="xsd:string"/>
    <xsd:attribute name="parm3" type="xsd:string"/>
    <xsd:attribute name="parm4" type="xsd:string"/>
    <xsd:attribute name="parm5" type="xsd:string"/>
    <xsd:attribute name="text" type="xsd:string"/>
    <xsd:attribute name="category" type="xsd:string"/>
    <xsd:attribute name="numParm" type="xsd:int"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:all>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:oracle:ouaf" elementFormDefault="qualified">
    <xsd:simpleType name="money">
    <xsd:restriction base="xsd:decimal"/>
    </xsd:simpleType>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ouaf="urn:oracle:ouaf" targetNamespace="http://oracle.com/ZZ_BIP_XAI_ZF.xsd" elementFormDefault="qualified">
    <xsd:import namespace="urn:oracle:ouaf"/>
    <xsd:element name="ZZ_BIP_XAI_ZF">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="startDttm" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="endDttm" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="crew" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="crewId" type="xsd:string" minOccurs="0"/>
    <xsd:element name="crewName" type="xsd:string"/>
    <xsd:element name="task" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="crewId" type="xsd:string" minOccurs="0"/>
    <xsd:element name="taskId" type="xsd:string" minOccurs="0"/>
    <xsd:element name="taskName" type="xsd:string"/>
    <xsd:element name="status" type="xsd:string"/>
    <xsd:element name="startDttm" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="endDttm" type="xsd:dateTime" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="dateTimeTagFormat" fixed="xsd" use="required"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </wsdl:types>
    <!-- wsdl:message elements describe potential transactions -->
    <!-- request ZZ_BIP_XAI_ZFRequest is of type ZZ_BIP_XAI_ZF -->
    <wsdl:message name="ZZ_BIP_XAI_ZFRequest">
    <wsdl:part name="body" element="schemans1:ZZ_BIP_XAI_ZF"/>
    </wsdl:message>
    <!-- response ZZ_BIP_XAI_ZFResponse is of type ZZ_BIP_XAI_ZFResponse -->
    <wsdl:message name="ZZ_BIP_XAI_ZFResponse">
    <wsdl:part name="body" element="schemans2:ZZ_BIP_XAI_ZF"/>
    </wsdl:message>
    <!-- fault ZZ_BIP_XAI_ZFFault is of type ZZ_BIP_XAI_ZFFault -->
    <wsdl:message name="ZZ_BIP_XAI_ZFFault">
    <wsdl:part name="fault" element="ouaf:Fault"/>
    </wsdl:message>
    <!-- wsdl:portType describes messages in an operation -->
    <wsdl:portType name="ZZ_BIP_XAI_ZFPortType">
    <!-- the value of wsdl:operation eludes me -->
    <wsdl:operation name="ZZ_BIP_XAI_ZF">
    <wsdl:input message="xai:ZZ_BIP_XAI_ZFRequest"/>
    <wsdl:output message="xai:ZZ_BIP_XAI_ZFResponse"/>
    <wsdl:fault name="fault" message="xai:ZZ_BIP_XAI_ZFFault"/>
    </wsdl:operation>
    </wsdl:portType>
    <!-- wsdl:binding states a serialization protocol for this service -->
    <wsdl:binding name="ZZ_BIP_XAI_ZFSoapBinding"
    type="xai:ZZ_BIP_XAI_ZFPortType">
    <!-- leverage off soap:binding document style @@@(no wsdl:foo pointing at
    the soap binding) -->
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <!-- semi-opaque container of network transport details classed by
    soap:binding above @@@ -->
    <wsdl:operation name="ZZ_BIP_XAI_ZF">
    <!-- again bind to SOAP? @@@ -->
    <soap:operation soapAction="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    <!-- furthur specify that the messages in the wsdl:operation
    "ZZ_BIP_XAI_ZF" use SOAP? @@@ -->
    <wsdl:input>
    <soap:body use="literal"
              namespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"
              namespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:output>
    <wsdl:fault name="fault">
    <soap:fault name="fault" use="literal"
              namespace="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <!-- wsdl:service names a new service "ZZ_BIP_XAI_ZFService" -->
    <wsdl:service name="ZZ_BIP_XAI_ZFService">
    <wsdl:documentation>ZZ_BIP_XAI_ZF version 3: Test XAI WS for BIP</wsdl:documentation>
    <!-- connect it to the binding "ZZ_BIP_XAI_ZFSoapBinding" above -->
    <wsdl:port name="ZZ_BIP_XAI_ZFPort"
    binding="xai:ZZ_BIP_XAI_ZFSoapBinding">
    <!-- give the binding an network address -->
    <soap:address location="http://sf-fwwin-03.us.oracle.com:4400/spl/XAIApp/xaiserver/ZZ_BIP_XAI_ZF"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Edited by: bperezg on Aug 12, 2009 2:49 PM
    Edited by: bperezg on Aug 12, 2009 2:56 PM

  • WSDL parse error

    Flex builder 3 reports this error when trying to parse my
    WSDL:
    actionscript class name contains illegal characters
    I suspect it is the dots in the "name" attributes that it
    does not like:
    -->

    <definitions name="GlobalLB.Pool"
    targetNamespace="urn:iControl">
    <!-- types -->

    <types>

    <xsd:schema targetNamespace="urn:iControl">

    <xsd:simpleType name="GlobalLB.MetricLimitType">
    Can this be fixed or worked around somehow?
    Thanks.

    Flex builder 3 reports this error when trying to parse my
    WSDL:
    actionscript class name contains illegal characters
    I suspect it is the dots in the "name" attributes that it
    does not like:
    -->

    <definitions name="GlobalLB.Pool"
    targetNamespace="urn:iControl">
    <!-- types -->

    <types>

    <xsd:schema targetNamespace="urn:iControl">

    <xsd:simpleType name="GlobalLB.MetricLimitType">
    Can this be fixed or worked around somehow?
    Thanks.

  • JAXB Parsing error. Could it be a configuration problem?

    Do version mismatches produce schema errors or are the errors below true schema mismatches do you think?
    running this command.
    Error:
    C:\perforce\strata\v3\pools\prjSTA\src\classes>C:\Sun\jwsdp-1.5\jaxb\bin\xjc.bat
    -extension -use-runtime com.bofa.strata.component.xml.JAXBruntime1_0_4 -d C:\pe
    rforce\strata\v3\pools\prjSTA\src\classes\com\bofa\strata\business\cdrom\schema
    -p com.bofa.strata.business.cdrom.schema C:\perforce\strata\v3\pools\prjSTA\src\
    classes\com\bofa\strata\business\cdrom\schema\MonthlyBillingRequest.xsd
    parsing a schema...
    [ERROR] src-resolve: Cannot resolve the name 'tscd:BillingId.SimpleType' to a(n)
    'type definition' component.
      line 18 of MonthlyBillingRequest.xsd
    [ERROR] src-resolve: Cannot resolve the name 'ts:SigningMethod.Enumeration' to a
    (n) 'type definition' component.
      line 23 of MonthlyBillingRequest.xsdFailed to parse a schema.
    C:\perforce\strata\v3\pools\prjSTA\src\classes>C:\Sun\jwsdp-1.5\jaxb\bin\xjc.bat
    -extension -use-runtime com.bofa.strata.component.xml.JAXBruntime1_0_4 -d C:\pe
    rforce\strata\v3\pools\prjSTA\src\classes\com\bofa\strata\business\cdrom\schema
    -p com.bofa.strata.business.cdrom.schema C:\perforce\strata\v3\pools\prjSTA\src\
    classes\com\bofa\strata\business\cdrom\schema\MonthlyBillingResponse.xsd
    parsing a schema...
    [ERROR] src-resolve: Cannot resolve the name 'tscd:BillingId.SimpleType' to a(n)
    'type definition' component.
      line 11 of MonthlyBillingResponse.xsd
    [ERROR] src-resolve: Cannot resolve the name 'ts:AccountNumber.SimpleType' to a(
    n) 'type definition' component.
      line 13 of CDROM.xsdFailed to parse a schema.

    I've been looking around on eBay and I'm not quite sure which antenna I need. There's different types like 9dBi, 12dBi and 19dBi. Which type is best? Is this one any good?
    http://cgi.ebay.com.au/2-4GHz-12dBi-WIFI-Booster-Wireless-Antenna-WLAN-RP-SMA-/1 40523920864?pt=AUComputers_Networking_Accessories&hash=item20b7e0dde0#ht_3432wt932

  • Parser error: XSD 2015 with regular expression

    The Oracle java parser is rejecting a document with the following error message:
    SD-2015: (Error) Invalid facet 'pattern' in element 'simpleType'I'm not excatly certain what the parser is objecting to, because the error messages aren't document (subject of a different rant). Now the thing it's rejecting is this:
      <xsd:simpleType name="TelCountryCodeType">
                 <xsd:restriction base="xsd:string">
                         <xsd:pattern value="[0-9]{1,3}"/>
                    </xsd:restriction>
            </xsd:simpleType>So is it choking because it doesn't like regular or for some other reason?
    TIA, APC

    Thanks - the code:
    String regExp = new String ("\"(http://)([.[^\"]]*)\"");seems to work. (I awarded you the duke dollars from your first post, becaues that was the "ahha" moment. )
    Thanks!!!

Maybe you are looking for

  • Is there a way to watch VerizonFIOS cable TV on iMAC using HDMI Input?

    I have a 2014 iMac.  I recently moved and now have VerizonFIOS cable.  The output for the cable box is HDMI.  From what I can see on the back of my iMac, I have two Thunderbolt ports, and multiple USB 3 ports.  Is there a way to use the HDMI cable fr

  • My ipod touch is stuck on the usb to itunes and itunes wont restore my ipod. Help?

    My Ipod touch, 4g i think, is stuck on the USB to Itunes and when i connect it to itunes it says that i cant use it untill i restore it. So i clicked on Restore and update. It goes untill the bar at the top is fully filled then a message pops up sayi

  • Sun Fire x4100

    I recently got a Sun fire x4100 server, which does not have an OS loaded. I am able to connect to ILOM (version 2.0.2.1) through the Serial management port and using SSH in Putty. I can also get to the web admin page and launch the remote java consol

  • DVD player pauses and skips.

    My DVD player skips? When I play a DVD in my Mac Mini, viewing it with a 32" LCD TV, the dvd will stop and pause. It's kind of like a skip, but it does not pixelate or anything? Is my DVD player broken?

  • HI, I'm jodi I have a macbook pro I am looking for help.  CONTACTS

    Hello I have bought a macbook pro to help me streamline all my contacts and 2 IOS devices all through one computer very streamlined.  Except I;ve run into a problem. When I open a contact it will have all the persons info address, picture, phone emai