HTTP XML Data Source authentication error

Morning All,
I have just started playing around with using XML as a data source for my CR4Ev2.0.1 reports.
I have managed to create the local inline reports and change their data source loacation with no current
issues.
I am now trying to create the HTTPXML reports using code from Ted's BLOG.
I manage to create a new report, and can open it in design, I can see the data source structure but as
soon as I try browse the data or preview my report I get the following error
Cannot Open file
Server returned HTTP response code: 407 for URL:
http://myserver/httpxml.xml
I had a quick look up the 407 error and it seems to be a Proxy authentication error, we do have a proxy
server setup which requires a username and password.
Before I go through what I have tried I want to confess that for this httpxml.xml file all I did was take my
inline.xml file and rename it and make it avaliable via a URL. So this might be the whole problem but I
am sure this is ok.
So I have tried turning off the proxy server as this URL is local so I dont need to go through the proxy.
If I go to the URL in my browser it works fine and I do not need to enter any proxy details.
Thats the problem with my HTTP XML attempt.
If I use the code as is, from Ted's BLOG, for
Crystal Reports off of HTTP XML data URL
and try use the following 2 URLs
propertyBag.put(
"Http(s) XML URL", "http://resources.businessobjects.com/support/downloads/samples/cr/customer_db/orders.xml");
propertyBag.put(
"Http(s) Schema URL", "http://resources.businessobjects.com/support/downloads/samples/cr/customer_db/orders.xsd");
propertyBag.put(
"Http(s) XML URL", "http://resources.businessobjects.com/support/downloads/samples/cr/customer_db/customer.xml");
propertyBag.put(
"Http(s) Schema URL", "http://resources.businessobjects.com/support/downloads/samples/cr/customer_db/customer.xsd");
But I get the following errors
Exception in thread "main" com.crystaldecisions.sdk.occa.report.lib.ReportSDKLogonException: Logon
Error: {0}---- Error code:-2147217393 Error code name:dbLogonFailed
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.DatabaseController.byte(Unknown
Source)
     at com.crystaldecisions.sdk.occa.report.application.DatabaseController.addTable(Unknown
Source)
     at com.businessobjects.samples.CreateHttpXML.main(CreateHttpXML.java:90)
Caused by: com.crystaldecisions.reports.common.LogonFailureException: Logon Error:{0}
     at com.crystaldecisions.reports.queryengine.Connection.br(Unknown Source)
     at com.crystaldecisions.reports.queryengine.Connection.bs(Unknown Source)
Any ideas as to what my issues are or what I am missing.
Thanks in advance.
Darren
Edited by: Darren Jackson on Apr 28, 2009 2:12 PM
Is there any documentation as to what entries I can use in the property bag.
Like is there a ("ProxySet", false) or something along those lines?
Edited by: Darren Jackson on Apr 28, 2009 5:28 PM
I have made a little more head way.
I saved the Orders.xml and Orders.xsd files onto my webserver and editied the code to only worry about
the Orders and ignore the Customer files.
I now create my reports, open them in Eclipse to design them, but when I try preview the data it is now
asking me for a username and password. I have tried all combinations that I can think of for our systems
but none work.
Grrrrrrrrrrrrrrr

I have subsequently determined that my main problem was my "cached" proxy settings within Eclipse.
Even though I removed the proxy settings in Eclipse, it still required me to restart Eclipse after which it
all started working ok.
That was my main problem, but I am still interested in the Property Bag options that I mentioned before.
If proxy settings are needed, how would one go about setting these details?
Thanks
Darren

