Location of schema XSD NetUI

Hello

Anyone know where I can find the XSD for NetUi scheme. We need to validate the XML generated by the spread tool.

That's where our namespaces are defined, but the url to the NetUI schema is not valid.

< portal: root
xmlns:netuix = "http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0".
xmlns: Portal = "http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0."
xmlns:HTML = "http://www.w3.org/1999/xhtml-netuix-modified/1.0.0".
xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
xsi: schemaLocation = 'Portal-help - 1_0_0.xsd of the http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0' >


Any help would be appreciated.

Thank you
Jonathan

Hello Jonathan.

You should find the diagram you are looking for in a file called "netuix_schemas.jar" somewhere in your classpath system corresponding to your installation of WLP. WLP version you are running, this file can be in different directories, but it shouldn't be too hard to find with a simple search of files. Are all schemas used to validate the .portal and .portlet files inside of the pot.

Kevin

Tags: Fusion Middleware

Similar Questions

  • Schema (xsd) for tag CVT file

    Where can I file the .xsd to loaded or unloaded tags files by / stored in the library of dashboard values (CVT)?

    I have an urgent situation.  I am the head of software for a machine control project which relies heavily on the possibilities of client configuration and management tags.  I proposed an architecture that included use of CVT, CCC and TCEs to manage configurations; only to find the update of TCE broken v2.x compatibility XML with FPC.  The project nor to update the CVT to remedy this situation does not seem to make a lot of progress, so I have to workaround to meet my fashion calendar.  My plan is to use an open source or COTS XML tool for managing configuration rather than traditional cultural expressions.  However, I need a copy of the xsd to a solution that is consumable for the customer.

    Where can I find it?

    Side note: I noticed similar questions for the other components of LabVIEW.  I suggest you post drawings and standards in an area of document decible.ni.com.

    deepforge,

    You have read the following information? http://zone.NI.com/reference/en-XX/help/371361J-01/lvconcepts/converting_data_to_and_from_xml/

    At the end it says the following:

    XML schema for LabVIEW

    LabVIEW converts the data to an established XML schema. Currently, you cannot create custom schema, and you can't control how LabVIEW tags each piece of data. Also, you cannot convert any screws or functions in XML.

    The predefined XML schema used by LabVIEW is LVXMLSchema.xsd located in the labview\vi.lib\Utility directory. You can open the file in a text editor to read the schema.

  • How to create a file a BI Publisher xml schema xsd?

    Helllo.

    I hope that this is a really stupid question for someone...

    How to create an xsd file to use as an xml schema attached to a definition of data generated by Ive? I have obv. got xml and rtf ready and attached files. I've looked through the relevant documentation (that of the Designer reports XML Publisher Guide.pdf & Guide.pdf Administration XML editor and developer), but can not find the place where...

    Once this was done so that I can run the model through ORACLE Financials for reports that I converted.

    Thank you very much...

    Steven

    I don't think you have to have a XSD is an optional field. If you really want to create a single use of this site: http://www.hitsw.com/xml_utilites/

    I believe I have answered your question, don't forget to give me points.

    IKE Wiggins
    http://bipublisher.blogspot.com

  • What to put in the xsd schema for the form of the ADF radio buttons?

    Hello, we create a form generated from the data of a HT ADF auto which is a type defined in a schema .xsd. Which schema component Let's in the .xsd schema correspond to buttons option in the form of the ADF? For example, in our .xsd we just

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < xsd: Schema container = ' http://www.w3.org/2001/XMLSchema "xmlns:wf =" " http://www.example.org "

    " targetNamespace = ' http://www.example.org "elementFormDefault ="qualified"> "

    < xsd: complexType name = "FormDataType" >

    < xsd: SEQUENCE >

    < xsd: element name = "FirstName" type = "xsd: String" / >

    < xsd: element name = "Name" type = "xsd: String" / >

    < xsd: element name = "Department" type = "xsd: String" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: Schema >

    What would be the element / type etc be for radio buttons?

    Hi Tali,

    It depends on what you want to do with radio buttons, but it would be better to be a part of string in most cases.

    This could be better handled on the ADF OTN forum, but I'll take a shot at it.  If you have many items to choose from, you can use the string "Department", you already have in your XSD.  When displayed on the form, include various departments with radio buttons next to each other (for example,"manufacturing", "Marketing", "Sales").

    Because this is the BPM forum, I guess your XSD is used as data for a human task which in turn used to create a form of the ADF.  If this is the case, you can use your "Department" in your XSD string element that has already been placed on your form as a text input field.  The reason is the link that you need to update the element of the human task service is automatically created in this way.  Select this field to text, and then in the properties panel, copy the text that is in the 'value' of the field (you stick it in the Value property of the Radio group you will add in the next step).

    There are two ways to get the radio buttons on the form.  You might drag the "Radio group" widget on the form-> click on radio to 'Create a list (select an item)' button-> click the Add icon to add the choices you want to appear on the form (for example,' manufacturing ', 'Marketing', 'Sale').   Once this was added, paste property value text you copied in the previous step into the field of "Value" property of the new Radio group.

    If you select the radio button of the new group source, it should look like this if you wanted two choices for your radio buttons:

    After this has been added, delete the existing text entry field that was created when the form was generated automatically from the human task.

    Hope this helps,

    Dan

  • Location of XSL schema maps

    Hello

    I just manually change an XSL for specific scenario when I noticed that in the upper part of the generated XSL, we have the locations of schema for the parameters.

    These do not updated with deployment plan, then I guess that these serve just at the time of the design for the graphic Mapper or do we need to do something special to replace these during the env deployment target?

    Thank you.

    Hi user,

    These settings are used only at design time. No need to changed before deployment.

    Antonis

  • Construction industry scheme Tables Oracle UK location?

    Hello

    Oracle UK location allows scheme for the Construction industry.

    Can you please let me know the names of tables where the data is stored.

    Kind regards

    Lucy

    Hi Lucie,.

    The names of tables in this location must begin with IGI_CIS. I tried to run the following sql code:

    Select the table table_name from dba_tables

    where table_name like 'IGI % CIS % ';

    And I got the following list:

    TABLE-NAME

    ------------------------------

    IGI_CIS_MTH_RET_PAY_GT

    IGI_CIS_CDROM_HEADERS_T

    IGI_CIS_CDROM_LINES_T

    IGI_CIS_CERT_NI_NUMBERS_ALL

    IGI_CIS_CI36_EXTRACT

    IGI_CIS_CI36_PAYMENTS

    IGI_CIS_MTH_RET_HDR_H_ALL

    IGI_CIS_MTH_RET_HDR_T_ALL

    IGI_CIS_MTH_RET_LINES_H_ALL

    IGI_CIS_MTH_RET_LINES_T_ALL

    IGI_CIS_MTH_RET_PAY_H_ALL

    IGI_CIS_MTH_RET_PAY_T_ALL

    IGI_CIS_PAYMENT_VOUCHERS_ALL

    IGI_CIS_TAX_TREATMENT_H

    IGI_CIS_VERIFY_HEADERS_H

    IGI_CIS_VERIFY_HEADERS_T

    IGI_CIS_VERIFY_LINES_H

    IGI_CIS_VERIFY_LINES_T

    You can try the same thing with the views in the dba_views (or all_views).

    You can also use eTRM (electronic technical reference manual) for more details on the tables.

    Kind regards

    Cheryl

  • Linking a sequence of XSD schema to subform repeated items

    Hi, I have created a form with the rows in the table that is repeated using an Add button to add rows dynamically. I lie the line with the schema xsd with a [*] at the end of the option of data binding with ticked repeat rows for each data item. All by submitting the form as XML data to java controller I get only one line of the table and not other lines dynamically added by add the functionality of the button.

    Untitled.jpgUntitled1.jpg

    Untitled2.png

    I want to know that how generate the XML for lines added dynamically linked with an XSD schema.

    I also explored the link below, but is not to solve the problems:

    http://www.Adobe.com/devnet/LiveCycle/articles/binding-XSD.html

    Thanks in advance

    I have solved the problems by adding maxOccurs = "unbounded" in the xsd schema with the name of the bound element.

  • XML validation against the XSD schema

    Hi all

    I have a strange problem.

    I'm trying to validate an XMLTYPE variable against a XSD schema using the XMLisValid function.

    The XML code that I am trying to validate returned false (0) when you use this method.

    However, when I save the XSD against a column in a table, and then insert this XMLTYPE in this column, I don't get any errors. If I change the XSD to ensure failure when using this method, I get an error, if it is registered and work.

    I then created a very basic XSD and both methods work when validating XML against that. Then of course the XSD harder I want to validate against a difference, but I expect or them both don't both pass, not a failure and a single pass.

    Does anyone know why it would return different results?

    Thanks in advance for your help.

    Robin

    examples of what I use:

    XML to validate:

    <>centers
    < Add >
    <>Center
    < centreName > name 1 < / centreName >
    < centreRef > 45678 < / centreRef >
    < / Center >
    < / add >
    < / Center >

    Simple XSD:

    <? XML version = "1.0" encoding = "UTF-8"? >
    < xs: Schema attributeFormDefault = "unqualified" elementFormDefault = "qualified" xmlns: XS = "http://www.w3.org/2001/XMLSchema" >
    < xs: element name = "centres" type = "centresType" / >
    < name XS: complexType 'addType' = >
    < xs: SEQUENCE >
    < xs: ELEMENT type = "xs: String" name = "centreName" / >
    < xs: ELEMENT type = "xs:short" name = "centreRef" / >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < name XS: complexType = "centresType" >
    < xs: SEQUENCE >
    < xs: ELEMENT type = "addType" name = 'Add' maxOccurs = "3" minOccurs = "0" / >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: Schema >

    XSD complex:

    <? XML version = "1.0" encoding = "utf-8"? >
    <! - created with liquid XML Studio - 30 Day Trial Edition 7.1.6.1440 (http://www.liquid-technologies.com)->
    < xs: Schema attributeFormDefault = "unqualified" elementFormDefault = "qualified" xmlns: XS = "http://www.w3.org/2001/XMLSchema" >
    < xs: element name = "Center" >
    < xs: complexType >
    < xs: SEQUENCE >
    < xs: element name = "Remove" >
    < xs: complexType >
    < xs: SEQUENCE >
    < xs: ELEMENT minOccurs = "0" maxOccurs = "1000" name = "centreRef" >
    < xs:simpleType >
    < xs:restriction base = "XS: String" >
    < xs:minLength value = "1" / >
    < xs:maxLength value = "50" / >
    < / xs:restriction >
    < / xs:simpleType >
    < / xs: element >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: element >
    < xs: element name = "Add" >
    < xs: complexType >
    < xs: SEQUENCE >
    < xs: ELEMENT minOccurs = "0" maxOccurs = "1000" name = "Center" >
    < xs: complexType >
    < xs: SEQUENCE >
    < xs: element name = "centreName" >
    < xs:simpleType >
    < xs:restriction base = "XS: String" >
    < xs:minLength value = "1" / >
    < xs:maxLength value = "100" / >
    < / xs:restriction >
    < / xs:simpleType >
    < / xs: element >
    < xs: element name = "centreRef" >
    < xs:simpleType >
    < xs:restriction base = "XS: String" >
    < xs:minLength value = "1" / >
    < xs:maxLength value = "50" / >
    < / xs:restriction >
    < / xs:simpleType >
    < / xs: element >
    < xs: ELEMENT minOccurs = "0" maxOccurs = "1" name = "qualities" >
    < xs: complexType >
    < xs: SEQUENCE >
    < xs: ELEMENT minOccurs = "0" maxOccurs = "1000" name = "qualRef" >
    < xs:simpleType >
    < xs:restriction base = "XS: String" >
    < xs:minLength value = "1" / >
    < xs:maxLength value = "100" / >
    < / xs:restriction >
    < / xs:simpleType >
    < / xs: element >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: element >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: element >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: element >
    < xs: element name = "modifyQualAssociations" >
    < xs: complexType >
    < xs: SEQUENCE >
    < xs: element name = "Remove" >
    < xs: complexType >
    < xs: SEQUENCE >
    < xs: ELEMENT minOccurs = "0" maxOccurs = "1000" name = "o" >
    < xs: complexType >
    < name XS: attribute = use "centreRef" = "required" >
    < xs:simpleType >
    < xs:restriction base = "XS: String" >
    < xs:minLength value = "1" / >
    < xs:maxLength value = "50" / >
    < / xs:restriction >
    < / xs:simpleType >
    < / xs: attribute >
    < name XS: attribute = use "qualRef" = "required" >
    < xs:simpleType >
    < xs:restriction base = "XS: String" >
    < xs:minLength value = "1" / >
    < xs:maxLength value = "100" / >
    < / xs:restriction >
    < / xs:simpleType >
    < / xs: attribute >
    < / xs: complexType >
    < / xs: element >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: element >
    < xs: element name = "Add" >
    < xs: complexType >
    < xs: SEQUENCE >
    < xs: ELEMENT minOccurs = "0" maxOccurs = "1000" name = 'a' >
    < xs: complexType >
    < name XS: attribute = use "centreRef" = "required" >
    < xs:simpleType >
    < xs:restriction base = "XS: String" >
    < xs:minLength value = "1" / >
    < xs:maxLength value = "50" / >
    < / xs:restriction >
    < / xs:simpleType >
    < / xs: attribute >
    < name XS: attribute = use "qualRef" = "required" >
    < xs:simpleType >
    < xs:restriction base = "XS: String" >
    < xs:minLength value = "1" / >
    < xs:maxLength value = "100" / >
    < / xs:restriction >
    < / xs:simpleType >
    < / xs: attribute >
    < / xs: complexType >
    < / xs: element >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: element >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: element >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: element >
    < / xs: Schema >

    Just had a quick glance at your XSD complex...

    
    
    

    You have a piece of 'delete' that is required as part of the sequence of elements with the element "centers." Yet your XML will fail validation compared with what it has only one item "add".

    Maybe your

    
    

    must be:

    
    

    ?

    Just guessing. ;)

  • Get the XSD of the report query

    APEX 4.0.2
    Oracle 11.2.0.1.0

    Hello
    We are trying to retrieve the XML schema for a report query.

    The following code example works, but the "xsd" for p_document_format parameter is not documented.

    Is "xsd" a taken parameter value supported for APEX_UTIL. GET_PRINT_DOCUMENT?

    v_blob := APEX_UTIL.GET_PRINT_DOCUMENT (
        p_application_id      => NV('APP_ID'),
        p_report_query_name   => 'test', 
        p_report_layout_name => null,
        p_report_layout_type => null,  
        p_document_format     => 'xsd',
        p_print_server => null);
    Thank you in advance!

    Hi Eric,.

    We have four different versions of apex_util.get_print_document, so depending on what you want to do, you can create PDF files and other types of documents based on your own style, your own XML data sheets or pre-defined SEO report queries SQL with predefined, or in custom arrangements. We support the output formats, as I listed previously for the four releases. However, the internal implementation of these APIs is different for the API that refer to report queries and those that refer to custom XML data. When you reference the report queries, APEX of the first loading and running queries and generates XML data and then passes the XML the print rendering engine. The analysis and execution of these queries can use the same internal functions that are also used on the edition of report request page, where you have buttons which allow to have downloaded representations XML and the XML schema for the query for your report. XML and XSD documents are intended for use with the plug-in of BI Publisher Word or design tools XSL of third parties to design presentations. Now as the same internal functions are used, you can actually generate documents from XML Schema (XSD) using the apex_util.get_print_document API, but only with versions that allow you to refer to a report query predefined. This is not officially supported, I can assure you that this behavior will not change in the future, but I don't see why we would change that. The main reason to support XML in APIs is really to test the printing functionality without requiring a print rendering engine. But it seems that there are other cases of use for those both output formats.

    Hope the helps

    Kind regards
    Marc

  • Invalid XML schema model.

    Hello.
    We try to validate xml on an xml schema, and we saw a few inconsistencies. First, Oracle seems to take the model of data validation if the value of the node is empty. We can check that in the PL/SQL code. But he also refused to validate valid values.

    Example:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for HPUX: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    declare
        esquema clob := '<xs:schema attributeFormDefault="unqualified" 
        elementFormDefault="qualified" 
        xmlns:xs="http://www.w3.org/2001/XMLSchema" 
        targetNamespace="http://servicios.mycompany.com/Test" 
        xmlns="http://servicios.mycompany.com/Test">
        <xs:element name="node">
            <xs:complexType>
                <xs:sequence>
                    <xs:element name="inner1" type="regType" />
                </xs:sequence>
            </xs:complexType>
        </xs:element>
        <xs:simpleType name="regType">
            <xs:restriction base="xs:string">
                <xs:minLength value="1" />
                <xs:pattern value="((\-)?(([0-9])|([0-9][0-9])|([0-9][0-9][0-9]))(\.[0-9][0-9][0-9]){0,4},[0-9][0-9])" />
            </xs:restriction>
        </xs:simpleType>
    </xs:schema>';
    BEGIN   
        DBMS_XMLSCHEMA.DELETESCHEMA
                             ( 'schema.xsd'                                              
                             , DBMS_XMLSCHEMA.DELETE_INVALIDATE 
                             );          
       DBMS_XMLSCHEMA.REGISTERSCHEMA(
         SCHEMAURL => 'schema.xsd',
         SCHEMADOC => esquema,
         LOCAL     => TRUE,
         GENTYPES  => FALSE,
         GENBEAN   => FALSE,
         GENTABLES => FALSE,
         FORCE     => FALSE
         );
    END;
    /
    
    declare
      xmlT clob := '<?xml version="1.0" encoding="utf-8"?>
    <tns:node xmlns:tns="http://servicios.mycompany.com/Test" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         >
        <tns:inner1>75.000,00</tns:inner1>
    </tns:node>';
    xmlV xmltype;
    begin
        xmlv := xmltype.createXml(xmlT,'schema.xsd');
        xmlv.schemaValidate();
    end;
    /
    Any help?

    Thank you.

    Hello

    First, Oracle seems to take the model of data validation if the value of the node is empty. We can check that in the PL/SQL code. But he also refused to validate valid values.

    I changed the template string, logically equivalent, but it seems to work better.
    If you want to allow blank nodes, use minLength = 0 and make the model accepts it:

    
        
        
    
    
  • ORA-19046 with xsd file valid (on 11.2.0.2)

    Hello Experts,

    I have an xml file and had to import in some relational tables. The xsd files are given.

    I tried: create resources for the xsd files - work; Register scheme-> not possible, due to the ORA-19046.

    XMLSpy validate all xsd (a total of seven files) files is possible - not found error.


    Are there ideas, how to import data into tables? (I don't really need the XML in the database)


    Tounsiiaa for any help!
    Frank

    Here is the script...

    --
    -- Schema Registration Script for XML Schemas in "/public/OTN/schemas/xsd" --
    --
    --
    declare
      GENERIC_ERROR exception;
      PRAGMA EXCEPTION_INIT( GENERIC_ERROR , -31061 );
    
      NO_MATCHING_NODES exception;
      PRAGMA EXCEPTION_INIT( NO_MATCHING_NODES , -64405 );
    
      V_XML_SCHEMA_PATH      VARCHAR2(700) := '/public/OTN/schemas/xsd/datentypen_V1.40.xsd';
      V_XML_SCHEMA           XMLType       := xdburitype(V_XML_SCHEMA_PATH).getXML();
      V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'datentypen_V1.40.xsd';
    begin
      begin
        DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
      exception
        when GENERIC_ERROR or NO_MATCHING_NODES then
          NULL;
        when OTHERS then
          RAISE;
      end;
    
      begin
        DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
      exception
        when GENERIC_ERROR or NO_MATCHING_NODES then
          NULL;
        when OTHERS then
          RAISE;
      end;
    
      -- DOM Fidelity enabled due to presence of mixed text, substitution group heads, or repeating choice structures in complex type defintion :-
    
      DBMS_XMLSCHEMA_ANNOTATE.enableMaintainDOM(V_XML_SCHEMA,'addr_typ',TRUE);
    
      DBMS_XMLSCHEMA_ANNOTATE.enableMaintainDOM(V_XML_SCHEMA,'local_header-cont.model',TRUE);
    
      DBMS_XMLSCHEMA_ANNOTATE.enableMaintainDOM(V_XML_SCHEMA,'person_name_nm_typ',TRUE);
    
      DBMS_XMLSCHEMA.registerSchema
      (
        SCHEMAURL => V_SCHEMA_LOCATION_HINT
       ,SCHEMADOC => V_XML_SCHEMA
       ,LOCAL      => TRUE
       ,GENTYPES     => TRUE
       ,GENTABLES     => TRUE
       ,ENABLEHIERARCHY =>  DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
      );
    end;
    /
    declare
      GENERIC_ERROR exception;
      PRAGMA EXCEPTION_INIT( GENERIC_ERROR , -31061 );
    
      NO_MATCHING_NODES exception;
      PRAGMA EXCEPTION_INIT( NO_MATCHING_NODES , -64405 );
    
      V_XML_SCHEMA_PATH      VARCHAR2(700) := '/public/OTN/schemas/xsd/ehd_header_V1.40.xsd';
      V_XML_SCHEMA           XMLType       := xdburitype(V_XML_SCHEMA_PATH).getXML();
      V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'ehd_header_V1.40.xsd';
    begin
      begin
        DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
      exception
        when GENERIC_ERROR or NO_MATCHING_NODES then
          NULL;
        when OTHERS then
          RAISE;
      end;
    
      begin
        DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
      exception
        when GENERIC_ERROR or NO_MATCHING_NODES then
          NULL;
        when OTHERS then
          RAISE;
      end;
    
      DBMS_XMLSCHEMA.registerSchema
      (
        SCHEMAURL => V_SCHEMA_LOCATION_HINT
       ,SCHEMADOC => V_XML_SCHEMA
       ,LOCAL      => TRUE
       ,GENTYPES     => TRUE
       ,GENTABLES     => TRUE
       ,ENABLEHIERARCHY =>  DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
      );
    end;
    /
    declare
      GENERIC_ERROR exception;
      PRAGMA EXCEPTION_INIT( GENERIC_ERROR , -31061 );
    
      NO_MATCHING_NODES exception;
      PRAGMA EXCEPTION_INIT( NO_MATCHING_NODES , -64405 );
    
      V_XML_SCHEMA_PATH      VARCHAR2(700) := '/public/OTN/schemas/xsd/keytabs_V1.40.xsd';
      V_XML_SCHEMA           XMLType       := xdburitype(V_XML_SCHEMA_PATH).getXML();
      V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'keytabs_V1.40.xsd';
    begin
      begin
        DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
      exception
        when GENERIC_ERROR or NO_MATCHING_NODES then
          NULL;
        when OTHERS then
          RAISE;
      end;
    
      begin
        DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
      exception
        when GENERIC_ERROR or NO_MATCHING_NODES then
          NULL;
        when OTHERS then
          RAISE;
      end;
    
      DBMS_XMLSCHEMA.registerSchema
      (
        SCHEMAURL => V_SCHEMA_LOCATION_HINT
       ,SCHEMADOC => V_XML_SCHEMA
       ,LOCAL      => TRUE
       ,GENTYPES     => TRUE
       ,GENTABLES     => TRUE
       ,ENABLEHIERARCHY =>  DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
      );
    end;
    /
    declare
      GENERIC_ERROR exception;
      PRAGMA EXCEPTION_INIT( GENERIC_ERROR , -31061 );
    
      NO_MATCHING_NODES exception;
      PRAGMA EXCEPTION_INIT( NO_MATCHING_NODES , -64405 );
    
      V_XML_SCHEMA_PATH      VARCHAR2(700) := '/public/OTN/schemas/xsd/ehd_root_V1.40.xsd';
      V_XML_SCHEMA           XMLType       := xdburitype(V_XML_SCHEMA_PATH).getXML();
      V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'ehd_root_V1.40.xsd';
    begin
      begin
        DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
      exception
        when GENERIC_ERROR or NO_MATCHING_NODES then
          NULL;
        when OTHERS then
          RAISE;
      end;
    
      begin
        DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
      exception
        when GENERIC_ERROR or NO_MATCHING_NODES then
          NULL;
        when OTHERS then
          RAISE;
      end;
    
      -- DOM Fidelity enabled due to presence of mixed text, substitution group heads, or repeating choice structures in complex type defintion :-
    
      DBMS_XMLSCHEMA_ANNOTATE.enableMaintainDOM(V_XML_SCHEMA,'ehd_body_typ',TRUE);
    
      DBMS_XMLSCHEMA.registerSchema
      (
        SCHEMAURL => V_SCHEMA_LOCATION_HINT
       ,SCHEMADOC => V_XML_SCHEMA
       ,LOCAL      => TRUE
       ,GENTYPES     => TRUE
       ,GENTABLES     => TRUE
       ,ENABLEHIERARCHY =>  DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
      );
    end;
    /
    declare
      GENERIC_ERROR exception;
      PRAGMA EXCEPTION_INIT( GENERIC_ERROR , -31061 );
    
      NO_MATCHING_NODES exception;
      PRAGMA EXCEPTION_INIT( NO_MATCHING_NODES , -64405 );
    
      V_XML_SCHEMA_PATH      VARCHAR2(700) := '/public/OTN/schemas/xsd/vda_body_V1.2.xsd';
      V_XML_SCHEMA           XMLType       := xdburitype(V_XML_SCHEMA_PATH).getXML();
      V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'vda_body_V1.2.xsd';
    begin
      begin
        DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
      exception
        when GENERIC_ERROR or NO_MATCHING_NODES then
          NULL;
        when OTHERS then
          RAISE;
      end;
    
      begin
        DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
      exception
        when GENERIC_ERROR or NO_MATCHING_NODES then
          NULL;
        when OTHERS then
          RAISE;
      end;
    
      DBMS_XMLSCHEMA.registerSchema
      (
        SCHEMAURL => V_SCHEMA_LOCATION_HINT
       ,SCHEMADOC => V_XML_SCHEMA
       ,LOCAL      => TRUE
       ,GENTYPES     => TRUE
       ,GENTABLES     => TRUE
       ,ENABLEHIERARCHY =>  DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
      );
    end;
    /
    declare
      GENERIC_ERROR exception;
      PRAGMA EXCEPTION_INIT( GENERIC_ERROR , -31061 );
    
      NO_MATCHING_NODES exception;
      PRAGMA EXCEPTION_INIT( NO_MATCHING_NODES , -64405 );
    
      V_XML_SCHEMA_PATH      VARCHAR2(700) := '/public/OTN/schemas/xsd/vda_header_V1.2.xsd';
      V_XML_SCHEMA           XMLType       := xdburitype(V_XML_SCHEMA_PATH).getXML();
      V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'vda_header_V1.2.xsd';
    begin
      begin
        DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
      exception
        when GENERIC_ERROR or NO_MATCHING_NODES then
          NULL;
        when OTHERS then
          RAISE;
      end;
    
      begin
        DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
      exception
        when GENERIC_ERROR or NO_MATCHING_NODES then
          NULL;
        when OTHERS then
          RAISE;
      end;
    
      DBMS_XMLSCHEMA.registerSchema
      (
        SCHEMAURL => V_SCHEMA_LOCATION_HINT
       ,SCHEMADOC => V_XML_SCHEMA
       ,LOCAL      => TRUE
       ,GENTYPES     => TRUE
       ,GENTABLES     => TRUE
       ,ENABLEHIERARCHY =>  DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
      );
    end;
    /
    declare
      GENERIC_ERROR exception;
      PRAGMA EXCEPTION_INIT( GENERIC_ERROR , -31061 );
    
      NO_MATCHING_NODES exception;
      PRAGMA EXCEPTION_INIT( NO_MATCHING_NODES , -64405 );
    
      V_XML_SCHEMA_PATH      VARCHAR2(700) := '/public/OTN/schemas/xsd/vda_root_V1.2.xsd';
      V_XML_SCHEMA           XMLType       := xdburitype(V_XML_SCHEMA_PATH).getXML();
      V_SCHEMA_LOCATION_HINT VARCHAR2(700) := 'vda_root_V1.2.xsd';
    begin
      begin
        DBMS_XMLSCHEMA_ANNOTATE.disableDefaultTableCreation(V_XML_SCHEMA);
      exception
        when GENERIC_ERROR or NO_MATCHING_NODES then
          NULL;
        when OTHERS then
          RAISE;
      end;
    
      begin
        DBMS_XMLSCHEMA_ANNOTATE.disableMaintainDom(V_XML_SCHEMA,FALSE);
      exception
        when GENERIC_ERROR or NO_MATCHING_NODES then
          NULL;
        when OTHERS then
          RAISE;
      end;
    
      DBMS_XMLSCHEMA.registerSchema
      (
        SCHEMAURL => V_SCHEMA_LOCATION_HINT
       ,SCHEMADOC => V_XML_SCHEMA
       ,LOCAL      => TRUE
       ,GENTYPES     => TRUE
       ,GENTABLES     => TRUE
       ,ENABLEHIERARCHY =>  DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
      );
    end;
    /
    create table "EHD_TABLE" of XMLType
    XMLType store as object relational
    XMLSCHEMA "vda_root_V1.2.xsd" ELEMENT "ehd"
    /
    
  • The drop-down list schema lists (with the name/value pairs)

    Hello

    I'm looking for more information on creating a schema type definition that LiveCycle Designer ES will fill (fill in the name and value) of drop-down lists. For example, I have something like:

    < xsd:simpleType name = "RoleTypeCodeType" >
    < xsd:restriction base = "xsd:token" >
    < value xsd: Enumeration = 'ABC' >
    < xsd: annotation >
    < xsd: documentation >
    Aboriginal community
    < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: Enumeration >
    < value xsd: Enumeration = "ADJ" >
    < xsd: annotation >
    < xsd: documentation > referee < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: Enumeration >
    ...

    < xsd:minLength value = "1" > < / xsd:minLength >
    < xsd:maxLength value = "3" > < / xsd:maxLength >
    < / xsd:restriction >
    < / xsd:simpleType >

    This creates a list. I can bind this to a list field. However, of course, when I saw the pdf, my drop down list items in this area are just the three-letter code. I would get the descriptions associated with these articles (as shown on the connection tab) to be filled. The end result is that my list see 'Indigenous community', 'referee', etc. and when selected, return 'ABC', 'ADJ' in the XML during export.

    If list under the connection tab items are filled manually then this export works correctly. However, the list is generated during execution and dynamic. So nobody knows what the schema definition must be for the field in the list on the LiveCycle form to create the name-value pairs?

    Thank you

    John

    Hi John,.

    You will need to incorporate the schema, but you can reference the imported schema as they get integrated as well (there a bug in the designer when they were not integrated, but I think it crept in 8.0).

    In any case to refer to the imported schema you will need to loop though all schemas

    var

    schemas = xfa.resolveNodes('schema[*]');

    Will give it refers to all schemas, the fine loop them;

    for

    (var schemaIndex = 0; schemaIndex< schemas.length;="">

    So if these patterns have an id attribute (I don't think that you can refer to namespace attributes) test the value of the id;

    If

    (schema.@id is "whateveryourschemaidis")

    If there is no attribute ID and you cannot add a you might have to search for the type in each scheme, something like;

    var roleTypeCodeType is schema.xsd::simpleType. (@name is "roleTypeCodeType");

    If (roleTypeCodeType! == undefined)

    {

    ... load the values of the annotation.

    }

    Hope that helps but if you if you can post your schema (and it's imports), I could understand exactly the problem.

    Bruce

  • How call JAX - WS service db

    Hello

    I'm new to JDeveloper and I'm having a few problems when calling a jax - ws a function within the db. To ensure that the problem is not my jax - ws, I have implemented a simple jax - ws based on JDeveloper tutorials to test and have found the same problem. However, if I call this same jax - ws monitor JDeveloper of Altova or simply call using a web browser, the w - jax is behaving properly?

    JAX - ws contains only a single class. I made use of the JDeveloper to generate the jax - ws. Please see the class and the methods below.

    I've also included below the wsdl for this same jax - ws also generated through JDeveloper.

    And the last quotation is the function that calls the method of the 'sayHello' in the db class.


    The function db is the use of the SOAP_API according to the http://www.oracle-base.com/dba/miscellaneous/soap_api.sql


    Function of the error I get when you call the db is:

    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00249: invalid external ID declaration
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 48
    ORA-06512: at "MET.SOAP_API", line 153
    ORA-06512: at "MET.AA", line 32
    31011. 00000 -  "XML parsing failed"
    *Cause:    XML parser returned an error while trying to parse the document.
    *Action:   Check if the document to be parsed is valid.
    
    

    = The code around line 153 SOAP_API: =.


    FUNCTION invoke(p_request IN OUT NOCOPY  t_request,
                    p_url     IN             VARCHAR2,
                    p_action  IN             VARCHAR2)
      RETURN t_response AS
    -- ---------------------------------------------------------------------
      l_envelope       VARCHAR2(32767);
      l_http_request   UTL_HTTP.req;
      l_http_response  UTL_HTTP.resp;
      l_response       t_response;
    BEGIN
      generate_envelope(p_request, l_envelope);
      show_envelope(l_envelope, 'Request');
      l_http_request := UTL_HTTP.begin_request(p_url, 'POST','HTTP/1.1');
      UTL_HTTP.set_header(l_http_request, 'Content-Type', 'text/xml');
      UTL_HTTP.set_header(l_http_request, 'Content-Length', LENGTH(l_envelope));
      UTL_HTTP.set_header(l_http_request, 'SOAPAction', p_action);
      UTL_HTTP.write_text(l_http_request, l_envelope);
      l_http_response := UTL_HTTP.get_response(l_http_request);
      UTL_HTTP.read_text(l_http_response, l_envelope);
      UTL_HTTP.end_response(l_http_response);
      show_envelope(l_envelope, 'Response');
      l_response.doc := XMLTYPE.createxml(l_envelope); -- <<<<<<<<<< Line 153
      l_response.envelope_tag := p_request.envelope_tag;
      l_response.doc := l_response.doc.extract('/'||l_response.envelope_tag||':Envelope/'||l_response.envelope_tag||':Body/child::node()',
                                               'xmlns:'||l_response.envelope_tag||'="http://schemas.xmlsoap.org/soap/envelope/"');
      check_fault(l_response);
      RETURN l_response;
    END;
    -- ---------------------------------------------------------------------
    
    


    ================================================ Java class================================

    package wizard;
    
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.xml.ws.BindingType;
    import javax.xml.ws.soap.SOAPBinding;
    
    @WebService(name = "MyWebService1", serviceName = "MyWebService1", portName = "MyWebService1Port")
    @BindingType(SOAPBinding.SOAP12HTTP_BINDING)
    public class HelloService {
        public HelloService() {
            super();
        }
    
    
        @WebMethod
        public String sayHello (@WebParam(name = "arg0") String s) {
                 return "Hello " + s;
            }
    }
    
    

    ======================================================= WSDL  file ================

    <?xml version="1.0" standalone="yes"?>
    <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.8-b13937 svn-revision#13942. -->
    <definitions targetNamespace="http://wizard/" name="MyWebService1" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:tns="http://wizard/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
      <types>
        <xsd:schema>
          <xsd:import namespace="http://wizard/" schemaLocation="MyWebService1_schema1.xsd"/>
        </xsd:schema>
      </types>
      <message name="sayHello">
        <part name="parameters" element="tns:sayHello"/>
      </message>
      <message name="sayHelloResponse">
        <part name="parameters" element="tns:sayHelloResponse"/>
      </message>
      <portType name="MyWebService1">
        <operation name="sayHello">
          <input wsam:Action="http://wizard/MyWebService1/sayHelloRequest" message="tns:sayHello"/>
          <output wsam:Action="http://wizard/MyWebService1/sayHelloResponse" message="tns:sayHelloResponse"/>
        </operation>
      </portType>
      <binding name="MyWebService1PortBinding" type="tns:MyWebService1">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <operation name="sayHello">
          <soap12:operation soapAction=""/>
          <input>
            <soap12:body use="literal"/>
          </input>
          <output>
            <soap12:body use="literal"/>
          </output>
        </operation>
      </binding>
      <service name="MyWebService1">
        <port name="MyWebService1Port" binding="tns:MyWebService1PortBinding">
          <soap12:address location="http://192.168.1.107:7101/Webservices-Wizard-context-root/MyWebService1Port"/>
        </port>
      </service>
    </definitions>
    
    

    ======================================================= DB Function  ================

    create or replace FUNCTION AA
    (
      PARAM1 IN VARCHAR2
    ) RETURN VARCHAR2 AS
    
    
      l_request   soap_api.t_request;
      l_response  soap_api.t_response;
      l_return    VARCHAR2(32767);
    
      l_url          VARCHAR2(32767);
      l_namespace    VARCHAR2(32767);
      l_method       VARCHAR2(32767);
      l_soap_action  VARCHAR2(32767);
      l_result_name  VARCHAR2(32767);
    
    BEGIN
    
    
      l_url         := 'http://192.168.1.107:7101/Webservices-Wizard-context-root/MyWebService1Port/';
      l_namespace   := 'xmlns="http://192.168.1.107:7101/Webservices-Wizard-context-root/MyWebService1Port?WSDL"';
      l_method      := 'sayHello';
      l_soap_action := 'http://192.168.1.107:7101/Webservices-Wizard-context-root/MyWebService1Port/sayHello';
      l_result_name := 'return';
    
      l_request := soap_api.new_request(p_method       => l_method,
                                        p_namespace    => l_namespace);
    
    
      soap_api.add_parameter(p_request => l_request,
                             p_name    => 'arg0',
                             p_type    => 'xsd:string',
                             p_value   => PARAM1);                                             
    
    
      l_response := soap_api.invoke(p_request => l_request,
                                    p_url     => l_url,
                                    p_action  => l_soap_action);
    
    
      l_return := soap_api.get_return_value(p_response  => l_response,
                                            p_name      => l_result_name,
                                            p_namespace =>  NULL);
                                           
      return l_return;      
    
    END AA;
    
    

    I would appreciate if you could point me in the right direction about this number when you call the jax - ws feature in the comic book?

    Thank you

    Daniel

    Found the solution. I had not noticed that the jax - ws and the SOAP_API according to the http://www.oracle-base.com/dba/miscellaneous/soap_api.sql spoke different version of SOAP. JAX - ws used SOAP12HTTP_BINDING while I understand that SOAP_API is SOAP 1.1

  • The difficulty to consume REST in ADF

    Hey all,.

    Thanks for your help!

    I can't create a data control to a REST service that returns JSON.

    The Rest service url is: https://btc-e.com/api/2/btc_usd/depth

    Here is an example of a small subset of the data returned:

    {"asks":[[552.825,0.33311602],[553.8,1],[553.887,1.92375302],[553.888,2.08576],],"bids":[[552.005,20],[552,6.13619106],[551.999,0.032],[551.8,7.94],[551.7,10.31977256],[551.502,0.2],[551.5,2.7740043],[551.118,0.0263181]]}


    I used an online tool to create a XSD which is required by the wizard:

    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.example.org"
                targetNamespace="http://www.example.org" elementFormDefault="qualified">
      <xsd:element name="root">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="asks">
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:element name="ask" maxOccurs="unbounded">
                    <xsd:complexType>
                      <xsd:sequence>
                        <xsd:element name="price" type="xsd:float"/>
                        <xsd:element name="size" type="xsd:float"/>
                      </xsd:sequence>
                    </xsd:complexType>
                  </xsd:element>
                </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
            <xsd:element name="bids">
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:element name="bid" maxOccurs="unbounded">
                    <xsd:complexType>
                      <xsd:sequence>
                        <xsd:element name="price" type="xsd:float"/>
                        <xsd:element name="size" type="xsd:float"/>
                      </xsd:sequence>
                    </xsd:complexType>
                  </xsd:element>
                </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>
    

    Here are the steps I took in Jdeveloper 12.1.2 (Build JDEVADF_12.1.2.0.0_GENERIC_130608.2330.6668):

    1. Created a new application (Application of Fusion ADF) - taken the default config.
    2. Model right click > New > Gallery > Control(SOAP/REST) data to the Web Service
    3. Give it a name "TestDS", select REST, create a new connection (name: 'Him', endpoint: "https://btc-e.com")-connection Test passes.
    4. Next > path add a resource: (display name of method "/ api/2/btc_usd/depth": "Gdepth")
    5. Next > add the location of the XSD file above to XSD > Next - Connection Test passes
    6. Finishing

    When I run the data control in the 'register of data control', I get the following error:

    Unexpected exception taken: oracle.adf.model.adapter.AdapterException, msg = DCA-29000: Unexpected exception caught: oracle.xml.parser.v2.XMLParseException, msg = start of element root waited. DCA-29000: Unexpected exception caught: oracle.xml.parser.v2.XMLParseException, msg = start of element root waited. : start of element root waited.


    With the trace of the following stack:


    oracle.jbo.jbotester.app.ErrorHandler$ExceptionWrapper: Start of root element expected.
      at oracle.jbo.jbotester.app.ErrorHandler.displayError(ErrorHandler.java:104)
      at oracle.jbo.jbotester.app.ErrorHandler.displayError(ErrorHandler.java:90)
      at oracle.jbo.jbotester.panel.MethodPanel$6.actionPerformed(MethodPanel.java:420)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      at java.awt.Component.processMouseEvent(Component.java:6505)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
      at java.awt.Component.processEvent(Component.java:6270)
      at java.awt.Container.processEvent(Container.java:2229)
      at java.awt.Component.dispatchEventImpl(Component.java:4861)
      at java.awt.Container.dispatchEventImpl(Container.java:2287)
      at java.awt.Component.dispatchEvent(Component.java:4687)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
      at java.awt.Container.dispatchEventImpl(Container.java:2273)
      at java.awt.Window.dispatchEventImpl(Window.java:2719)
      at java.awt.Component.dispatchEvent(Component.java:4687)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
      at java.awt.EventQueue.access$200(EventQueue.java:103)
      at java.awt.EventQueue$3.run(EventQueue.java:688)
      at java.awt.EventQueue$3.run(EventQueue.java:686)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.awt.EventQueue$4.run(EventQueue.java:702)
      at java.awt.EventQueue$4.run(EventQueue.java:700)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
    Caused by: oracle.adf.model.adapter.AdapterException: DCA-29000: Unexpected exception caught: oracle.adf.model.adapter.AdapterException, msg=DCA-29000: Unexpected exception caught: oracle.xml.parser.v2.XMLParseException, msg=Start of root element expected.
      at oracle.adf.model.adapter.dataformat.XMLHandler.<init>(XMLHandler.java:229)
      at oracle.adf.model.adapter.dataformat.XMLHandler.<init>(XMLHandler.java:246)
      at oracle.adfinternal.model.adapter.XMLChildOperation.invokeOperationInternal(ChildOperation.java:960)
      at oracle.adfinternal.model.adapter.ChildOperation.invokeOperation(ChildOperation.java:529)
      at oracle.adf.model.adapter.rest.RestURLDataControl.invokeOperation(RestURLDataControl.java:119)
      at oracle.jbo.jbotester.panel.MethodPanel$6.actionPerformed(MethodPanel.java:408)
      ... 36 more
    Caused by: oracle.adf.model.adapter.AdapterException: DCA-29000: Unexpected exception caught: oracle.xml.parser.v2.XMLParseException, msg=Start of root element expected.
      at oracle.adf.model.adapter.dataformat.XMLHandler.parseDataStream(XMLHandler.java:699)
      at oracle.adf.model.adapter.dataformat.XMLHandler.<init>(XMLHandler.java:224)
      ... 41 more
    Caused by: oracle.xml.parser.v2.XMLParseException; lineNumber: 1; columnNumber: 1; Start of root element expected.
      at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:326)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:453)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:394)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:335)
      at oracle.adf.model.adapter.dataformat.XMLHandler.parseDataStream(XMLHandler.java:691)
      ... 42 more
    ## Detail 0 ##
    oracle.adf.model.adapter.AdapterException: DCA-29000: Unexpected exception caught: oracle.adf.model.adapter.AdapterException, msg=DCA-29000: Unexpected exception caught: oracle.xml.parser.v2.XMLParseException, msg=Start of root element expected.
      at oracle.adf.model.adapter.dataformat.XMLHandler.<init>(XMLHandler.java:229)
      at oracle.adf.model.adapter.dataformat.XMLHandler.<init>(XMLHandler.java:246)
      at oracle.adfinternal.model.adapter.XMLChildOperation.invokeOperationInternal(ChildOperation.java:960)
      at oracle.adfinternal.model.adapter.ChildOperation.invokeOperation(ChildOperation.java:529)
      at oracle.adf.model.adapter.rest.RestURLDataControl.invokeOperation(RestURLDataControl.java:119)
      at oracle.jbo.jbotester.panel.MethodPanel$6.actionPerformed(MethodPanel.java:408)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      at java.awt.Component.processMouseEvent(Component.java:6505)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
      at java.awt.Component.processEvent(Component.java:6270)
      at java.awt.Container.processEvent(Container.java:2229)
      at java.awt.Component.dispatchEventImpl(Component.java:4861)
      at java.awt.Container.dispatchEventImpl(Container.java:2287)
      at java.awt.Component.dispatchEvent(Component.java:4687)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
      at java.awt.Container.dispatchEventImpl(Container.java:2273)
      at java.awt.Window.dispatchEventImpl(Window.java:2719)
      at java.awt.Component.dispatchEvent(Component.java:4687)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
      at java.awt.EventQueue.access$200(EventQueue.java:103)
      at java.awt.EventQueue$3.run(EventQueue.java:688)
      at java.awt.EventQueue$3.run(EventQueue.java:686)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.awt.EventQueue$4.run(EventQueue.java:702)
      at java.awt.EventQueue$4.run(EventQueue.java:700)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
    Caused by: oracle.adf.model.adapter.AdapterException: DCA-29000: Unexpected exception caught: oracle.xml.parser.v2.XMLParseException, msg=Start of root element expected.
      at oracle.adf.model.adapter.dataformat.XMLHandler.parseDataStream(XMLHandler.java:699)
      at oracle.adf.model.adapter.dataformat.XMLHandler.<init>(XMLHandler.java:224)
      ... 41 more
    Caused by: oracle.xml.parser.v2.XMLParseException; lineNumber: 1; columnNumber: 1; Start of root element expected.
      at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:326)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:453)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:394)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:335)
      at oracle.adf.model.adapter.dataformat.XMLHandler.parseDataStream(XMLHandler.java:691)
      ... 42 more
    ## Detail 0 ##
    oracle.adf.model.adapter.AdapterException: DCA-29000: Unexpected exception caught: oracle.xml.parser.v2.XMLParseException, msg=Start of root element expected.
      at oracle.adf.model.adapter.dataformat.XMLHandler.parseDataStream(XMLHandler.java:699)
      at oracle.adf.model.adapter.dataformat.XMLHandler.<init>(XMLHandler.java:224)
      at oracle.adf.model.adapter.dataformat.XMLHandler.<init>(XMLHandler.java:246)
      at oracle.adfinternal.model.adapter.XMLChildOperation.invokeOperationInternal(ChildOperation.java:960)
      at oracle.adfinternal.model.adapter.ChildOperation.invokeOperation(ChildOperation.java:529)
      at oracle.adf.model.adapter.rest.RestURLDataControl.invokeOperation(RestURLDataControl.java:119)
      at oracle.jbo.jbotester.panel.MethodPanel$6.actionPerformed(MethodPanel.java:408)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      at java.awt.Component.processMouseEvent(Component.java:6505)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
      at java.awt.Component.processEvent(Component.java:6270)
      at java.awt.Container.processEvent(Container.java:2229)
      at java.awt.Component.dispatchEventImpl(Component.java:4861)
      at java.awt.Container.dispatchEventImpl(Container.java:2287)
      at java.awt.Component.dispatchEvent(Component.java:4687)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
      at java.awt.Container.dispatchEventImpl(Container.java:2273)
      at java.awt.Window.dispatchEventImpl(Window.java:2719)
      at java.awt.Component.dispatchEvent(Component.java:4687)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
      at java.awt.EventQueue.access$200(EventQueue.java:103)
      at java.awt.EventQueue$3.run(EventQueue.java:688)
      at java.awt.EventQueue$3.run(EventQueue.java:686)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.awt.EventQueue$4.run(EventQueue.java:702)
      at java.awt.EventQueue$4.run(EventQueue.java:700)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
    Caused by: oracle.xml.parser.v2.XMLParseException; lineNumber: 1; columnNumber: 1; Start of root element expected.
      at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:326)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:453)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:394)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:335)
      at oracle.adf.model.adapter.dataformat.XMLHandler.parseDataStream(XMLHandler.java:691)
      ... 42 more
    ## Detail 0 ##
    oracle.xml.parser.v2.XMLParseException; lineNumber: 1; columnNumber: 1; Start of root element expected.
      at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:326)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:453)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:394)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:335)
      at oracle.adf.model.adapter.dataformat.XMLHandler.parseDataStream(XMLHandler.java:691)
      at oracle.adf.model.adapter.dataformat.XMLHandler.<init>(XMLHandler.java:224)
      at oracle.adf.model.adapter.dataformat.XMLHandler.<init>(XMLHandler.java:246)
      at oracle.adfinternal.model.adapter.XMLChildOperation.invokeOperationInternal(ChildOperation.java:960)
      at oracle.adfinternal.model.adapter.ChildOperation.invokeOperation(ChildOperation.java:529)
      at oracle.adf.model.adapter.rest.RestURLDataControl.invokeOperation(RestURLDataControl.java:119)
      at oracle.jbo.jbotester.panel.MethodPanel$6.actionPerformed(MethodPanel.java:408)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      at java.awt.Component.processMouseEvent(Component.java:6505)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
      at java.awt.Component.processEvent(Component.java:6270)
      at java.awt.Container.processEvent(Container.java:2229)
      at java.awt.Component.dispatchEventImpl(Component.java:4861)
      at java.awt.Container.dispatchEventImpl(Container.java:2287)
      at java.awt.Component.dispatchEvent(Component.java:4687)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
      at java.awt.Container.dispatchEventImpl(Container.java:2273)
      at java.awt.Window.dispatchEventImpl(Window.java:2719)
      at java.awt.Component.dispatchEvent(Component.java:4687)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
      at java.awt.EventQueue.access$200(EventQueue.java:103)
      at java.awt.EventQueue$3.run(EventQueue.java:688)
      at java.awt.EventQueue$3.run(EventQueue.java:686)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.awt.EventQueue$4.run(EventQueue.java:702)
      at java.awt.EventQueue$4.run(EventQueue.java:700)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
    
    

    Thanks for your help,

    NRage

    currently the data service REST command is for REST services that return XML.

    For Json results, you should write a Java class that calls the service, analyze the values returned and then expose this class Java as a control data to use in your applications to the ADF.

  • Problem with reading a file xml xsl

    Hello

    When I'm reading an xml xsl file, I get unwanted output.

    Here is the XSL:

    <? XML version = "1.0" encoding = "UTF-8"? >

    <? Oracle-xsl-map

    <.-SOURCES AND TARGETS, NOT CHANGE card SPECIFICATION. ->

    < mapSources >

    < source type = "XSD" >

    "< location of schema ="... /XSD/B2BMarketProperties.xsd"/ >

    " < name rootElement = namespace"ReceipentIDType"=" http://www.example.org "/>

    < / source >

    < / mapSources >

    < mapTargets >

    < target type = "XSD" >

    "< location of schema ="... /XSD/B2BMarketProperties.xsd"/ >

    " < name rootElement = namespace"ReceipentIDType"=" http://www.example.org "/>

    < / target >

    < / mapTargets >

    <!-GENERATED BY ORACLE XSL MAPPER 11.1.1.4.0(build 110106.1932.5682) to [TUE DEC 03 16:06:00 GMT 2013]. ->

    ? >

    < xsl: stylesheet version = "1.0".

    ' xmlns:bpws = ' http://schemas.xmlsoap.org/ws/2003/03/business-process/ "

    ' xmlns:xp20 = ' http://www.Oracle.com/xsl/transform/Java/Oracle.tip.PC.Services.functions.Xpath20 "" "

    ' xmlns:mhdr = ' http://www.Oracle.com/xsl/transform/Java/Oracle.tip.mediator.service.common.functions.MediatorExtnFunction "" "

    ' xmlns:bpel = ' http://docs.oasis-open.org/WSBPEL/2.0/process/executable "

    ' xmlns:oraext = ' http://www.Oracle.com/xsl/transform/Java/Oracle.tip.PC.Services.functions.ExtFunc "" "

    " xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "

    ' xmlns:ns0 = ' http://www.example.org "

    ' xmlns:dvm = ' http://www.Oracle.com/xsl/transform/Java/Oracle.tip.DVM.LookupValue "" "

    ' xmlns:hwf = ' http://xmlns.Oracle.com/BPEL/workflow/XPath "" "

    " xmlns: xsl = ' http://www.w3.org/1999/XSL/transform "

    " xmlns: med = ' http://schemas.Oracle.com/mediator/XPath "" "

    ' xmlns:ids = ' http://xmlns.Oracle.com/BPEL/services/IdentityService/XPath "" "

    ' xmlns:bpm = ' http://xmlns.Oracle.com/bpmn20/extensions "" "

    ' xmlns:xdk = ' http://schemas.Oracle.com/BPEL/extension/XPath/function/XDK "" "

    ' xmlns:xref = ' http://www.Oracle.com/xsl/transform/Java/Oracle.tip.xref.XPath.XRefXPathFunctions "" "

    " container = ' http://www.w3.org/2001/XMLSchema "

    ' xmlns:ora = ' http://schemas.Oracle.com/XPath/extension "" "

    ' xmlns:socket = ' http://www.Oracle.com/xsl/transform/Java/Oracle.tip.adapter.Socket.ProtocolTranslator "" "

    ' xmlns:ldap = ' http://schemas.Oracle.com/XPath/extension/LDAP "" "

    exclude-result-prefixes = "xsi xsl ns0 xsd APO xp20 mhdr bpel oraext dvm hwf med bpm xdk Xref ora socket ldap ID" >

    < xsl: output method = "xml" version = "1.0" encoding = "UTF-8" Indent = "yes" / >

    < name of xsl: variable = sΘlectionner "ReceipentID" = document('..) ' /XSD/B2BMarketProperties.XML')"/ > '.

    < xsl: template match = "/" >

    < ns0:ReceipentIDType >

    < xsl: for-each select = "$ReceipentID" >

    < ns0:ReceipentID >

    < xsl: value-of select = "$ReceipentID" / >

    < / ns0:ReceipentID >

    < / xsl: foreach >

    < / ns0:ReceipentIDType >

    < / xsl: template >

    < / xsl: stylesheet >

    Here is the XML (B2BMarketProperties.xml)

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < ReceipentIDType xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "

    " xsi: schemaLocation =" http://www.example.org ' B2BMarketProperties.xsd '

                     xmlns=" http://www.example.org ">

    < ReceipentID > 123 < / ReceipentID >

    < ReceipentID > 345 < / ReceipentID >

    < / ReceipentIDType >

    The result I get with this code is

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < = xmlns:ns0 ns0:ReceipentIDType ' http://www.example.org ">

    < ns0:ReceipentID > 123345 < / ns0:ReceipentID >

    < / ns0:ReceipentIDType >

    But I need output in the following format

    " < = xmlns:ns0 ns0:ReceipentIDType ' http://www.example.org ">

    < ns0:ReceipentID > 123 < / ns0:ReceipentID >

    < ns0:ReceipentID > 345 < / ns0:ReceipentID >

    < / ns0:ReceipentIDType >

    You guys could let me know what I am doing wrong. Any help would be appreciated.

    Thank you

    It worked for me:

Maybe you are looking for