Problems using XML URL data service on Jdev

Not sure if this is the right forum for this but couldn't find specific forum on XML.
I"m using Jdev Studio Edition Version 11.1.1.4.0 (Win 2008 Server). I'm followng the tutorial (http://www.oracle.com/technetwork/developer-tools/jdev/ccset10-all-091120.html) which treaches how to create a URL service to read RSS feeds.
My real question is about any guidance in creating proper XML schemas. I've read the documentation from wr.org but I"m still not sure about any key rules to follow for creating XML schemas and if XML schemas are a muust for using XML DB to read content from the internet.
Following the instructions I created the following XML schema:
<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="rss">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="channel" type="channel"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="channel">
<xsd:sequence>
<xsd:element name="lastBuildDate" type="xsd:string"></xsd:element>
<xsd:element name="title" type="xsd:string"></xsd:element>
<xsd:element name="link" type="xsd:string"></xsd:element>
<xsd:element name="description" type="xsd:string"></xsd:element>
<xsd:element name="managingEditor" type="xsd:string"></xsd:element>
<xsd:element name="language" type="xsd:string"></xsd:element>
<xsd:element name="item" type="item" minOccurs="0" maxOccurs="100"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="item">
<xsd:sequence>
<xsd:element name="title" type="xsd:string"></xsd:element>
<xsd:element name="link" type="xsd:string"></xsd:element>
<xsd:element name="description" type="xsd:string"></xsd:element>
<xsd:element name="pubDate" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
When trying to run the page I get the following trace:
Target URL -- http://127.0.0.1:7101/Application1-Project1-context-root/faces/newsPage.jspx
Tag: Definition
<XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
<XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
<XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
<XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
<XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
<XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
<XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
<XMLHandler> <parseDataStream> Failed to create the DOM tree for the source. Resaon: Expected '>'.
Any idea what I am doing wrong? Thanks, J

Hi Jay,
Most of XML parsers mainly support UTF-8 encoding by default. So if the source is Windows 1252 encoded, the parser might fail.
There are two potential solutions (including but not limited to):
1) Use encoding tools/functions to translate the source with UTF-8 encoded.
2) Change ADF configurations to see if ADF can deal with Windows 1252 encoded source. Also people in ADF forum may have suggestions from their point of view.
Best regards,
Rucong Zhao
Oracle Berkeley DB XML