Similar Messages

  • Logon failed when connecting to XML data source over HTTP

    I am trying to create a report using the standard report creation wizard:
    1) new, standard report
    2) create new connection
    3) xml and web services
    4) xml data source
    When using the sample from the SAP site, it works fine:
    http://resources.businessobjects.com/support/downloads/samples/cr/customer_db/customer.xml
    I have an HTTP source that generates XML. I have a schema that describes this XML. If I save the XML to a local file it works fine as a data source with the schema. However, when I try to access the same data via HTTP, I get the following error:
    Logon failed.
    Details: Cannot open file
    Server returned HTTP response code: 401 for URL: http://localhost:8004/report.xqy?Validate%20XML=0&Use%20WS-Security%20Config%20File=&WS-Security%20File%20Location
    However, if I enter that URL in a browser it works fine. And even if I disable security on the HTTP source, it produces the same error.
    Does the URL for the HTTP data source have to conform to some specific pattern? For example, must the URL end in .xml?
    Kelly

    Sorry Brian,
    This is a public forum, if no one can help you do have the option to purchase a support case:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551
    Thank you
    Don

  • "logon failed" error when connecting to XML data source

    I have an HTTP source that generates XML. I have a schema that describes this XML. If I save the XML to a local file it works fine as a data source with the schema. However, when I try to access the same data via HTTP, I get the following error:
    Logon failed.
    Details: Cannot open file
    Server returned HTTP response code: 401 for URL: http://localhost:8004/report.xqy?Validate%20XML=0&Use%20WS-Security%20Config%20File=&WS-Security%20File%20Location
    However, if I enter that URL in a browser it works fine. And even if I disable security on the HTTP source, it produces the same error.
    I have tried a local HTTP source as well as the same source running on Amazon EC2.
    Any ideas?

    Thanks for the help.
    I am new to crystal reports, so I do not understand your suggestion. Both of those points look like they are related to Adobe Flash.
    I am trying to create a report using the standard report creation wizard:
    1) new, standard report
    2) create  new connection
    3) xml and web services
    4) xml data source
    When using the sample from the SAP site, it works fine:
    http://resources.businessobjects.com/support/downloads/samples/cr/customer_db/customer.xml
    When connecting to my source from a browser, it works fine. When using my source as a local document instead of over http it works fine. It is only when connecting to my source over http that I get the failed logon error.
    Kelly

  • JRC and XML Data Source

    Hi!
    Does the JRC execute a report with an XML data source (URL XML Http and URL XSD Http) ?
    If yes, does the JRC change programmatically the XML data source (URL XML Http and URL XSD Http) prior to execute the report?
    There is an example to do this?
    Best regards,
    A.

    Hi,
    I've follow the example [ftp://ftp.businessobjects.com/pub/incoming/XML_XSD_sample_reports_XI.zip]
    and i've use the "JRC_Display_Connection_Info"on a xml to display all of the properties.
    After i've make a program for change the datasource in the case of "xml http" database.
    Changes the DataSource for a specific Table from XML
    @param clientDoc              The reportClientDocument representing the report being used
    @param reportName     "" for main report, name of subreport for subreport, null for all reports
    @param tableName     name of table to change.  null for all tables.
    @param username       The DB logon user name
    @param password       The DB logon password
    @param xmlURL          The Http(s) XML URL
    @param xsdURL          The Http(s) Schema URL
    @throws ReportSDKException
         public void changeDataSourceXML(ReportClientDocument clientDoc,
                        String reportName, String tableName,
                        String username, String password,String xmlURL,String xsdURL) throws ReportSDKException {
                    PropertyBag propertyBag = null;
              IConnectionInfo connectionInfo = null;
              ITable origTable = null;
              ITable newTable = null;
              // Declare variables to hold ConnectionInfo values.
              String SERVER_TYPE = "XML e servizi Web";
              String CONVERT_MULTIVALUE_TO_TABLE="false";
              String DATABASE_DLL = "crdb_xml.dll";
              String HTTPS_SCHEMA_URL= xsdURL;
              String HTTPS_XML_URL= xmlURL;
              // Declare variables to hold database User Name and Password values
              // I've see by "JRC_Display_Connection_Info" that USERID_HTTPS_SCHEMA
              // and USERID_HTTPS_XML's value is equal to username value
              String DB_PASSWORD = "";
              String DB_USER_NAME = username;
              String USERID_HTTPS_SCHEMA=username;
              String USERID_HTTPS_XML=username;
              // Obtain collection of tables from this database controller
              if (reportName == null || reportName.equals("")) {
                   Tables tables = clientDoc.getDatabaseController().getDatabase().getTables();
                   for(int i = 0;i < tables.size();i++){
                        origTable = tables.getTable(i);
                        if (tableName == null || origTable.getName().equals(tableName)) {
                             newTable = (ITable)origTable.clone(true);
                             newTable.setQualifiedName(origTable.getAlias());
                             // Change connection information properties
                             connectionInfo = newTable.getConnectionInfo();
                             // Set new table connection property attributes
                             propertyBag = new PropertyBag();
                             // Overwrite any existing properties with updated values
                             propertyBag.put("Http(s) Schema URL", HTTPS_SCHEMA_URL);
                             propertyBag.put("Http(s) XML URL", HTTPS_XML_URL);
                             propertyBag.put("Server Type", SERVER_TYPE);
                             propertyBag.put("UserID Http(s) XML", USERID_HTTPS_XML);
                             propertyBag.put("Database DLL",DATABASE_DLL );
                             propertyBag.put("Convert Multivalue to Table", CONVERT_MULTIVALUE_TO_TABLE);
                             propertyBag.put("UserID Http(s) Schema", USERID_HTTPS_SCHEMA);
                             connectionInfo.setAttributes(propertyBag);
                             // Set database username and password
                             connectionInfo.setUserName(DB_USER_NAME);
                             connectionInfo.setPassword(DB_PASSWORD);
                             // Update the table information
                             clientDoc.getDatabaseController().setTableLocation(origTable, newTable);
    But i don't know why if i call:
    System.out.println(reportClientDoc.getDatabaseController().getDatabase().getTables().getTable(0).getConnectionInfo().getAttributes().toString());
    on my
    ReportClientDocument reportClientDoc = new ReportClientDocument();               
    reportClientDoc.open(ReportName, 0);
    after changeDataSourceXML i've one more attribute than those defined by me called PreQEServerType that take the Server_Type value.
    I think that is the cause of the output error of my program on the export method
    ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
    - com.crystaldecisions.reports.dataengine.be: Unexpected error of the database connector
    - Failed to export report
    com.crystaldecisions.reports.exportinterface.exceptions.ExportException: Unexpected error of the database connector
         at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
         at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
         at report.MKReport.main(MKReport.java:655)
    Caused by: com.crystaldecisions.reports.formatter.formatter.c: Unexpected error of the database connector
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.<init>(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.e.l.<init>(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.e.p.<init>(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.e.p.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
         ... 13 more
         Caused by: com.crystaldecisions.reports.dataengine.be: Unexpected error of the database connector
         at com.crystaldecisions.reports.dataengine.m.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.m.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.bk.a(Unknown Source)
         ... 19 more
    Caused by: com.crystaldecisions.reports.reportdefinition.datainterface.n: Unexpected error of the database connector
         at com.crystaldecisions.reports.reportdefinition.datainterface.g.a(Unknown Source)
         ... 22 more
    Caused by: com.crystaldecisions.reports.queryengine.am: Unexpected error of the database connector
         at com.crystaldecisions.reports.queryengine.driverImpl.a.if(Unknown Source)
         at com.crystaldecisions.reports.queryengine.ax.if(Unknown Source)
         ... 23 more
    - JRCAgent1 detected an exception:      An error occurred while exporting the report
         at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
         at report.MKReport.main(MKReport.java:657)
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: An error occurred while exporting the report.---- Error code:-2147467259 Error code name:failed
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
    Thanks in advance for your help.
    Andrea
    Edited by: Andrea Bonf on Sep 24, 2008 5:56 PM

  • XML Data Source: does not seem to validate against XSD

    I setup XML data source using the example "b-c.xml" and "b-c.xsd"; I changed the
    root element of "b-c.xml" from "<db>" to "<Customers>"; but Liquid Data does not
    seem to care or validate the instance document against the XSD.
    Is this a known bug? It's something very basic and obvious!

    LD does indeed catch and report the mis-match at run-time as shown in the exception
    below.
    It does not valid the XML file against the schema at configuration time, only
    at run-time. Hence Step 8 here - http://edocs/liquiddata/docs81/admin/xml.html#1035818
    But beware - in some (most) cases LD does not do validation against the schema
    for performance reasons. If the schema does not match you will simply get empty
    results.
    - Mike
         java.rmi.RemoteException: Query Execution Error (Run Time) 1-2-3-24: Cannot process
    XML file source XM-BB-C. (com.enosysmarkets.xqdm.translators.XqdmTranslatorException:
    Invalid root element name: 'CUSTOMERS'. Expected: 'db')
    "David Song" <[email protected]> wrote:
    >
    I setup XML data source using the example "b-c.xml" and "b-c.xsd"; I
    changed the
    root element of "b-c.xml" from "<db>" to "<Customers>"; but Liquid Data
    does not
    seem to care or validate the instance document against the XSD.
    Is this a known bug? It's something very basic and obvious!

  • 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 source limit

    Hi
    I've been having trouble finding information on this, but is there a limitation on the file size of the xml data produced by an apex report query?
    If I download the xml data in the application builder, I'm finding once the expected xml data size goes over 32k, all I get is a file containing the xml tags but with no data.
    32k seems pretty small. I was reaching this limit because I was using APEX_WEB_SERVICE.BLOB2CLOBBASE64 to send an image to my report. I would have thought even just a decent number of rows would reach this size also.
    Am I missing something?
    Apex 4.0.1.00.03
    Scott

    LD does indeed catch and report the mis-match at run-time as shown in the exception
    below.
    It does not valid the XML file against the schema at configuration time, only
    at run-time. Hence Step 8 here - http://edocs/liquiddata/docs81/admin/xml.html#1035818
    But beware - in some (most) cases LD does not do validation against the schema
    for performance reasons. If the schema does not match you will simply get empty
    results.
    - Mike
         java.rmi.RemoteException: Query Execution Error (Run Time) 1-2-3-24: Cannot process
    XML file source XM-BB-C. (com.enosysmarkets.xqdm.translators.XqdmTranslatorException:
    Invalid root element name: 'CUSTOMERS'. Expected: 'db')
    "David Song" <[email protected]> wrote:
    >
    I setup XML data source using the example "b-c.xml" and "b-c.xsd"; I
    changed the
    root element of "b-c.xml" from "<db>" to "<Customers>"; but Liquid Data
    does not
    seem to care or validate the instance document against the XSD.
    Is this a known bug? It's something very basic and obvious!

  • How to create a report using XML data source from Crystal Report Designer

    Hi,
    Iu2019m having Crystal Report Designer XI R2 SP4. Iu2019m trying to create a report using XML data source stored on disk. This is a customer order report and the xml is structured in such a way that it has an order details header part (master) and then it has several order lines (detail). One order line can have several order line characteristics (detail-detail). So what I need to know is now I can design this layout from the designer. If this was done using views I can do it with sub-reports but using xml data this seems to be different. Can you help me to design this layout? I have included the xml and xsd as well.
    Thank you in advance.
    Regards,
    Chanaka
    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <CUSTOMER_ORDER_CONF_REP_REQUEST xmlns:xsi="http://www.w3.org/2001/XMLSchema" xmlns="urn:ifsworld-com:customer_order_conf_rep">
        <CUSTOMER_ORDER_CONF_REP>
            <ORDER_NO>D555809</ORDER_NO>
            <PRINTED_DATE>2009-03-26T08:52:54</PRINTED_DATE>
            <AUTHORIZE_NAME>Chanaka</AUTHORIZE_NAME>
            <CUSTOMER_NO>CU-1473-INV</CUSTOMER_NO>
            <CUST_NAME>Mr.Johan Matts</CUST_NAME>
            <SHIP_ADDR_1>93,Main Street</SHIP_ADDR_1>
            <SHIP_ADDR_2>Negambo Road</SHIP_ADDR_2>
            <SHIP_ADDR_3>Watthala</SHIP_ADDR_3>
            <SHIP_ADDR_4>SRI LANKA</SHIP_ADDR_4>
            <BILL_ADDR_1>93,Main Street</BILL_ADDR_1>
            <BILL_ADDR_2>Negambo Road</BILL_ADDR_2>
            <BILL_ADDR_3>Watthala</BILL_ADDR_3>
            <BILL_ADDR_4>SRI LANKA</BILL_ADDR_4>
            <CUSTOMER_PO_NO>112984638</CUSTOMER_PO_NO>
            <CUSTOMER_FAX>112984639</CUSTOMER_FAX>
            <CUSTOMER_EMAIL>abcbababab</CUSTOMER_EMAIL>
            <ORDER_LINES>
                <ORDER_LINE>
                    <LINE_NO>1</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP11</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>iPod</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>1200</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>1200</PRICE_TOTAL>
                    <DISCOUNT>0</DISCOUNT>
                    <PRICE_QTY>1</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID xsi:nil="1"/>
                            <CHARACTERISTIC_VALUE xsi:nil="1"/>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
                <ORDER_LINE>
                    <LINE_NO>2</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP24</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>XGA Projector</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>500</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>1500</PRICE_TOTAL>
                    <DISCOUNT>0</DISCOUNT>
                    <PRICE_QTY>3</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free Instalation</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
                <ORDER_LINE>
                    <LINE_NO>3</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP02</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>Sony DVD Player</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>1000</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>1000</PRICE_TOTAL>
                    <DISCOUNT>0</DISCOUNT>
                    <PRICE_QTY>1</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free 5 DVDs</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
                <ORDER_LINE>
                    <LINE_NO>4</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP99</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>Flatscreen TV</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>1500</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>1350</PRICE_TOTAL>
                    <DISCOUNT>10</DISCOUNT>
                    <PRICE_QTY>1</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free Delivery</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>2</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>1 year additional warranty</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
                <ORDER_LINE>
                    <LINE_NO>5</LINE_NO>
                    <CUSTOMER_PART_NO>NW-IP56</CUSTOMER_PART_NO>
                    <CUSTOMER_PART_DESC>Sony MP3 Player</CUSTOMER_PART_DESC>
                    <SALE_UNIT_PRICE>200</SALE_UNIT_PRICE>
                    <PRICE_TOTAL>400</PRICE_TOTAL>
                    <DISCOUNT>0</DISCOUNT>
                    <PRICE_QTY>2</PRICE_QTY>
                    <ORDER_LINE_CHARACTERSTICS>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free carry belt</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>2</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>Free promotional 4GB memory bar</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                        <CHARACTERISTIC_ITEM>
                            <CHARACTERISTIC_ID>3</CHARACTERISTIC_ID>
                            <CHARACTERISTIC_VALUE>No warranty on memory bar</CHARACTERISTIC_VALUE>
                        </CHARACTERISTIC_ITEM>
                    </ORDER_LINE_CHARACTERSTICS>
                </ORDER_LINE>
            </ORDER_LINES>
        </CUSTOMER_ORDER_CONF_REP>
    </CUSTOMER_ORDER_CONF_REP_REQUEST>
    XSD
    <?xml version="1.0" encoding="UTF-8"?>
    <?report  module="ORDER" package="CUSTOMER_ORDER_CONF_REP" ?>
    <xs:schema targetNamespace="urn:ifsworld-com:customer_order_conf_rep" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:ifsworld-com:customer_order_conf_rep" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:element name="CUSTOMER_ORDER_CONF_REP_REQUEST">
    <xs:complexType>
    <xs:all minOccurs="1" maxOccurs="1">
    <xs:element name="CUSTOMER_ORDER_CONF_REP">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="50">
    <xs:element name="ORDER_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="PRINTED_DATE" type="xs:dateTime" nillable="true" minOccurs="0"/>
    <xs:element name="AUTHORIZE_NAME" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_PO_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUST_NAME" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SHIP_ADDR_1" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SHIP_ADDR_2" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SHIP_ADDR_3" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SHIP_ADDR_4" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="BILL_ADDR_1" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="BILL_ADDR_2" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="BILL_ADDR_3" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="BILL_ADDR_4" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_FAX" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_EMAIL" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="ORDER_LINES" nillable="true" minOccurs="0">
    <xs:complexType>
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
    <xs:element name="ORDER_LINE">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="39">
    <xs:element name="LINE_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="SALE_UNIT_PRICE" type="xs:float" nillable="true" minOccurs="0"/>
    <xs:element name="PRICE_TOTAL" type="xs:float" nillable="true" minOccurs="0"/>
    <xs:element name="DISCOUNT" type="xs:float" nillable="true" minOccurs="0"/>
    <xs:element name="PRICE_QTY" type="xs:float" nillable="true" minOccurs="0"/>
    <xs:element name="CUSTOMER_PART_NO" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="4000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CUSTOMER_PART_DESC" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="4000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="ORDER_LINE_CHARACTERSTICS" nillable="true" minOccurs="0">
    <xs:complexType>
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
    <xs:element name="CHARACTERISTIC_ITEM">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="6">
    <xs:element name="CHARACTERISTIC_ID" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="CHARACTERISTIC_VALUE" nillable="true" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:all>
    </xs:complexType>
    </xs:element>
    </xs:schema>

    Hi Sourashree,
    Thank you for the response and ideas you have given me so far. I can get the fetch the data from the data source without any problem. That is I do the following,
    1.     New Report
    2.     From Create New Connection-> XML
    3.     Provide the u201CLocal XML Fileu201D and have u201CSpecify Schema Fileu201D checked -> Next
    4.     Provide the u201CLocal Schema Fileu201D  -> Finish
    Then I can see the following under XML
    + CUSTOMER_ORDER_CONF_REP_REQUEST
            CUSTOMER_ORDER_CONF_REP_REQUEST
         CUSTOMER_ORDER_CONF_REP_REQUEST/CUSTOMER_ORDER_CONF_REP
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS/CHARACTERSTIC_ITEM
    And from here if I add the following three I can get all the fields I need to the report
         CUSTOMER_ORDER_CONF_REP_REQUEST/CUSTOMER_ORDER_CONF_REP
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE
         CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS/CHARACTERSTIC_ITEM
    Then I come to the Linking section. Here I canu2019t link anything. There is a common field called u201CInternal_IDu201D but I canu2019t link using it. So I get a message when I click Next. From here I add all the fields.
    For this point onwards only I need help. How do I group, add fields and design the layout so I can get an report output as follows.
    Date
    Order number                                   Authorized code
    Customer No
    Name
    Phone
    Fax email
    Shipping address 1                              Billing Address 1
    Shipping address 2                              Billing Address 2
    Shipping address 3                              Billing Address 3
    Shipping address 4                              Billing Address 4
    Order Line 1 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026                      LINE_NO     CUSTOMER_PART_NO          CUSTOMER_PART_DESC     SALE_UNIT_PRICE     PRICE_QTY     DISCOUNT     PRICE_TOTAL
    Characteristic details belonging to Order line 1       CHARACTERISTIC_ID 1  CHARACTERISTIC_VALUE1
                                           CHARACTERISTIC_ID 2  CHARACTERISTIC_VALUE2
                                           CHARACTERISTIC_ID 3  CHARACTERISTIC_VALUE3
    Order Line 2 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
    Characteristic details belonging to Order line 2
    Order Line 3 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
    Characteristic details belonging to Order line 3
    Order Line 4 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
    Characteristic details belonging to Order line 4
    Order Line 5 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
    Characteristic details belonging to Order line 5
    How can I achieve this kind of a layout using the give xml and xsd? Should I use grouping if so how should I do the grouping?
    I have included the full xml and xsd in the first mail I posted but I canu2019t see it now. I can include that again if you want.
    Regards,
    Chanaka

  • Problem in filling jasper report with XML Data source

    Hello!
    I am trying to build a report uxing xml data source..Please verify following code:
    String outFileName = "c:/Report1.pdf";
    File xmlFileName = new File("C:/Program Files/JasperSoft/iReport-1.2.5/report.jrxml");
    String recordPath = "/SiteDetails/Site";
    JasperDesign jasperDesign = JRXmlLoader.load(xmlFileName);
    JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
    JRXmlDataSource jrxmlds = new JRXmlDataSource(new File("c:/NewSite.xml"),recordPath);
    HashMap hm = new HashMap();
    try
    JasperPrint print = JasperFillManager.fillReport(jasperReport,hm,jrxmlds);
    JRExporter exporter = new net.sf.jasperreports.engine.export.JRPdfExporter();
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME,outFileName);
    exporter.setParameter(JRExporterParameter.JASPER_PRINT,print);
    exporter.exportReport();
    catch (JRException jre)
    jre.printStackTrace();
    catch (Exception e)
    e.printStackTrace();
    My Xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <SiteDetails>
    <Site>
    <Name>Site1</Name>
    <Addr>Bangalore</Addr>
    <supersiteid>null</supersiteid>
    </Site>
    <Site>
    <Name> Site2</Name>
    <Addr> Madras</Addr>
    <supersiteid>Site1</supersiteid>
    </Site>
    </SiteDetails>
    I want to display details of Siteand Address..My program works fine but displays only 1 (first) record...What should i do to display the full file..do i need to navigate thru the file and give that as an input to fillReport ()method...

    Hi,
    Have a look at below URL.
    http://ireport.sourceforge.net/cap7.html#7.4
    Regards
    VInK

  • Delta queue & XML data source

    Hi All
      Can any body pls tell mme as to what this delta que ais and where is it used and how is it created,and also i want to know what is this XML Data source.
      I need to get the data from XI,so i need this integration.
    I would be very thank ful if any body cuold suggest me with a link on the notes ar step by step formatt.
    Point's will be awarded,Thanks in advance.
    Kittu

    Hi Jay,
    From Delta queue(RSA7) ur BW system is going to fetch the records of R3 or source system.
    After extraction process it reaches RSA7 from there when u triggers infopackage
    the job is ready to flood ur D.target with records.
    Ensure that records are there for corresponding D.source this has to be attained thro' various Update methods(v3).
    DataSource that is generated in SAP BW on the basis of a file-DataSource and
    that can be used to push data to SAP BW
    for more info on creation of XML D.source refer the link
    http://help.sap.com/saphelp_nw04/helpdata/en/fe/65d03b3f34d172e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/3bc73b24062b48e10000000a11402f/frameset.htm
    Reward if it's useful.
    Thnks,
    Karthick.

  • Newbie XML data source questions

    Post Author: tel
    CA Forum: Data Connectivity and SQL
    I'm trying to use the XML data source via http and i'm running into a couple of issues.
    First, we have separate environments for development, QA, and production.  Each environment will have a seperate URL to retrieve the XML for the report.  I would like to use the same report design to access each environment.  Is there a way to update the URL in the data source (or replace the data source with one that has the correct URL) without having to re-add the fields to the report design?
    The second issue is similar.  I can't seem to get Crystal to recognize changes in the XML format (new fields for example) without having to delete and recreate the data source (which automatically removes all the associated fields from the report).  Is there a way around this, or again, a way of re-creating the data source without it removing the existing fields in the report?
    Thanks,

    Post Author: rosariosanto
    CA Forum: Data Connectivity and SQL
    I have the same problem. Where can I find help about setting the data source when connecting to a web service. Since the hostname is hardcoded in the report, it is necessary to update it in the code.

  • JRC XML Data source

    I'm trying to see a report based on an XML data source with JRC
    I'm using crystal reports XIR2 with websphere 5.1.1;
    with a simple report i'm able to see it, then i tried to add a parameter (discrete/not multiple) in the report but if i don't pass it in my jsp page i have the error "some parameters are missing" and it don't prompt me for parameter value (i've set CrystalReportViewer.setEnableParameterPrompt(true)) and if i pass the parameter in the way of other reports (with ParameterFields etc... or with ParameterController) ii have the java.lang.NullPointerExcepion at the processHTTPRequest
    please help, i'm stucked!!!

    I'm trying to see a report based on an XML data source with JRC
    I'm using crystal reports XIR2 with websphere 5.1.1;
    with a simple report i'm able to see it, then i tried to add a parameter (discrete/not multiple) in the report but if i don't pass it in my jsp page i have the error "some parameters are missing" and it don't prompt me for parameter value (i've set CrystalReportViewer.setEnableParameterPrompt(true)) and if i pass the parameter in the way of other reports (with ParameterFields etc... or with ParameterController) ii have the java.lang.NullPointerExcepion at the processHTTPRequest
    please help, i'm stucked!!!

  • Create Report with CR4E and XML Data Source

    Hi all,
    I have a problem when create a report with CR4E that should use a XML data source. It is not possible to choose fields from the field explorer, because ther are no fields from the XML-file. Is there a general problem when using an ODA data source in CR4E?  At the moment I can only create reports with a database as data source.
    Please help me with a tip.
    Thanks
    Arnold

    Hi,
    After Installing CR4E Version 2  the code snippet for creating a XML-report not works as JSP. Has anywhere a hint to resolve the problem or a complete JSP-file?
    reportClientDocument = new ReportClientDocument();
    java.lang.NoClassDefFoundError: com/crystaldecisions/reports/common/data/CrystalResultSet
         com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.<init>(Unknown Source)
         org.apache.jsp.XMLDataSource_jsp._jspService(XMLDataSource_jsp.java:64)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    Thanks
    Arnold Meier

  • XML Data Source

    I try to use XML files as data source with Oracle Report 9i. Even if the .xml and the .dtd files are well-formed and validate is OK, Oracle Report doesn't recognize the groups, columns,... How to format correctly DTDs file?? With easy .dtd it works, but for more complex code it doesn't work.

    Refer the link for data definition and Data Source format.
    http://otn.oracle.com:8877/reports/help/
    Advanced column Types support:
    Formatting support for xml columns types, date / timeInstant : XML Simple Types columns can be defined in xml schema to specify the format for date/timeInstant types column in XML Data Source. Based on the format string mentioned in XML schema XMLPDS will parse the XML Stream and
    convert the XML Data to Report specific format.
    simpleType : dateformatColumn :
    <xsd:simpleType name='dateformatcolumn'>
    <xsd:restriction base='xsd:date'>
    <xsd:pattern value='dd-MMM-yy'/>
    </xsd:restriction>
    </xsd:simpleType>
    simpleType : dateTimefomatColumn
    <xsd:simpleType name='dateTimefomatcolumn'>
    <xsd:restriction base='xsd:timeInstant'>
    <xsd:pattern value='MM-dd-yyyy hh:mm:ss'/>
    </xsd:restriction>
    </xsd:simpleType>
    MaxLength support for xml string column types : By default column length for all string columns will be 4000 bytes as set in config file. Maxlength for string type columns can be overwritten by defining and using a simpletype column in XML schema used for data definition
    simpleType : stringColumn
    <simpleType name='stockString1'>
    <restriction base='xsd:string'>
    <maxLength value='7'/>
    </restriction>
    </simpleType>
    The XML schema format with simple type :
    <xsd:element name="tableName" type="tableType"/>
    <xsd:simpleType name='dateformatColumn'>
    <xsd:restriction base='xsd:date'>
    <xsd:pattern value='format string '/>
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name='dateTimefomatcolumn'>
    <xsd:restriction base='xsd:timeInstant'>
    <xsd:pattern value='format string'/>
    </xsd:restriction>
    </xsd:simpleType>
    <simpleType name='stringColumn'>
    <restriction base='xsd:string'>
    <maxLength value=' maximum column size '/>
    </restriction>
    </simpleType>
    <xsd:complexType name="tableType">
    <xsd:sequence>
    <xsd:element name="rowName" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="columnName1" type="xsd:string"/>
    <xsd:element name="columnName2" type="xsd:decimal"/>
    <xsd:element name="columnName3" type="xsd:dateformatColumn"/>
    <xsd:element name="columnName4" type="xsd:dateTimefomatcolumn"/>
    <xsd:element name="columnName5" type="xsd:stringColumn"/>
    <xsd:element name="columnNameN" type="xsd:date"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    XSD file using advanced column types :
    <xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema">
    <xsd:simpleType name='stockDate'>
    <xsd:restriction base='xsd:date'>
    <xsd:pattern value='dd-MMM-yy'/>
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name='Transaction'>
    <xsd:restriction base='xsd:timeInstant'>
    <xsd:pattern value='MM-dd-yyyy hh:mm:ss'/>
    </xsd:restriction>
    </xsd:simpleType>
    <simpleType name='stockID'>
    <restriction base='xsd:string'>
    <maxLength value='15'/>
    </restriction>
    </simpleType>
    <xsd:element name="XML">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="G_STORE" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="STORE_NAME" type="stockID"/>
    <xsd:element name="CITY" type="xsd:string"/>
    <xsd:element name="REGION" type="xsd:string"/>
    <xsd:element name="TRANSACTION_START" type="stockDate"/>
    <xsd:element name="TRANSACTION_PHASE1" type="Transaction"/>
    <xsd:element name="TRANSACTION_PHASE2" type="Transaction"/>
    <xsd:element name="TRANSACTION_END" type="stockDate"/>
    <xsd:element name="SALES" type="xsd:integer"/>
    <xsd:element name="DESCRIPTION" type="xsd:string"/>
    <xsd:element name="SALES_ROW_COUNT" type="xsd:integer"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    With Regards
    Reports Team

  • How to create XML data source/ and load data from a web service to BI

    All,
    I m trying to find a 'how to' document (or any document) that shows how to create an XML data source to load data directly from a web service or from an XML file.
    I appreciate any help.

    Hi Mike,
    Two more for you:----
    /thread/111488 [original link is broken]
    http://help.sap.com/saphelp_nw70/helpdata/en/e6/1dd53bb90cbb1ae10000000a11402f/content.htm
    Regards,
    Suman

Maybe you are looking for