Getting data via "XML Data" connectivity

Hi,
I need to retrieve data in Dashboard Design SP2 from one table stored on a SQL Server 2000. As I need to refresh the data I only have the option to use the "XML Data" connection (we are using BO4.0 Edge and can't use QaaWS).
However, I am completly new in this XML topic... In which way should data be delivered so that I can use it in Dashboard Design (in Data Manager -> "XML Data" I have to input a "XML Data URL"...)?
Thanks!

Hi steve,
Please refer below tutorial. It shows an example to create dashboard with XML file as data source.
[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0efea0a-f515-2e10-2daa-cc5a4d23c1a8]
Hope it helps you.
Regards,
Nikhil Joy

Similar Messages

  • Importing BusinessPartners Data via XML

    Greetings,
    I've got a problem on importing BusinessPartners data via XML. I exported an BusinessPartners object by using the GetBusinessObject and SaveXML methods and I now want to use this XML file to create a new BusinessPartners object.
    <i>Dim vCmp As SAPbobsCOM.Company
    'settings & connect...
    vCmp.XmlExportType = BoXmlExportTypes.xet_ValidNodesOnly
    'or  vCmp.XmlExportType = BoXmlExportTypes.xet_ExportImportMode
    Dim vBPSave As SAPbobsCOM.BusinessPartners
    vBPSave = vCmp.GetBusinessObjectFromXML("C:\object.xml", 0)
    ...</i>
    Error is like this:
    <i>Exception Details: System.Runtime.InteropServices.COMException: <ErrorList><Error>System Id = 361754288, Line Number = 1, Column Number = 79, Description = The namespace of element 'schema' must be from the schema namespace.</Error><Error>System Id = 361754288, Line Number = 1, Column Number = 99, ...</i>
    Can anyone tell me what the problem is? Is there any other propertis I need to set?

    I found where the problem was.
    This line should be used before create the XML file:
    <i>vCmp.XmlExportType = BoXmlExportTypes.xet_ExportImportMode</i>

  • Getting Error When I click on Data -- Load XML Data (XMLP Desktop 5.6.2)

    Hi All,
    I'm getting an error "Compile error in hidden module: Module_registry" when i click on Data -->Load XML Data on MSword. I have installed XMLP Desktop 5.6.2 successfuly. Can anybody help me..?
    Regards,
    Aanta

    Can you check the eventviewer on your desktop if there is an error logged against any DLL in application log (Start -- Run -- eventvwr) each time you hit this error. Also is this the first time you installed XMLP Desktop or did you have an older version?

  • Converting Java.util date to XML date in format YYYY-MMM-dd

    I'm using below code to convert java.util.date to XML date
    public static XMLGregorianCalendar toXMLDate(Date dte) {
       try {
       // this may throw DatatypeConfigurationException
       DatatypeFactory datatypeFactory = DatatypeFactory.newInstance();
       GregorianCalendar calendar = new GregorianCalendar();
       // reset all fields
      calendar.clear();
       Calendar parsedCalendar = Calendar.getInstance();
      parsedCalendar.setTime(dte);
      calendar.set( parsedCalendar.get(Calendar.YEAR ),
      parsedCalendar.get(Calendar.MONTH),
      parsedCalendar.get(Calendar.DATE ));
       XMLGregorianCalendar xmlCalendar = datatypeFactory.newXMLGregorianCalendar( calendar );
      xmlCalendar.setTimezone( DatatypeConstants.FIELD_UNDEFINED );
      xmlCalendar.setFractionalSecond( null );
       return xmlCalendar;
    I need to get the date in the format YYYY-MMM-dd, but it returns in a format YYYY-MM-dd. Can anyone tell me how can i change the format? Thanks

    >
    The snippet of ApplicationClient where the assignment took place and the syntax occurred were:
    1. DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
    2. DateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
    3. Date date = new Date();
    4. CustomerDetail customerDetail = new CustomerDetail();
    5. customerDetail.setCollectionDate(dateFormat.format(date)); //got the above syntax error
    6. customerDetail.setCollectionTime(timeFormat.format(date)); //got the above syntax error
    .....I am running JDK 1.6.0_10, Glassfish v2r2, MySQL 5.0, Netbeans 6.1 on Windows XP platform.The format method returns a String not a Date. Why not just store the Date as is without formatting, and format it when you want to retrieve it from the DB and display it?
    m

  • XML Publisher Issue, Unable to see Data-- Load XML Data Option.

    Hi ,
    Can any one help to solve this issue.
    Iam using XML Publisher tool to develop Oracle reports.
    while doing this iam unable to useXML Publisher.
    We have,
    XML Publisher 5.5 version,
    My problem is iam unable to see " *Microsoft word-->Data-->Load XML Data* " after installation of xml publisher succesfully.
    Every one in my team are working with the same versions.but in my machine iam unable to get this option.
    Thanks-
    Sowmya.

    Hi Sairam,
    Check the checkbox Convert database Null values to default and Convert other Null values to default under Edit -> Report Options and then refresh the report.
    If this does not work you can contact SAP Support.
    - Nrupal

  • I get Ora-00600 when I try to fetch large data via Xml

    Hi all
    I user Oracle8i ver 8.1.6, when I execute the following
    procedure:
    PROCEDURE TTG_EXEC_SQL (SELECT_STATMENT in VarChar2, Result Out
    Clob, err_no Out Number) IS
    -- This Procedure excutes SELECT command and return the result
    data throw Xml CLOB parameter.
    QueryCtx DBMS_XMLquery.CtxType;
    ErrorNum NUMBER;
    ErrorMsg VARCHAR2(200);
    RES1 CLOB;
    Begin
    QueryCtx := DBMS_XMLQuery.NewContext( Select_Statment );
    DBMS_XMLQuery.setRaiseException(QueryCtx, true);
    DBMS_XMLQuery.setRaiseNoRowsException(QueryCtx, true);
    DBMS_XMLQuery.propagateOriginalException(QueryCtx,true);
    ResULT := DBMS_XMLQuery.getXML(QueryCtx);
    DBMS_XMLQuery.CloseContext(QueryCtx);
    Exception
    when others then
    DBMS_XMLQuery.getExceptionContent (QueryCtx,ErrorNum,
    ErrorMsg);
    ERR_NO := NVL(ErrorNum,0);
    END;
    I get Ora-00600 error when the retrived data is more than 800
    records.
    can any one help me Pls ASAP.
    THNX
    Husam

    Can you get the query result with SQL command alone?

  • I want to export acquired data via XML to a remote URL/web service. Is there some online reference for EXACTLY what XML features are available in 6.1?

    Is there any online reference to the XML methods available in 6.1?
    I would like to set up a LabView system that acquires data from local hardware, and then sends acquired data as XML "packets" to a remote web service. I can't seem to find any online reference to this when I search the site. I don't want the "gee golly 6.1 is cool" marketing stuff. Just a simple technical reference to abilities.

    If you're looking for more technical information about all the new features of 6.1, try the LabVIEW 6.1 Upgrade Notes. Here's what they say about the XML functions:
    "Use the Flatten to XML function located on the Functions»Advanced»Data Manipulation palette to convert any LabVIEW data type to the XML format according to the LabVIEW XML schema. Use the Unflatten from XML function located on the same palette to convert a data type in the XML format into LabVIEW data.
    For these conversions, LabVIEW uses a predefined XML schema that is described in labview\help\LVXMLSchema.xsd."
    Kelly Holmes
    LabVIEW Documentation
    Kelly H
    LabVIEW Documentation
    National Instruments

  • My motor receives data via a serial connection, but it won't move. What am I doing wrong?

    Hello everyone,
    as the title says, I am trying to use a motor called "MP285" by Sutter Instruments via LabView. The control unit of this motor only has a RS232-output, but I use a Serial-to-Usb-Adapter to connect the device to the PC.
    My problem is the following:
    I tried to perform a basic Input/Output test by using the Ni MAX an sending ASCII strings to the control unit (after configuring it according to the reference manual), which worked fine. I also used the "jabber"-function of the control unit to send an output string to the PC and was also able to read that string from the buffer. Besides, when I used a LabView-VI to send a command via VISA Write, it also appears on the display of the control (at least the ASCII letters).
     Accordingly, I assume that the Serial-to-USB-adapter does work. Is that for sure, or can the adapter evoke any other problems?
    However, when I try to use the shipped controlling software, the motor won't work. Furthermore, I contacted the customer support and they sent me some VIs and a LabView-Project, which was tested by the company. Unfortunately, it did not work for me. The motor wouldn't move, when I sent the command, although the LabView-interface indicates that there the connection between PC and controller has been established. As the program has many features and I only need a command to move the motor, read the position and set the origin, I tried to build my own VI. I had a look at some basic VIs for motor control and referred to the manual.
    As it seems, the controller uses data streams of full bytes (8 bits, not ASCII) in Big Endian for its strings (I copied the information at the bottom of this text). Thus, I tried to concatenate particular strings to send it via VISA in the correct form (see attached). Do I have to convert the "m" into hexadecimal explcitly? I looked up "Convert ASCII to Hexadecimal", but when I try this, the output string does not change.
    However, when I send this string to the controller in normal mode, nothing happens . When I activate the Input/Ouput test (see above), there is a m displayed on the controller unit. So I guess, I am messing up the command structure. Can anybody help me please?
    Kind regards
    PS: Sorry for cleaning up the diagramm..
    PPS: For some reason, I could not attach the VI because " The contents of the attachment doesn't match its file type". So, I changed the name in "-vi" instead of ".vi" as suggested by a forum user. Hope this works for you!
    Excerpt form the reference manual:
    General Information:
    "Command requests are single bytes followed by optional parameters and terminated by a
    carriage return (CR, 0Dh). The data stream consists of full bytes (all 8 bits — not ASCII.
    The lowest order byte (for example, of the four bytes encoding the X coordinate) is the first
    into the controller and is the first out. The default Baud rate is 9600. Commands are
    processed bytewise by interrupt and executed only after the terminating CR is received.
    There are no delimiters within command strings. The controller will reply with carriage
    return (CR, 0Dh) at the completion of normal command processing."
    Command structure:
    Get Current Position      command ‘c’CR 063h + 0Dh
                                               returns xxxxyyyyzzzzCR three signed long (32-bit) integers + 0Dh
    Go To Position                 command ‘m’xxxxyyyyzzzzCR 06Dh + three signed long (32-bit) integers + 0Dh    
                                                returns CR 0Dh
    Setting up for Serial Communication:
    First, use the 9-pin serial port cable provided with the MP-285 to connect the “serial port” of
    your computer to that of the MP-285 controller. Next configure your terminal emulator (e.g.,
    HyperTerminal in Microsoft Windows (9X and above) to the following settings (or their
    equivalent):
    • TTY mode
    • Echo typed characters locally only (do not echo input to the computer serial port back to
    the controller)
    • Baud rate to 9600
    • 8 data bits, no parity, 1 stop bit
    • COM port - set to the port to which you have connected the MP-285 controller
    Solved!
    Go to Solution.
    Attachments:
    MotorTestVI-vi ‏17 KB

    Thank you for your feedback!
    To make this clear: I dont know if the motor MOVES when sending the appropriate command via MAX. That is because I dont know how to enter the binary? command. I only tried to send some string like "dear moto please move" to see if this ASCII string can be displayed on the control unit while running the input-mode (which I described above).
    This works for both, MAX and my Labview-Vi.
    However, these are the I/O traces:
    1. MAX: I sent the string: "Test"
    NI I/O trace:
    viWrite (ASRL25::INSTR (0x026B41E8), "Test", 4, 4) Process ID: 0x0000123C         Thread ID: 0x00001434 Start Time: 16:18:31.599       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    2. LabView-Vi (I removed everything that followed the first "Visa Write" and added the recommended property node to check if my termination char is correct). I sent string "TEST".
    14.  viOpenDefaultRM (0x065171F0) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.918       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    15.  viParseRsrc (0x065171F0, "COM25", 4, 25) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.918       Call Duration 00:00:00.002 Status: 0 (VI_SUCCESS)
    16.  VISA Set Attribute ("COM25", 0x3FFF001A, 3000) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.920       Call Duration 00:00:00.020 Status: 0 (VI_SUCCESS)
    17.  VISA Set Attribute ("COM25", 0x3FFF0021, 1200) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.940       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    18.  VISA Set Attribute ("COM25", 0x3FFF0022, 8) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.940       Call Duration 00:00:00.001 Status: 0 (VI_SUCCESS)
    19.  VISA Set Attribute ("COM25", 0x3FFF0024, 10) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    20.  VISA Set Attribute ("COM25", 0x3FFF0023, 0) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    21.  VISA Set Attribute ("COM25", 0x3FFF0038, 1) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    22.  VISA Set Attribute ("COM25", 0x3FFF0018, 13) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    23.  VISA Set Attribute ("COM25", 0x3FFF0025, 0) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    24.  VISA Set Attribute ("COM25", 0x3FFF00B3, 2) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    25.  VISA Get Attribute ("COM25", 0x3FFF0018, 13) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    26.  VISA Get Attribute ("COM25", 0x3FFF0038, True) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    27.  VISA Write ("COM25", "TEST", 4) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.001 Status: 0 (VI_SUCCESS)
    28.  VISA Close ("COM25") Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.942       Call Duration 00:00:00.110 Status: 0 (VI_SUCCESS)
    Both strings are correctly displayed.

  • Compare date from xml data to new Date() in Repeater

    Hi All
    I am using repeater and while those following 2 display the
    same
    (when reaching the current day)
    <mx:Label text="{new Date().getDate().toString()}"/>
    <mx:Label text="{r.currentItem.dayofmonth}"/>
    the following line display nothing
    <mx:Label
    visible="{r.currentItem.dayofmonth==new
    Date().getDay().toString()?
    true:false}" text="{new Date().getDate().toString()}"/>
    Why? and how can I fix this?
    mordsm

    Why is it not displaying, because of the text or because of
    the visible?
    Also, when working with repeater, I advise creating a custom
    component and repeat that. Pass in the entire currentItem on a
    public property. If you implement the property using getter/setter
    function pairs, you can debug the dataflow easily. (note, Property
    values are set on a component before its initialize or
    creationComplete events fire)
    Handlers can access the entire dataProvider item in its
    native dataType through the event.currentTarget property.

  • How to convert MS SQL Server data to XML data using Java

    Hi all!
    How do I generate XML document for SQL Server data using java / jsp.
    Thanks in advance

    http://www.fdsapi.com

  • Spry HTML Data Set Gives Empty Table (no data), Spry XML Data Set is Fine

    I am working in Dreamweaver CS5 and in lesson 14 of the "Dreamweaver CS5 Classroom in a Book" and the lesson implements Spry HTML Datasets and XML Datasets. The XML is fine but the HTML dataset produces an empty table. This happens in live view or even when previewing the HTML file in any of the browsers Firefox, Google or IE. I should add that the lesson (as in all the lessons) has a "finished copy file" prepared by the authors to show what things will look like in the end (so it is a file NOT produced by me but included on the CD with the book), and that file also produces the problem. I have uninstalled and reinstalled Dreamweaver, the lessons CD and spent all day trying to figure out why and no clues at all yet. All my browser settings look fine as for allowing content.
    ANY CLUES would be appreciated. Thanks.

    Hello,
    First, thank you very much for your quick response and help.
    I am not sure what you mean by upload the site to a server so you can look. I am working locally in Dreamweaver on the book's exercise. So I figured you may mean CS Live. What a clumsy operation that is. In any case, they said the links below will work for ANYBODY that clicks them! What is especially baffling here is that it seems so straighforward. The file "events_finished.html" (the 1st link below) is everything but the data, produced by the author of "Adobe Dreamweaver CS5 Classroom In A Book" in lesson 14. All paths should be correct. The file referenced by "Spry.Data.HTMLDataSet", "html-data_finished.html" (the data and the 2nd link below) is in the same directory as the first file, all JavaScript files referenced exist and are in their denoted "SpryAssets" folder. As seen in the "screenShot", the HTML dataset table is empty with placeholders; the XMLDataSet is fine and all data nicely represented.
    I hope this helps and thanks for all help and any clues you can provide.
    events_finished.html: https://acrobat.com/#d=J2Aez*f-uXeEICwt2ctjDg
    html-data_finished.html: https://acrobat.com/#d=NugqeOzL6sBtjZw81PNNAg
    screenShot of viewed page in browser: https://acrobat.com/#d=nS5FBcWC-AvXXEGHiWAo6A

  • Fetch 1-n relation data from XML Data using XMLTable

    Dear All,
    Following query is running fine.
    with t as (select XMLType('<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
       <env:Header/>
       <env:Body>
          <nm:CustomerCRMByIDResponse xmlns:nm="http://sap.com/xi/CRM/Global2" xmlns:prx="urn:sap.com:proxy:DCT:/1SAI/TAS57DF0B317943DEAE3C49:702">
             <MessageHeader/>
             <BusinessPartner>
                <InternalID>2200117598</InternalID>           
                <AddressInformation>
                   <UUID>51471396-9ae8-3cc0-e100-80000a031a28</UUID>
                                        <DefaultIndicator>true</DefaultIndicator>
                   <Address>
                      <PostalAddress>
                         <CountryCode>DE</CountryCode>
                         <CountryName>Country Name</CountryName>
                      </PostalAddress>
                      <Telephone>
                         <Number>
                            <SubscriberID>0711/123456</SubscriberID>
                            <ExtensionID>0</ExtensionID>
                            <CountryCode>DE</CountryCode>
                            <CountryDiallingCode>+49</CountryDiallingCode>
                            <CountryName languageCode="de">Country Name</CountryName>
                         </Number>
                         <UsageDeniedIndicator>false</UsageDeniedIndicator>
                         <MobilePhoneNumberIndicator>false</MobilePhoneNumberIndicator>
                         <SMSEnabledIndicator>false</SMSEnabledIndicator>
                         <DefaultIndicator>true</DefaultIndicator>
                      </Telephone>
                      <Telephone>
                         <Number>
                            <SubscriberID>0711/999999</SubscriberID>
                            <CountryCode>DE</CountryCode>
                            <CountryDiallingCode>+49</CountryDiallingCode>
                            <CountryName languageCode="de">Country Name</CountryName>
                         </Number>
                         <UsageDeniedIndicator>false</UsageDeniedIndicator>
                         <MobilePhoneNumberIndicator>true</MobilePhoneNumberIndicator>
                         <SMSEnabledIndicator>true</SMSEnabledIndicator>
                         <DefaultIndicator>false</DefaultIndicator>
                      </Telephone>
                      <Facsimile>
                         <Number>
                            <SubscriberID>0711/999888</SubscriberID>
                            <ExtensionID>99</ExtensionID>
                            <CountryCode>DE</CountryCode>
                            <CountryDiallingCode>+49</CountryDiallingCode>
                            <CountryName languageCode="de">Country Name</CountryName>
                         </Number>
                         <UsageDeniedIndicator>false</UsageDeniedIndicator>
                         <DefaultIndicator>true</DefaultIndicator>
                      </Facsimile>
                      <EMail>
                         <URI>[email protected]</URI>
                         <UsageDeniedIndicator>false</UsageDeniedIndicator>
                         <DefaultIndicator>true</DefaultIndicator>
                      </EMail>
                      <EMail>
                         <URI>[email protected]</URI>
                         <UsageDeniedIndicator>false</UsageDeniedIndicator>
                         <DefaultIndicator>false</DefaultIndicator>
                      </EMail>
                      <Web>
                         <URI>www.xyz.com</URI>
                         <UsageDeniedIndicator>false</UsageDeniedIndicator>
                         <DefaultIndicator>true</DefaultIndicator>
                      </Web>
                   </Address>
                </AddressInformation>
                <AddressInformation>
                   <UUID>514a519b-39a2-4890-e100-80000a031a28</UUID>
                                        <DefaultIndicator>false</DefaultIndicator>
                   <Address>
                      <PostalAddress>
                         <CountryCode>AT</CountryCode>
                         <CountryName>Österreich</CountryName>
                      </PostalAddress>
                   </Address>
                </AddressInformation>
             </BusinessPartner>
          </nm:CustomerCRMByIDResponse>
       </env:Body>
    </env:Envelope>') xml_data from dual)
    SELECT xmlresponse.*
    FROM t, XMLTable(Xmlnamespaces('http://www.w3.org/2003/05/soap-envelope' AS "env",
                                                                      'http://sap.com/xi/CRM/Global2' AS "nm",
                                                                      'urn:sap.com:proxy:DCT:/1SAI/TAS57DF0B317943DEAE3C49:702' AS "prx"
                                            'for $BusinessPartner in /env:Envelope/env:Body/nm:CustomerCRMByIDResponse/BusinessPartner                 
                        return $BusinessPartner'
                                            PASSING xml_data
                                            COLUMNS
                                            Internalid Varchar2(4000) Path 'InternalID' 
                                            ) xmlresponse;As you can see, one "BusinessPartner" can have multiple "AddressInformation"
    and one "AddressInformation" can have multiple "Telephone".
    Can someone suggest me how can I extract both InternalID & UUID in one query? For above example output should look as follows..
    InternalID UUID
    2200117598 51471396-9ae8-3cc0-e100-80000a031a28
    2200117598 514a519b-39a2-4890-e100-80000a031a28Thank you very much in advance.
    Regards,
    Hari

    Here is a basic example of one method to achieve what you need
    SELECT xmlresponse.Internalid, xml2.uuid
      FROM t,
           XMLTable(Xmlnamespaces('http://www.w3.org/2003/05/soap-envelope' AS "env",
                                  'http://sap.com/xi/CRM/Global2' AS "nm"
                    '/env:Envelope/env:Body/nm:CustomerCRMByIDResponse/BusinessPartner'
                    PASSING xml_data
                    COLUMNS
                    Internalid   Varchar2(20) Path 'InternalID',
                    addrinfoxml  XMLType      PATH 'AddressInformation'
                   ) xmlresponse,
           XMLTable('/AddressInformation'
                    PASSING xmlresponse.addrinfoxml
                    COLUMNS
                    UUID         Varchar2(80) Path 'UUID'
                   ) xml2;Changes:
    I removed one of namespaces as you only need to include those included in an XPath statement.
    I shortened your datatypes.
    I went for the simple XMLTable joined to an XMLTable approach, instead of a single XMLTable using a FLWOR statement.
    You can include the addrinfoxml column to your SELECT list to see the data being passed between the two if you want.
    Addition:
    Here's one approach for a single XMLTable.
    SELECT xmlresponse.*
      FROM t,
           XMLTable(Xmlnamespaces('http://www.w3.org/2003/05/soap-envelope' AS "env",
                                  'http://sap.com/xi/CRM/Global2' AS "nm"
                    'for $BP in /env:Envelope/env:Body/nm:CustomerCRMByIDResponse/BusinessPartner
                      for $ai in $BP /AddressInformation
                       return <e>{$BP/InternalID}{$ai/UUID}</e>'
                    PASSING xml_data
                    COLUMNS
                    Internalid   Varchar2(20) Path 'InternalID',
                    UUID         Varchar2(80) Path 'UUID'
                   ) xmlresponse;Edited by: A_Non on Mar 25, 2013 9:41 AM
    Added in XQuery solution

  • 903/902/BC4J can't get data-sources.xml conn pooling to work in production; help

    I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
    instance. I've had this problem since I started deploying in development on 902. So it's
    some basic problem that I've not mastered.
    I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
    to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml.
    Have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from my BC4J ears,
    and published the jndi jdbc source in my oc4j common data-sources.xml. I've tested that this is
    the place controlling the conn URL/login passwd by commenting it out of config/data-sources.xml
    and my BC4J apps then throw exceptions, can't get conn.
    I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
    -Djbo.doconnectionpooling=true
    symptom
    Connections are created and closed. Instead of being put back into the pool managed by oc4j,
    what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
    closed.
    I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
    with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
    being opened for each conn. ;( grrrrrrr
    Does anyone have a clue as to why this is happening?
    Thanks, curt
    my data-sources.xml
    <data-sources>
         <data-source
            class="com.evermind.sql.DriverManagerDataSource"
            connection-driver="oracle.jdbc.driver.OracleDriver"
            ejb-location="jdbc/DEVDS"
            location="jdbc/DEVCoreDS"
            name="DEVDS"
            password="j2train"
            pooled-location="jdbc/DEVPooledDS"
            url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
            username="jscribe"
            xa-location="jdbc/xa/DEVXADS"
            inactivity-timeout="300"
            max-connections="50"
            min-connections="40"
        />
    </data-sources>

    I've run another test using local data-source.xml, that's packaged in the .ear. Still
    pooling under BC4J doesn't work??
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • 903/902/BC4J can't get OC4J data-sources.xml conn pooling to work in production: help

    [cross posted to the j2ee forum]
    I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
    instance. I've had this problem since I started deploying in development on 902. So it's
    some basic problem that I've not mastered.
    I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
    to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml and
    have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from
    my BC4J ears, and published the jndi jdbc source in my oc4j common data-sources.xml.
    I've tested that this is the place controlling the conn URL/login passwd by commenting it
    out of config/data-sources.xml and my BC4J apps then throw exceptions, can't get conn.
    I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
    -Djbo.doconnectionpooling=true
    symptom
    Connections are created and closed. Instead of being put back into the pool managed by oc4j,
    what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
    closed.
    I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
    with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
    being opened for each conn. ;( grrrrrrr
    Does anyone have a clue as to why this is happening?
    Thanks, curt
    my data-sources.xml
    <data-sources>
         <data-source
            class="com.evermind.sql.DriverManagerDataSource"
            connection-driver="oracle.jdbc.driver.OracleDriver"
            ejb-location="jdbc/DEVDS"
            location="jdbc/DEVCoreDS"
            name="DEVDS"
            password="j2train"
            pooled-location="jdbc/DEVPooledDS"
            url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
            username="jscribe"
            xa-location="jdbc/xa/DEVXADS"
            inactivity-timeout="300"
            max-connections="50"
            min-connections="40"
        />
    </data-sources>

    Thanks Leif,
    Yes, set it to the location jndi path.
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • Read/get xml data (string)

    Hi
    I have a XML string that I get from a TCP transfer, I have attached a received string.
    I have no experience in reading XML data, I have tried looking in the forums and some of the examples in LV, but I cannot get it to work, so I hope that someone could help me out. All I need to get from the XML data are the names e.g. Station1 and Station2 perhaps putted into a string array. If so it wouldn't hurt to get all the rest parameters and attributes as well. I thought about doing some string searches to get what I need, but thought again that it might be easier/better in some way to take advantage of the data being arranged as XML.
    Hope that someone can help.
    Thanks in advance
    Best regards
    Simon
    LabVIEW 8.6 / 2009 / 2010
    Vision Development Module 8.6 / 2009 / 2010
    VBAI 3.6 / 2010
    Attachments:
    testmap.txt ‏1 KB

    Hi all
    falkpl wrote:
    The easy way is if you know that this string is not changing much you treat it as a formated string and parse it using simple string functuions
    ie first parse %s and %s The two slashes will cancle the escape clause of the string parser.  Repete this process to get each station and attributes.
    The harder way is to use an activeX or .net XML parser.
    Paul
    I am not sure what you mean about the parser, well I get the concept, but is there a specific string function that can do that for me?
    I got something working with the Match Pattern vi, please the attached. This actually works for my current needs, but I still would be able to get data from more complex XML data.
    Hi A.K. and J.K.
    Thank you for the link.
    EasyXML looks like a nice and handy tool for handling XML data. I ran in too some problems though when running the VI Package Manger. When I check the network for new packages it says that there was an error, please check the network connection or settings. I have internet connection (I am writing this post ) and I am not using a proxy server. What could be wrong and how do I install EasyXML then, is there another way?
    Best regards
    Simon
    LabVIEW 8.6 / 2009 / 2010
    Vision Development Module 8.6 / 2009 / 2010
    VBAI 3.6 / 2010
    Attachments:
    my_get_xml_data.vi ‏15 KB

Maybe you are looking for

  • Want to use my new Touch but I am away from my home PC.

    I have a new IPod touch but am not at home. Can I do the get started stuff with another computer? What happens (if anything) when I get home and set things up on my PC?

  • Geographic Information System (GIS) functions in SAP CRM 2007

    Dear all, I am currently working on a SAP CRM 2007 implementation project that consists in replacing an old customer service application. Currently this application is managing service technicians' territories with embedded GIS functions (it relies o

  • Updating a large table

    Hello, We need to update 2 columns on a very large table (20000000 records). Every row in the table is to be updated and the client wants to be able to update the records by year. Below the procedure that has been developed DECLARE l_year VARCHAR2 (4

  • Is changing the name of Oracle JDBC Driver JAR legally valid?

    Hi, I understand that it is legally fine to bundle Oracle JDBC driver JAR along with the applications. However, is it also legally OK to change that JAR name and then bundle it with the applications? Information on any legal implications which may ne

  • Encrypting in MIDP

    Hi all, I have an e-mail application on Palm (a MIDlet suite) that requires the user to enter his/her user name and password. I want to be able to encrypt this info before sending it from the client (Palm) to the server using an Http connection, then