Similar Messages

  • Use XML as data input for Crystal Report for Eclipse

    Hi,
    I am completely new to crystal report and please kindly forgive me if I ask some stupid questions.
    Actually, I have searched the forum for the topic and found some related threads, but I still want to
    have some responses from crystal report experts on this issue.
    Our developer tool is IBM RAD 7.0 and it has crystal reports tools installed in it. I want to use
    crystal report to solve one of our business solutions. I have the following questions about the
    feasbility of this solution:
    (1). I need to specify data at runtime during report generation. I think using fixed data source
         (for example, SQL query or Stored Procedure) may not fit our needs. I think if crystal report
         can accept XML as input to generate reports at runtime, then it will be perfect. Can CR
         use XML as data source as input?
    (2). Actually, one of our business requirements is to generate a letter. Can CR do a report
          layout such that a letter format can be achieved? If yes, would you let me know the
          report layout name?
    (3). We need to export the report into PDF format, I know CR can do PDF output. But can
          CR be controlled to export this into bytes stream? Or the PDF must be saved into a
          physical file?
    (4) If I need to learn more about CR, which book will you recommend?
    Thanks in advance for your advice,
    Raymond

    Thanks for the help Ted
    Works like a charm now.
    Or atleast my very very simple XML report works.
    Now I just need to play around and see what I can do and what I cant.
    I just want to make sure I understand how this works.
    1) I start of with a XML file (or URL or other data source as explained in your BLOG)
    2) I then have to create blank report which will have its data source set to my XML file.
        This report (rpt file) will always have its data source set to the original XML location
    Can this be dynamically changed, or does a new rpt file need to be created each time
        (or atleast I will have to re-run "CreateXMLInlineSchemaReport" from your BLOG)
    3) I can now use this rpt file as I would any other rpt file but its data source will be the original XML file
       - If I update or change the XML file, the report will dynamically reflect these changes.
    4) To change the data source, I need to recreate a new rpt file as per point 2. Which will now be blank.
    5) Filtering.... if I want to filter the XML data do I use normal parameters. If I want to filter the data before
        I pull it do I need to change anything. In otherwords if I have a XML file with 1000 records, but I only want say
    5 of them, how do I only pull those 5 without first pulling the whole 1000 records. Hope that makes sense.
    As I said I am very new to this so some things still fly over my head, but I do play around abit so hopefully
    will find what I am looking for.
    Cheers
    Darren
    PS any other links to info on creating and running reports of XML data sources would be greatly appriciated

  • Impossible to use "Connect to Data/Service" with BlazeDS

    Hi everybody, I'm work on FB4 since 3 weeks, but I have big problem to use "Connect to Data/Service" with BlazeDS.  each time I try to use it, it's the same question " You must define a BlazeDS server" and when I define the BlazeDS server and .war, I have the question again... You must define a BlazeDS server
    I work on Mac OsX Leopard and his java 6.
    Thanks for your help

    Hi,
    Thanks for your feedback
    Can you please tell us which version of Flash Builder4 and BlazeDS you are using.?
    Also, can you try the same workflow by using the turnkey version of BlazeDS(4.0.0.11428) with Flash Builder BETA2 build.
    Please let us know the outcome.
    Thanks,
    Balaji
    http://balajisridhar.wordpress.com

  • Extract account Based COPA from R/3 using Business Object data services

    Hello,
    We have a requirement to extract Account Based COPA from SAP R/3 to Teradata using Business Objects data services.
    I have read couple of white papers which give information on Rapid Marts( which are built in packages) already available for some applications like inventory, GL, AP, AR etc. But I could not find anything for COPA.
    Would anyone give me any information on how to use BO data services for COPA?
    Also if there is no rapid mart available for COPA, does anyone know how to create custom data marts in BO Data services?
    Is there any document available on this?
    Please respond as soon as possible.
    Thanks.

    Hi,
    this forum is for the SAP Integration Kit. Would suggest you post your question into the EIM area for Data Services.
    Ingo

  • Problem in Change own data service

    Hi ,
                I am facing problem in Change own data service. I am getting following error while opening the service.
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: failed to create or init instance of model 'com.sap.xss.hr.cod.model.CodModel' in scope APPLICATION_SCOPE with instanceId 'null'
    Do I need to configure this service through SPRO under Personal Mangement -> Employee Self Service ->
    Server Specific Settings -> Adress Book -> Who's Who.
    Am I missing any configurational step on R3 side ?
    Kindly provide some solution.
    Thanks in advance
    Abhay

    Hi Abhay,
    You need to upgrade the EA_HR component to SP22. Alo make sure that SAP_HR and EA_HR components are in sync.
    SAP Note: 1081261
    Also refer thread: **Very Urgent**Do i need to upgrade SP level of EA-HR components
    Regards
    Deb

  • How to Load External Data to SAP BPC using SAP BO Data Services

    Hi,
    We want to load data from an external MS SQL Server DB to SAP Business Planning and Consolidation (BPC 7.5 Netweaver version) using SAP BO Data Services 4.0 as ETL. What is the best way to load data to SAP BPC using Data Services?
    Thanks

    Hello Devi,
    There are three ways you can load Master Data in BPC
    1) Copy and paste.
    Download master data in flat file .Copy the  master data and paste in members of dimension after that process the dimension.
    2) Using SISS Pakage - load Flat File into BPC-Cube
    3) Using SQL Command.
    Thanks.
    With regards,
    Anand Kumar

  • I am not able to use my gprs data services in roaming

    i am not able to use my gprs data services in roaming....pls tell me how may i solve this problem

    Talk to your cellular provider.

  • Problem using BAPI to create Service Confirmation in CRM

    Good afternoon all.
    I have raised this is CRM forum too, just thought it best to ask the broader ABAP community the question too.
    We are encountering a problem using a BAPI to create a transaction in CRM, specifically:
    I am trying to create a Service Confirmation (BUS2000117) in a CRM system using the BAPI BAPI_BUSPROCESSND_CREATEMULTI.
    The BAPI succeeds in creating the header of the transaction, but I cannot make the BAPI create any other data in the transaction such as partners or items.
    Just want to be sure that I am not being foolish...has anyone succeeded in using this BAPI to create an error-free Service Confirmation?
    Regards
    Nick

    I am going to pop this thread into General ABAP forum too.
    Nick

  • Setup Cluster using Solaris Container data service

    We have a two-node cluster that we would like to use to create either a zone cluster or use the Solaris Container data service that would create a scalable (or multiple master) data service of two zones, one on each node. We have an app running in the zone, CiscoWorks, that has a local database of jobs that are scheduled to run to configure Cisco switches. I was curious how we setup the storage. If each zone is running on local disks, how do the zones stay in sync and the database updated with job information? Would I setup a device group of the disks where the zones will reside on each node? Can I use SAN as the local disk so the zones can be replicated to a Disaster Recovery location?
    Thanks for any help,
    Chuck

    Chuck,
    Sadly, I think I'm going to make your implementation decisions a lot more complicated because there are three ways you can use zones within Solaris Cluster.
    1. Create a failover zone using the HA Solaris Container Data Service. Here the zone root moves between the cluster nodes as the zone fails over.
    2. Create static zones between with resource groups can migrate. Each zone root is local the the physical node. However, the configuration of the zones can be subtly different.
    3. Create a virtual cluster using static zones within which resource groups can migrate. Each zone root is local the the physical node. However, the configuration of the zones are forced to be the same.
    Note also, that a ZFS zpool can only be mounted on one node or zone at anyone time, although it can be mounted read/write in one zone and read-only in other zones on the same node (IIRC).
    I would be inclined to put your database into an HA configuration, i.e. one that runs on one node at any one time. I would then constrain that in a zone cluster that is bound to a project with restricted resources, i.e. CPUs and memory. Any other tiers of the application, could then be placed either in the global zone (main cluster) or placed in another zone cluster and equally constrained.
    I don't know if that's any help. I can recommend a good book on the subject <shameless plug "Oracle Solaris Cluster Essentials"/>. The example chapters should be of help.
    Regards,
    Tim
    ---

  • Tutorial to use Debugger in Data services

    Hi there,
    I'm trying to use the debug mode in Data Service 3.2 however I'm not able to make it work, can you guide me to any tutorial or provide any instructions. Thank-you
    Regards,
    samique

    Hi Tanweer,
    Please go to following link (Chap 17.4, Page 580)
    http://help.sap.com/businessobject/product_guides/sbods42/en/ds_42_designer_en.pdf
    It'll be almost same for the older version. But still if you want the same in older version, go to designer guide from the documentation which came with the product.(Start->programs->data services->documentation->designer guide)
    Regards,
    Mubashir Hussain

  • Using the new Data/Services generation with server push

    Have moved my Flex/BlazeDS app (which uses Blaze AMFChannel for request/response messages and StreamingAMFChannel for server push messaging) from Flex Builder 3 to Flash Builder 4. The new Data/Services works fine to generate service classes and value objects for the request/response messages, question is can it provide any help setting up a messaging consumer and value objects for the pushed data?
    rick holland

    I am so sorry - I meant AirPort Express - not extreme - but it's moot since I missed the point of your post - you want two outputs - and one to not be digital.
    For what it's worth - I still think the express might be your best bet.
    http://www.apple.com/airportexpress/airtunes.html
    It has combined digital/analog out - you plug in one and it switches the output depending on which connection is inserted. I would expect a very short wait until everything accepts digital input - expecially for people who want good sound quality. If you have to go digital to analog outside of the receiver/amp (where it really belongs) - why not let it be the express sitting right next to where you want the second "receiver" to be...

  • Issue while using views in Data services Jobs

    Hi,
    In Data Services Job, i am trying to pull data from a view to a table. The view is pointing to the table which is in other database.
    The problem is when i import the source view into data services and view the data, i found one row having wrong data. The values in that row are wrong/corrupted while the same row in the source table is having correct values
    I queried the view from TOAD for that record. The values are valid.
    The data is coming wrong only in Data services. Any row in that table gets corrupted, there is no specific row.
    Hence while running the jobs i am getting errors.
    Any idea what can be the reason of getting corrupted data in view while same view when queried from TOAD gives correct values?

    hi,
    There is a possibility of unsupported data type by data service, please share the data service version,  database type and data type of column which got corrupted.
    Regards,
    M Ramesh

  • Anyone have a problem using iPhoto "change date of photo" function?

    I imported some old photos today and need to sent the time on them. I selected the photos and used the "Change date of photo" function. It worked fine on the first set. I tried adjust a second set and that's where problem began. I needed to change the date from 01-01-2002 to the correct date of 05-28-2004. I photo instead set the date to somewhere in 1989. I thought I must have typed the date wrong. So I selected the photos and tried again. Nope, it wasn't me. The date on the photos was set back to some time in 1983. I tried several more time... Well, lets just say I have photos dated in the 1700's..

    I had searched the forum and could not find anything. Maybe someone knows where is is.
    I fixed the photos the "brute force" way.
    I deleted them from the library.
    Changed the date on the files on a different computer and imported them again.
    However this seam like a crap way to fix a iPhoto issue.
    I hope that I don't need to fix the time on any more photos..
    Clarence.

  • Problem on using Business Object Data Service Designer to copy data to HANA

    Expert,
    I want to use BODSD (v14) to copy tables from SQL server to HANA, so I create Job,  Workflow,  dataflow, source tables in SQL server, target tables in HANA and Querys, then execute the job.
    All tables have been successfully transferred to HANA expect those with Chinese Characters.
    I checked the HANA configuration and even created some Chinese lines into HANA, it is proved that HANA supports Chinese.
    So I suspect that I haven't activate UNICODE witin BODSD, but I don't know how.
    If anybody could offer any help on this problem, I extremely appreciate. Thank you.
    Here is one sector of error messages from BODSD:
    18964     17600     DBS-070401     10/26/2011 3:48:30 PM     Dataflow New_DataFlow|TVGAT
    18964     17600     DBS-070401     10/26/2011 3:48:30 PM     ODBC data source <HANA_hanabox1> error message for operation <SQLExecute>: <[SAP AG][SDBODBC DLL][HDB] General error;274
    18964     17600     DBS-070401     10/26/2011 3:48:30 PM     inserted value too large for column: 定单相关的项目>.
    Thank you.

    I found the answer by myself. post it here . I was using BODSD to transfer tables from ERP DB to HANA.
    The previous error is caused by definitely what the error message means, that the column of HANA table is too short.
    18964  17600  DBS-070401   10/26/2011 3:48:30 PM          Dataflow New_DataFlow|TVGAT
    18964  17600  DBS-070401   10/26/2011 3:48:30 PM          ODBC data source <HANA_hanabox1> error message for operation <SQLExecute>: <[SAP AG][SDBODBC DLL][HDB] General error;274
    18964  17600  DBS-070401   10/26/2011 3:48:30 PM          inserted value too large for column: 定单相关的项目>.
    For example, Table u201CTVGATu201D has one column named u201CVRGARXu201D with the type varchar(20), however, there are lines with long Chinese String like u201C定单相关的项目u201D.
    SQL Server can automatically append that column to hold these long strings, however HANA cannotu2026 so here is problem.
    Now my solution is change the column definition of these HANA tables to longer, varchar(60), then everything is ok.

  • Problems using XML DB with Schema

    Hi,
    I am attempting to use Java code running on WebLogic Server 10.3 to insert some XML documents into an Oracle Database (11gr1) and have them ‘shredded’ into columns, as the documentation claims is possible.
    I registered the XML Schema with Oracle using SQL*Plus, and have verified that tables and types are being built as expected. (Partial details below if needed.)
    I am able to insert records into the table, using XMLType, but they do not appear to be shredded in such a way that we can perform relational queries on them. References I found on the Oracle web site and others implied that if the XMLType is created with a schema associated, the insert will perform the shredding.
    When I attempt to create the XMLType with a schema in either of the two ways below, I get SQLExceptions.
    xml = XMLType.createXML(conn,doc.toString(), schema, true, true);
    Or
    xml = xml.createSchemaBasedXML(schema); // after a successful XMLType.createXML(conn, doc.toString());
    The most recent error is java.sql.SQLException: Fail to convert to internal representation (full stack trace along with the doc.toString() is below).
    How can I get more insight into what is causing this problem? Is there a more appropriate way to persist XML documents into Oracle relational tables? Is there some sample code/tutorial I can use that shows how to do this?
    Thank you,
    -=Alan
    --- Version of Oracle and validating that the schema is registered.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> describe objecthandle;
    Name Null? Type
    TABLE of SYS.XMLTYPE(XMLSchema "http://foo.org/mySchema" Element "ObjectHandle") STORAGE Object-relational TYPE
    "OBJECTHANDLE_TYPE"
    --- The XML document I am trying to persist.
    <ObjectHandle objectuid="objecthandle_301" serviceURL="URL-Fri Oct 31 17:47:19 EDT 2008" xmlns="http://foo.org/mySchema"/>
    --- The most recent error with full stack trace.
    java.sql.SQLException: Fail to convert to internal representation
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:403)
    at oracle.sql.OPAQUE.<init>(OPAQUE.java:85)
    at oracle.xdb.XMLType.toDatum(XMLType.java:492)
    at oracle.jdbc.driver.OraclePreparedStatement.setORADataInternal(OraclePreparedStatement.java:7437)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:8158)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:8149)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:229)
    at weblogic.jdbc.wrapper.PreparedStatement.setObject(PreparedStatement.java:314)
    at org.foo.test.Test.doInsert(Test.java:76)
    at org.foo.test.Test.testAddObjectHandle(Test.java:32)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:112)
    at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:84)
    at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
    at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
    at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
    at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
    at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
    at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
    at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Thanks - I have been fighting with another problem for the past few days, but am getting back to this now...
    I think the second link you sent helped me realize that the particular error came while using the 'thin' driver; I had other problems when I used the OCI driver... I'll try it again and see, now that I'm using a container managed datasource...
    I registered the schema in SQL*Plus using the command:
    BEGIN
    DBMS_XMLSCHEMA.registerURI(
    'http://foo.org/mySchema',
    '/home/foo/mySchema.xsd',
    LOCAL=>TRUE, GENTYPES=>TRUE, GENBEAN=>FALSE, GENTABLES=>TRUE);
    END;
    Everything created, was created from that command. I did use xdb annotations, but perhaps I didn't use enough of them...
    In this simple example (I have more complicated ones) there are only the two attributes; I've been hoping that I would be able to use normal sql statements, e.g.
    SELECT * FROM objecthandle WHERE objectuid='objecthandle_301';
    and get back either the XML or a resultset -- I'm less picky about that right now.
    I've been unable to find good reference material for this query; any advice will be appreciated.

Maybe you are looking for

  • Blue Screen of death on Tecra M10 runing Win XP

    My Toshiba Tecra M10 has been running like a dream for three years never once hiccuping UNTIL the other day. My Toshiba Laptop is constantly cycling with a BSoD - then i goes to start windows - it looks like it is going to succeed - it gets to the pa

  • You've been signed out (CC) related question

    I unhid the app/local files and found the naughty opm.db file, which I think I'm encouraged to delete in order to fix the CC Cloud desktop login problem ("you've been signed out.).  I am tempted to delete the opm.db file now BUT...my Photography CC p

  • Strange error in query executed via DBLink

    Hi, I am running below big query(existing code in my project) on a oracle database(DB1) schema which accesses data from tables located in a remote oracle database(DB2) schema. But I am getting error: ORA-00904: "CERMA"."EFFECTIVE_TO": invalid identif

  • Some websites wont cache

    I have browser.cache.check_doc_frequency set to 2 but some webpages simply will not cache. Is there a way to force this? Memory use is not an issue

  • Master Data-Generic Delta

    hello guys I have some doubts when it comes Generic Extraction of Master Data from a source system(say SAP R3) with possible deltas... 1.I heard from my friend,that while working with Master Data Generic Extraction (involving deltas),we generally do