Polling for XML data

My task is to design a module which will be pollong an url for some xml data. The data will be updated from the source at around 19.30 (+/- 1 hour) every day. I'm on wls 6.1 with portal in a J2EE application. Anybody know a pattern for this? Any suggestions?

My task is to design a module which will be pollong an
url for some xml data. The data will be updated from
the source at around 19.30 (+/- 1 hour) every day. I'm
on wls 6.1 with portal in a J2EE application. Anybody
know a pattern for this? Any suggestions?Why cant you just create a thread that loads the URL and then sleeps for a day (or slightly shorter so you dont miss the update)?

Similar Messages

  • BI Admin Tool and XSLT transformation for XML data source - How it works ?

    Hello,
    There is a possibility to import data from XML data source using BI Admin Tool.
    In the import window we can point XSLT file. What is the purpose of that XSLT field?
    Why I am asking ?
    I thought it is smth like XSLT processor, but simply it doesnt work.
    What I did:
    - I pointed XML data source file
    - I pointed XSLT transformation file
    - Click OK, and still get the message that the XML file structure is not supported
    After that I transformed that XML file with some desktop XSLT processor using the same XSLT file, and I tried to connect that file directly using BI Admin tool.Then it works. So it means that the transformation is ok.
    So basically one question comes to my mind in that situation:
    What is the purpose of XSLT field in BI Admin Tool when it comes to XML data source ?
    (it doesnt look like XSLT processor)
    Greetings
    /Michal

    Hi Mariano
    Why you need to use XSLT for transforming XML file into ABAP table
    Code is a part of some ABAP report. Looks like it is reading a file from file system and updating table after transformation
    If you have requirement like you need to read XML file and then insert the data into a SAP table
    You can use
    File to RFC
    File to Proxy scenario using SAP PI.
    Please provide more inputs on requirement to help
    Thanks
    Gaurav

  • Please help. Text fields launch email for XML data

    Let me start by saying I have only been using LiveCycle for two days. I did buy a book and have exhaustuvley searched for a solution....with that said....
    After completing almost the entire form, somehow or other I managed to make all the text fields but one initiate email of xml data as soon as you try to type in them in PDF preview or reader or pro.
    I added a new text field for test and it does NOT do the same thing. I can't for the life of me figure out how to turn this off.
    Issue:
    When checking pdf preview, if I click inside a text field to type, it stops the preview and launches an email window with a blank XML file. It does the same thing if I open the file in Reader or Pro.
    Solution I am looking for:
    My form is nearly complete and i would hate to have to start all over. Basically, I do NOT want the text fields to initiate an email of the form data. I just want the user to be able to type in them as required. In my opinion this should only happen with the "email form" button.
    Thanks,
    Joe
    [email protected]

    funny, i found a workaround. after nearly 3 hours and finally posting here, in 15 minutes i found something. I still would like to know
    what caused this if anyone knows.....
    Fix:
    By selecting the text field and changing object type to "Text" then changing it back to "TextField" then save, it now works fine. Of course I had to do it on all 25 fields but way better than redoing all the custom fields i created.

  • Incorrect MIME type for XML Data Connection POST requests

    It appears that Xcelsius 2008u2019s XML Data Connection logic does not specify the correct MIME type for the data it sends to the server in its POST request.  Using an HTTP debug proxy, I was able to see that Xcelsius sends XML data in the POST, but is setting a content-type of u201Cx-www-form-urlencodedu201D.  According to the W3C spec:
      http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1
    Data sent with a MIME type of u201Cxxu201D should be encoded as key?value pairs, like this:
      key1=val1&key2=val2&Submit=Submit
    So, what Xcelsius is doing is clearly incorrect.  Worse, if your server process is a Java servlet, you may find that the POSTed data will be gobbled up by the servlet container and you wonu2019t be able to read it using a getInputStream(), or getReader() call because itu2019s already been processed by a call to the getParameter() method.
    The correct mime type for POSTing an XML formatted request from Xcelsius should be "text/xml".
    Wayne

    Hi,
    The Error #2032 your getting is due to the Flash player security.
    To remove this this error you need one crossdomain Xml file in the root directory which actually provides a lot more control over who has access to your data from a SWF. The cross domain policy is attached as crossdomain.xml.
    In the XML file, it is used a wildcard (*). This allows a SWF located on any machine to access your data source. You can certainly use an IP address or domain name to restrict access rather to opening it up completely. I always start with the wildcard to make sure my dashboard works, then start restricting access as necessary.
    Here is a whitepaper with everything you need to know about Flash player security:
    http://www.adobe.com/devnet/flashplayer/articles/flash_player_9_security.pdf
    Please let me know if you need any more clarification.
    Regards,
    Sanjay

  • How to clear cache for XML data source?

    Hi All,
    I'm facing a problem loading XML data into Oracle using Oracle Data Integrator. The problem is ODI will cache the data of the XML file at the first time loading the data. And afterwards, when the XML file changed, ODI will load data from the cache.
    I did serveral testing on this. If I run the interface in local agent of the designer, I must restart the designer to clear the cache. If I run the interface in an agent, I must restart the agent to clear the cache.
    Below is my configuration:
    ODI version: 10.1.3.5.0
    The technology of the source: XML.
    JDBC driver: com.sunopsis.jdbc.driver.xml.SnpsXmlDriver
    Does anybody know how to clear the cache of the agent or XML?
    Thanks.

    Hi ,
    Use drop_on_disc or dod in your JDBC URL .
    example ,
    jdbc:snps:xml?f=C:\mutation.xml&d=C:\mutation.xsd&lf=C:\mutation.log&ro=true&dod=yes
    The dod (drop_on_disc) drop automatically the schema when closing the JDBC connection.
    dod option must be the last option of the URL.
    This option removes the reference to the schema from the driver, and if the schema is store in memory, it also drops the schema. If the schema is stored in an external database (set via db_props), the driver tries to drop the database schema.
    Thanks,
    Sutirtha

  • Establishing Database connection for XML Data Definition?

    I have a XML Data Definition which will query data from Oracle Database.
    I did some research and tried few setting options in JDeveloper (11g), but had no luck on finding a way to connect to Database.
    My goal is to use JDeveloper to run a XML Data Definition against Database and generate a XML File with data.
    Can this be done?
    Data Definition:
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <dataTemplate name="XX_ATT_VALIDATION" description="description"
    dataSourceRef="MTS-AT"
    version="1.0">
    <properties>
              <property name="include_parameters" value="false" />
              <property name="include_null_Element" value="true" />
              <property name="include_rowset_tag" value="false" />
    </properties>
    <parameters>
              <parameter name="p_batch_id" dataType="character"/>
    </parameters>
    <dataQuery>
         <sqlStatement name="Q_HEADER_VALUES">
              <![CDATA[
    select distinct
    sci.bill_cycle,
    to_char(sci.bill_date,'mm/dd/yyyy') bill_date,
    to_char(sysdate,'mm/dd/yyyy') report_run_date
                   from st_cm_interface sci
                   where sci.record_type='05'
                   and sci.batch_id=:p_batch_id
              ]]>
    </sqlStatement>
    <dataStructure>          
         <group name="G_HEADER_VALUES" source="Q_HEADER_VALUES">
    <element name="bill_cycle" value="bill_cycle"/>
    <element name="bill_date" value="bill_date"/>
    <element name="report_run_date" value="report_run_date"/>
    </group>
    </dataStructure>
    </dataTemplate>

    Hi,
    Consider there is 2 database, Oracle_1 and Oracle_2.
    I want to fetch some table data in Oracle_2 from Oracle_1 database Stored procedure/functions through query staments and cursors. How to establish the Oracle_1 DB connection in Oracle_2 DB stored procedure/function. Is it possible?
    It's not the same how you implement the programs in java or .Net to create DB connection. It's different over here. You have use the DataBase Links in order to make to connection with another DB and use that Link in the stored procedure or function where ever its necessary as per your requirement.
    - Pavan Kumar N

  • Polling for new Data in Tables with SQL-functions

    Hi
    In my table I have 2 columns:
    event_state : integer (0 = unread, 1 = read)
    min_process_time : date
    In the DB-Adapter-Wizard I can configure my event_state-Field for using as logical delete field. In the SQL-Query there is a
    ... WHERE event_state=0
    But, I only want to query all new entries in this table, where
    min_process_time > SYSDATE.
    How can I configure my toplink-mapping, that SYSDATE can be used in the polling-query? If I use plain-sql instead of the expression from the Wizard (last page), then this sql-statement is ignored. In an expression I only can use a constant-value.
    Any idea?
    Thanks
    Gregor

    Hi
    I am creating a database Polling (logical delete OPEN to CLOSED) adapter that polls a table for records which have a "SCHEDULED" date field.
    The Polling Adapter should pick up those records where the status is OPEN and SCHEDULED<=SYSDATE.
    DB Adapter wizard does not allows this where clause(SCHEDULED<=SYSDATE) to be set; so i tried modifying the Toplink SQL with custom SQL. But it does not works. Please suggest a workaround.
    Please help.
    Thanks
    Debashis

  • Returning a sys_refcursor for XML data in a function

    As I typically write my queries in packages, and return sys_refcursor's to return data into a .NET DataSet via the OracleDataAdapter, I would like to know if it is possible to return the data using the OracleCommand.ExecuteXmlReader method to return XML results. None of the examples I have found delve into this area.
    Versions:
    ODP.NET : 10.2.X
    .NET : 2.0
    Firstly here is the function being called.
    <code>
    CREATE OR REPLACE FUNCTION XML_TEST_FUNC RETURN sys_refcursor
    AS
        l_serviceTable XML_SERVICE_TABLE_TYPE := XML_SERVICE_TABLE_TYPE();
        l_badgeTable XML_BADGE_TABLE_TYPE := XML_BADGE_TABLE_TYPE();
        l_cursor sys_refcursor;
    BEGIN
        FOR badgeRow IN (SELECT * FROM BADGE)
        LOOP
            FOR serviceRow IN (SELECT * FROM SERVICE WHERE BADGEID = badgeRow.BADGEID)
            LOOP
                l_serviceTable.extend;
                l_serviceTable(l_serviceTable.last) := XML_SERVICE_ROW_TYPE(serviceRow.SERVICEID, serviceRow.SERVICENAME);
            END LOOP;
            l_badgeTable.extend;
            l_badgeTable(l_badgeTable.last) := XML_BADGE_ROW_TYPE(badgeRow.BADGEID, badgeRow.BADGENAME, l_serviceTable);
        END LOOP;
        OPEN l_cursor FOR
        SELECT * FROM TABLE(l_badgeTable);
        RETURN l_cursor;
    END;
    </code>
    XML_BADGE_ROW_TYPE and XML_SERVICE_ROW_TYPE are object types and XML_BADGE_TABLE_TYPE and XML_SERVICE_TABLE_TYPE are table objects.
    I have done this as I want to return nested data of the Services that relate to a Badge.
    Here is the C# code I am using to try and return the function results.
    <code>
    _command = new OracleCommand("XML_TEST_FUNC", _connection);
    _command.CommandType = System.Data.CommandType.StoredProcedure;
    _command.BindByName = true;
    command.Parameters.Add(new OracleParameter("RETURNVALUE", OracleDbType.RefCursor));
    _command.Parameters["RETURN_VALUE"].Direction = System.Data.ParameterDirection.ReturnValue;
    _command.XmlCommandType = OracleXmlCommandType.Query;
    _command.XmlQueryProperties.RootTag = "RESULT_SET";
    _command.XmlQueryProperties.RowTag = "BADGE";
    _command.XmlQueryProperties.MaxRows = -1;
    _reader = _command.ExecuteXmlReader();
    _document = new XmlDocument();
    _document.PreserveWhitespace = true;
    _document.Load(_reader);
    </code>
    All i get is the following error:
    <error>
    Oracle.DataAccess.Client.OracleException ORA-01036: illegal variable name/number
    at Oracle.DataAccess.Client.OracleCommand.XmlHandleException(OracleException e)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteXmlQuery(Boolean wantResult)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteXmlReader()
    at OracleXmlTestApp.Program.Main(String[] args) in D:\Projects\OracleXmlTestApp\OracleXmlTestApp\Program.cs:line 35
    </error>
    Any suggestion would be greatly appreciated.

    That does work, but I you want to aim for tidy XML it provides more than you would want. eg:
    <ROWSET>
    <ROW>
      <XML_TEST_FUNC>
       <XML_TEST_FUNC_ROW>
       </XML_TEST_FUNC_ROW>
      </XML_TEST_FUNC>
      <XML_TEST_FUNC>
       <XML_TEST_FUNC_ROW>
       </XML_TEST_FUNC_ROW>
      </XML_TEST_FUNC>
    </ROW>
    </ROWSET>In-between the <XML_TEST_FUNC_ROW> you do end up with the data you want, but the extra tags do not look crash hot.
    I did attempt the use of the DBMS_XMLGEN package and was more successful where the output was more to my liking. eg:
    <MyBadges>
      <Badge>
        <BadgeID>500000001</BadgeID>
        <BadgeName>My Badge</BadgeName>
        <Services>
          <XML_SERVICE_ROW_TYPE>
            <ServiceID>600000005</ServiceID>
            <ServiceName>My Service</ServiceName>
          </XML_SERVICE_ROW_TYPE>
        </Services>
      </Badge>
    </MyBadges>The function called is as follows:
    CREATE OR REPLACE FUNCTION XML_TEST_FUNC_2 RETURN XMLTYPE
    AS
        l_serviceTable XML_SERVICE_TABLE_TYPE := XML_SERVICE_TABLE_TYPE();
        l_badgeTable XML_BADGE_TABLE_TYPE := XML_BADGE_TABLE_TYPE();
        l_cursor sys_refcursor;
        l_handle DBMS_XMLGEN.CTXHANDLE;
        l_result XMLTYPE;
    BEGIN
        FOR badgeRow IN (SELECT * FROM BADGE)
        LOOP
            l_serviceTable := XML_SERVICE_TABLE_TYPE();
            FOR serviceRow IN (SELECT * FROM SERVICE WHERE BADGEID = badgeRow.BADGEID)
            LOOP
                l_serviceTable.extend;
                l_serviceTable(l_serviceTable.last) := XML_SERVICE_ROW_TYPE(serviceRow.SERVICEID, serviceRow.SERVICENAME);
            END LOOP;
            l_badgeTable.extend;
            l_badgeTable(l_badgeTable.last) := XML_BADGE_ROW_TYPE(badgeRow.BADGEID, badgeRow.BADGENAME, l_serviceTable);
        END LOOP;
        OPEN l_cursor FOR
        SELECT * FROM TABLE(l_badgeTable);
        -- Get a handle to the XML document
        l_handle := DBMS_XMLGEN.NEWCONTEXT(l_cursor);
        -- Replace the default ROWSET tag with my own 
        DBMS_XMLGEN.SETROWSETTAG(l_handle, 'MyBadges');
        -- Remove the default ROW level tag with my own
        -- If I passed in text instead of NULL I would just change the element name
        -- I can leave it off altogther and get the default, canonical format 
        DBMS_XMLGEN.SETROWTAG(l_handle, 'Badge');
        -- Display null tags for empty columns
        DBMS_XMLGEN.SETNULLHANDLING(l_handle, dbms_xmlgen.EMPTY_TAG);
        -- Create an XML document out of the ref cursor
        l_result := DBMS_XMLGEN.GETXMLTYPE(l_handle);
        RETURN l_result;
    END;with the C# code as such:
    _command = new OracleCommand("XML_TEST_FUNC_2", _connection);
    _command.CommandType = CommandType.StoredProcedure;
    _command.Parameters.Add(new OracleParameter("RETURN_VALUE", OracleDbType.XmlType, ParameterDirection.ReturnValue));
    _command.ExecuteNonQuery();
    OracleXmlType _result = (OracleXmlType)_command.Parameters["RETURN_VALUE"].Value;
    _result.GetXmlDocument().Save("C:\\output.xml");Maybe a bit more work, but better result.
    Thanks for your help though, as it has provided other possiblities.

  • DbConnectionAttributes for XML data source

    Post Author: zmtun
    CA Forum: .NET
    I use XML document which includes both Schema and data. I'd like to get DbConnectionAttributes to set to the crystal report's ConnectionInfo property. Thanks.

    Just so I know, you are aware that xml files you are loading
    into flash are relative to the html page that is serving up the
    flash movie and not the swf file? Just want to be sure. If the xml
    file is 2 levels below your html page the path would be
    /folder/folder/myfile.xml or something like that.

  • Datagrid / timer based polling for live data

    Hello,
    Thanks for opening my question.
    I have a datagrid that is bound to an Array (not
    ArrayCollection) that comes from an AMFPHP query.
    There is a setinterval timer that updates the array with new
    data every 5 seconds.
    Trouble is, when you select a row in the dataset, when the
    setInterval timer fires, it loses focus of the selected item. Is
    there a way around it? I know FDS has support for subscribing to
    updates, but we are a very small startup and we cannot afford FDS
    right now.
    Can I be helped? Feel free to post solutions that involve
    opensource software that will run on LAMP.
    Thanks for reading.
    -Chris

    If you can devise logic that lets you update the individual
    dataprovider elements instead of re-assigning the entire
    dataProvider, that should do what you want.
    I haven't tested this, mind you but, my experience indicates
    it should work.
    You would want to compare the new data with the current data,
    and to use the appropriate api to update the changed item. It would
    probably be setItemAt() for Array collection, for example. Try this
    before you re-architect your app, though.
    Alternatively, you could just restore the focus after an
    update.
    Tracy

  • XML data inserting into Master, not Page

    First, I fully admit that I jumped into the deep end of the pool.  This is my first InDesign project and I'm trying to set up a 2-page spread master to support loading my content from XML.
    Thanks to the great online help, these forums/community resources, and my growing bookshelf, I've successfully (or so it seems) created my Master layout, with frames appropriately tagged for my XML (as confirmed by the Structure).  Since I'm very novice at InDesign, my testing isn't always unambiguous, but I HAVE successfully loaded my external XML (including graphics and anchored text, plus the story) into my document.
    The problem is that the data seems to be flowing into the Master, and not the Page.  So if I create all the pages I need ahead of time (right now just 2 spreads for my test), both pages are populated with the first record.
    If I only create the first spread, then the data flows and I get the magic "+" for overflow, but I can't click on it in the Page.  If I change to the Master I can click on it, which seems the major clue as to why this isn't working.  I just have no idea how to fix it.
    From everything I've read it seems that I should be able to tag my frames in the Master (which I want to reuse for other documents) and have the data flow into the Pages.
    Am I missing something obvious? 
    Or is what I'm trying to do just not possible?  (if so, does that mean I have to keep re-tagging the frames every time I make a new Document?  ugh)
    I've spent hours trying to resolve this, and would really appreciate a pointer to get me moving again.
    Thanks!
    julie

    Hm, that seems contradictory to everything I've read and the examples I've seen  (although I may have misunderstood the examples - none are quite as complicated as my layout).  My text frame has several anchors for XML data that doesn't just flow with the story.  How do I set up the tagged anchor frames I need if the story text frame is in the Master but not tagged?
    I thought that the story text frame and the anchor frames (some graphics and some text) all needed to be in the same context.  If I put them in the Master I get the XML flowing into the Master.  If I put them into the Page then the new pages created don't have the proper frames.  If I just put the story text frame in the Master, how do I associate it with the anchor frames (I only know how to do this by using the Story editor on the tagged frame as described in A Designer's Guide To Adobe InDesign and XML)?
    I'll go back and work through the samples again, but I definitely don't understand how it all fits together.
    Thanks!
    j

  • How to send te XML data using HTTPS post call & receiving response in ML

    ur present design does the HTTP post for XML data using PL/SQL stored procedure call to a Java program embedded in Oracle database as Oracle Java Stored procedure. The limitation with this is that we are able to do HTTP post; but with HTTPS post; we are not able to achieve because of certificates are not installed on Oracle database.
    we fiond that the certificates need to be installed on Oracle apps server; not on database server. As we have to go ultimately with HTTPS post in Production environment; we are planning to shift this part of program(sending XML through HTTPS post call & receiving response in middle layer-Apps server in this case).
    how i can do this plz give some solution

    If you can make the source app to an HTTP Post to the Oracle XML DB repository, and POST contains a schema based XML document you can use a trigger on the default table to validate the XML that is posted. The return message would need to be managed using a database trigger. You could raise an HTTP error which the source App would trap....

  • XML Data Sources

    i was trying to run an initialisation load for 0material
    from an xml data source (6A* ) , however i got an error message
    saying that only a delta load can be run for xml data sources.
    why is that so ? can someone pls explain to me.

    today i tried the:
    xfa.host.importData("./data.xml", false);
    i get a "general exception" at this point, which tells me that the number of arguments is wrong. If i leave out the second argument (the "false" one), i get a "NotAllowedError" exception, which tells me that security preferences deny my attempt to use that function. Where can i configure this or what am i doing wrong?
    (because this one is developing away from my original problem, i opened another thread ( http://forums.adobe.com/thread/514822 ) which describes my original issue more in detail)

  • XML data in obiee 10g/11g

    Hi all,
    how to view the data in XML datasource from Admin tool. I think it is not possible. for database tables we can view by right click on the table and view data.. But it is not working for XML data.. Is there any work arounds for that.. .thanks in advance...

    No, you can't. No workarnd.

  • XML data uploading

    Hi Friends,
    Iam uploading xml data file.
    For xml data uplodation we need info cube or not?
    If no info cube means from where data store?
    In info package iam not getting data selection path.
    How to upload xml file?plz help me
    Thanks&Regards
    RaMya

    Hi,
    check out this thread....
    How to upload XML flat file
    See the below link for program which is uploading the XML file in to SAP, this will work in 4.6C
    http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/Codes/Report/Z_RMTIWARI_XML_TO_ABAP_46C.html
    use this XML file for the above program:
    http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/UtilityCode.html
    See the below link for one more program
    http://wiki.ittoolbox.com/index.php/Code:Download_and_upload_OO_ABAP_class_in_XML_format
    hope this is helpful...
    Message was edited by:
            Swetha G
    Message was edited by:
            Swetha G

Maybe you are looking for