Retrieve XMLtype from php

Hello,
I'm trying to load data to my table.
$ora_conn = ocilogon("user", "passwd", "orcl");
$xml = '<xm>...</xml>';
$sql = "INSERT INTO test VALUES(1111, sys.xmltype.createxml(:rec))";
$stmt = OCIParse($ora_conn,$sql);
$clob = OCINewDescriptor($ora_conn, OCI_D_LOB);
$rowid = OCINewDescriptor($ora_conn,OCI_D_ROWID);
OCIBindByName($stmt, ':rec', &$clob, -1,OCI_B_CLOB);
$clob->WriteTemporary($xml,OCI_TEMP_CLOB);
$success = OCIExecute($stmt,OCI_DEFAULT);
if($success) {
OCICommit($ora_conn);
OCIFreeStatement($stmt);
OCIFreeDesc($lob);
using this I can insert large XML documents. But when I try to retrieve them from PHP i can't. Ive tried an ocifetch into and an ocifetch...
$ora_conn = ocilogon("stefan", "geheim", "orcl");
$sql = "select record from test";
$stmt = OCIParse($ora_conn,$sql);
OCIExecute($stmt,OCI_DEFAULT);
while(OCIFetchInto($stmt, $arr, OCI_ASSOC))
//output
this generates an string literal too long error. And an normal ocifetch can't get more then 2000 chars. How can I get my data to PHP
Hope someone can help me out..
Thanks in advance..
Greetings Stefan.

If you're loading your SWF from one server, and contacting
another server,
you need place the crossdomain.xml file on the other server
from which you're
requesting data, typically in the webroot.
That is, if you're trying to contact "
http://server/docroot/pages/php/request.php"
then you'd need to have a crossdomain.xml file at "
http://server/crossdomain.xml".
This crossdomain.xml policy file must include the domain from
which your
SWF was loaded in order for it to be allowed to contact this
domain.
Hello arpiyem,
> hi, i just uploaded to our remote host the files with
php and flex
> combination. here on my local computer, i was able to
retrieve data
> using my local database, i also tried to connect from my
local using a
> remote database. but when i uploaded the files, and
tried to connect
> to a red hat linux host i think, i cant make it to work.
i can see the
> interface but no data was retrieve. i googled some
possible options
> and used crossdomain, but still cant get it to work. im,
by the way,
> new to flex and would like to explore this great
technology. i was
> thinking the my tags in <mx:HTTPService> were
incorrect, i have
> url="
http://server/docroot/pages/php/request.php",
i also tried
> url="php/request.php", but still failed to retrieve the
> information.hope u can help me guys. thank you in
advance.
>

Similar Messages

  • How to retrieve data from php to a java applet?

    hi! wer having this project on printing jar files and reports..where these reports are generated from php. data will be passed as objects to the java applet. how r we suppose to do this? can someone pls explain it to me further and clearly? many thanx.. :) God bless!

    What? Is the php page going to send Java objects?

  • Cant retrieve data from php

    hi, i just uploaded to our remote host the files with php and
    flex combination. here on my local computer, i was able to retrieve
    data using my local database, i also tried to connect from my local
    using a remote database. but when i uploaded the files, and tried
    to connect to a red hat linux host i think, i cant make it to work.
    i can see the interface but no data was retrieve. i googled some
    possible options and used crossdomain, but still cant get it to
    work. im, by the way, new to flex and would like to explore this
    great technology. i was thinking the my tags in
    <mx:HTTPService> were incorrect, i have url="
    http://server/docroot/pages/php/request.php",
    i also tried url="php/request.php", but still failed to retrieve
    the information.hope u can help me guys. thank you in
    advance.

    If you're loading your SWF from one server, and contacting
    another server,
    you need place the crossdomain.xml file on the other server
    from which you're
    requesting data, typically in the webroot.
    That is, if you're trying to contact "
    http://server/docroot/pages/php/request.php"
    then you'd need to have a crossdomain.xml file at "
    http://server/crossdomain.xml".
    This crossdomain.xml policy file must include the domain from
    which your
    SWF was loaded in order for it to be allowed to contact this
    domain.
    Hello arpiyem,
    > hi, i just uploaded to our remote host the files with
    php and flex
    > combination. here on my local computer, i was able to
    retrieve data
    > using my local database, i also tried to connect from my
    local using a
    > remote database. but when i uploaded the files, and
    tried to connect
    > to a red hat linux host i think, i cant make it to work.
    i can see the
    > interface but no data was retrieve. i googled some
    possible options
    > and used crossdomain, but still cant get it to work. im,
    by the way,
    > new to flex and would like to explore this great
    technology. i was
    > thinking the my tags in <mx:HTTPService> were
    incorrect, i have
    > url="
    http://server/docroot/pages/php/request.php",
    i also tried
    > url="php/request.php", but still failed to retrieve the
    > information.hope u can help me guys. thank you in
    advance.
    >

  • Help using Java to retrieve XMLType returned from PL/SQL stored object

    Hi,
    Please bear with me if this is a trivial question. I'm brand new to Java, JDBC, and XML DB. I've been spinning my wheels on this for a few hours now.
    I have a table:
    XMLDB_USER@xmldb64> desc my_test_table
    Name                                      Null?    Type
    ID                                                 NUMBER(9)
    DOC                                                SYS.XMLTYPE(XMLSchema "http:
                                                        //www.myproquest.com/Global_
                                                        Schema_v3.0.xsd" Element "RE
                                                        CORD") STORAGE BINARYI've written a trivially simple PL/SQL function to retrieve the DOC column, based on the ID passed to it.
    create or replace function get_doc(goid in number) return xmltype is
      doc_content xmltype;
    begin
      select doc into doc_content from my_test_table where id = goid;
      return doc_content;
    end;
    /Up to here, everything works fine. I wrote a small anonymous PL/SQL block, and proved that I can call the PL/SQL function successfully.
    Now, I want to implement in Java. This is where I get confused.
    Currently my code looks like this:
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.jdbc.OracleTypes;
    import oracle.jdbc.pool.OracleDataSource;
    import oracle.xdb.*;
    import java.io.*;
    import java.lang.StringBuilder;
    import java.sql.Clob;
    class MyJava
      public static void main(String args[]) throws SQLException, IOException
        Clob xml = null;
        System.out.print("Connecting to the database...");
        System.out.flush();
        OracleDataSource ods = new OracleDataSource();
        String URL = "jdbc:oracle:thin:@//pqhdb201.aa1.pqe:1522/xmldb64";
        ods.setURL(URL);
        ods.setUser("xmldb_user");
        ods.setPassword("xmldb_user");
        Connection conn = ods.getConnection();
        System.out.println("connected.");
        System.out.println("GOID to be retrieved is " + args[0]);
        CallableStatement cs1 = null;
    try {
        cs1 = conn.prepareCall( "{? = call get_doc (?)}" );
        cs1.registerOutParameter(1,OracleTypes.OPAQUE,"XMLType");
        cs1.setString(2,args[0]);
        cs1.execute();
    //    xml = XMLType.createXML(cs1.getOPAQUE(1));
        xml = (Clob) cs1.getObject(1);
    //    System.out.println(((XMLType)xml).getStringVal());
    //    System.out.println(xml.getClobVal());
        System.out.println(xml.getCharacterStream());
      finally {
         if(cs1!=null) cs1.close();
         if(conn!=null) conn.close();
    }This compiles, but when I run, I get:
    pqhdb201:[xmldb64]:(/home/oracle/xmldb_scripts):$java MyJava 91455713
    Connecting to the database...connected.
    GOID to be retrieved is 91455713
    Exception in thread "main" java.sql.SQLException: invalid name pattern: XMLDB_USER.XMLType
            at oracle.jdbc.oracore.OracleTypeADT.initMetadata(OracleTypeADT.java:553)
            at oracle.jdbc.oracore.OracleTypeADT.init(OracleTypeADT.java:469)
            at oracle.sql.OpaqueDescriptor.initPickler(OpaqueDescriptor.java:237)
            at oracle.sql.OpaqueDescriptor.<init>(OpaqueDescriptor.java:104)
            at oracle.sql.OpaqueDescriptor.createDescriptor(OpaqueDescriptor.java:220)
            at oracle.sql.OpaqueDescriptor.createDescriptor(OpaqueDescriptor.java:181)
            at oracle.jdbc.driver.NamedTypeAccessor.otypeFromName(NamedTypeAccessor.java:83)
            at oracle.jdbc.driver.TypeAccessor.initMetadata(TypeAccessor.java:89)
            at oracle.jdbc.driver.T4CCallableStatement.allocateAccessor(T4CCallableStatement.java:689)
            at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterInternal(OracleCallableStatement.java:157)
            at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:202)
            at oracle.jdbc.driver.OracleCallableStatementWrapper.registerOutParameter(OracleCallableStatementWrapper.java:1356)
            at MyJava.main(MyJava.java:29)As you can see from the commented lines, I've tried several different approaches, based on various examples from Oracle documentation and various samples found on the net. My problem, I think, is that I have a fundamental disconnect somewhere. Objects? Types? Different methods? getClobVal? getStringVal? getCharacterStream? I'm still trying to get up to speed on all the lingo and terminology, and, as a result, I suspect I'm asking the wrong questions, and getting wrong results.
    Based on the simple example above, my table and PL/SQL function definitions, can someone help me fill in the gaps of what I'm missing in terms of the Java code?
    Thanks!
    -Mark

    Hi, I´ve been working on an application that return an XMLTYPE from an schema package, the XML is generated in a query, not read it in a table, and use that variable in a JSP.
    The DDL of the package function is this:
    CREATE OR REPLACE
    PACKAGE BODY pkg_modulos
    IS
        FUNCTION obtenerModulos (pAnio IN NUMBER DEFAULT 2011)
            RETURN XMLTYPE
        IS
            x    XMLTYPE;
        BEGIN
            SELECT  XMLELEMENT ("tree", XMLAttributes (0 AS "id"),
                        (SELECT  DBMS_XMLGEN.getxmltype(DBMS_XMLGEN.newcontextfromhierarchy('SELECT level,
                                              XMLElement("item",
                                                                          XMLAttributes(
                                                                    m.idmodulo as "id",
                                                                    m.nombre AS "text"))
                                FROM            modulos m
                 WHERE m.anio = 2011
    CONNECT BY   PRIOR m.idmodulo = m.padre
    START WITH   m.padre IS NULL'))
                            FROM     DUAL))
                            arbolXML
              INTO  x
              FROM  DUAL;
            RETURN x;
        END;                                                                         
    END;   as far as I see there shouldn´t be any problems with this code
    The problem is on the JSP code
    this is my code:
    <?xml version="1.0" encoding="UTF-8"?>
    <%@ page contentType="text/xml; charset=UTF-8" import="java.io.*,java.lang.*,java.sql.*,java.util.*,oracle.jdbc.*,oracle.xdb.*, oracle.jdbc.OracleTypes,oracle.jdbc.pool.OracleDataSource"%>
    <%
      Connection dbconn;
      OracleDataSource ods = new OracleDataSource();
      OracleCallableStatement stmt;
        try
             String hostname="localhost";
             String dbname="xe";
             String usr="seguridad";
             String pass="seguridad";
             String URL = "jdbc:oracle:thin:@"+hostname+":1521:"+dbname;
             ods.setURL(URL);
            ods.setUser(usr);
            ods.setPassword(pass);
             dbconn = ods.getConnection();
              String st=request.getParameter("st").toString();
              int np=Integer.parseInt(request.getParameter("np").toString());     
              stmt = (OracleCallableStatement)dbconn.prepareCall( "begin ? := "+st+"; end;" );
              stmt.registerOutParameter(1,OracleTypes.OPAQUE,"SYS.XMLTYPE");          
              stmt.execute();
              XMLType xml = null;
              xml = (XMLType) stmt.getObject(1);
              System.out.println(xml.getStringVal());
              stmt.close();
              dbconn.close();
        catch (SQLException s)
          out.println("SQL Error: " + s.toString());
           System.out.println("SQL Error: " + s.toString());
    %>I´m getting te error:
    SQL Error: java.sql.SQLException: inconsistent java and sql object types: SYS.XMLTYPE
    Making a debbuging I identified that the exception is been raised in this line:
    xml = (XMLType) stmt.getObject(1);I´ve been checking a lot of online documentation but I´ve not been able to make it work
    If anyone could help me please, I don´t know what else to do
    Thanks... sorry for the english

  • Retrieve data from a dynamic page via loadURL

    Hello.
    I would like to ask you how it is possible to retrieve data
    from a dynamic page (asp classic in my case) using the loadURL
    method.
    I would like to create an html authentication form (with
    username and password fields). The loadURL method should call an
    asp page and then pass to the usual function 'DoIfSucceded' the
    results of the elaboration.
    Of course I'm going to have a switch in the function in order
    to make different actions depending from the results of the asp
    page (authentication succeded or failed).
    I had a look to the examples at this page:
    Adobe
    samples
    Is there anyone who can explain clearly how the results data
    must be written by the asp page and how the success function can
    retrieve them ?
    I thank you in advance for your help.

    loadURL() uses the the XMLHttpRequest Object so if the
    content you return is XML, you have 2 choices for accessing your
    data. You can either access it as a text string via the
    XMLHttpRequest object's responseText property, or as a DOM document
    via the XMLHttpRequest object's responseXML property:
    function MySuccessCallback(req)
    // If my data is XML, I can access the data that was sent
    from the server
    // as DOM elements via the XMLHttpRequest's responseXML
    property.
    var xmlDOM = req.xhRequest.responseXML;
    // OR, you can access the data sent back from the server as
    text via
    // the XMLHttpRequest object's responseText property.
    var xmlAsAString = req.xhRequest.responseText;
    var req = Spry.Utils.loadURL("GET",
    "/app/book.php?id=1&code=54321", true, MySuccessCallback);
    If your serverside script wants to use some other format as a
    response like JSON or plain text, then you can only access the data
    as text via the responseText property.
    --== Kin ==--

  • Retrieving data from different tables in the same time crash

    Hi
    this is probably the wrong way to do it, but this is how I did:
    - I wanted a screen with 3 datagrids components retrieving data from 3 different tables.
    - I could make it work while enabling 1 or 2 of them.  When the 3 are enabled, I get this error:
    btw its a huge msg, I will trim it:
    ArgumentError: Can't find ManagedQuery or ManagedOperation named: getItems_paged     at mx.data::RPCDataServiceAdapter/executeQuery()[C:\depot\DataServices\branches\lcds_modeler 101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:325]     at mx.data::RPCDataServiceAdapter/processDataMessage()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:920]     at RPCDataServiceRequest/invoke()[C:\depot\DataServices\branches\lcds_modeler101\frameworks\ projects\data\src\mx\data\RPCDataServiceAdapter.as:1668]     at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::invoke()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\DataStore.as:3343] ...  it continues forever. 
    the getItems_paged is a auto generated function inside the php class flex generates to handle the tables.
    Each of the datagrid is a custom component. I made so to avoid keeping a bunch of code lines in the main 'page'.
    Any suggestion to make it work smoothly?
    Thanks in advance,
    btp~

    Hi
    this is probably the wrong way to do it, but this is how I did:
    - I wanted a screen with 3 datagrids components retrieving data from 3 different tables.
    - I could make it work while enabling 1 or 2 of them.  When the 3 are enabled, I get this error:
    btw its a huge msg, I will trim it:
    ArgumentError: Can't find ManagedQuery or ManagedOperation named: getItems_paged     at mx.data::RPCDataServiceAdapter/executeQuery()[C:\depot\DataServices\branches\lcds_modeler 101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:325]     at mx.data::RPCDataServiceAdapter/processDataMessage()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:920]     at RPCDataServiceRequest/invoke()[C:\depot\DataServices\branches\lcds_modeler101\frameworks\ projects\data\src\mx\data\RPCDataServiceAdapter.as:1668]     at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::invoke()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\DataStore.as:3343] ...  it continues forever. 
    the getItems_paged is a auto generated function inside the php class flex generates to handle the tables.
    Each of the datagrid is a custom component. I made so to avoid keeping a bunch of code lines in the main 'page'.
    Any suggestion to make it work smoothly?
    Thanks in advance,
    btp~

  • Select bulk from PHP code

    Hi,
    Is it possible to do a kind of select bulk from PHP ?
    In my case, when I retrieve lot of data from a table and display it, I use a basic select but I can see the page is loading gradually.
    I think if I am using the equivalent of a select bulk it would load all in one way.
    Does anyone has an idea or advice ?
    Best regards.

    Yeah I am echoing each line it returns.
    Even if I use prefetch 3000 it look like same !
    $stmt_select = ociparse($connect, $query);
              oci_set_prefetch($stmt_select, 3000);
              oci_execute($stmt_select,OCI_DEFAULT);
              while ($select = oci_fetch_array ($stmt_select, OCI_BOTH))
                   $remote_img = $select['REMOTE_IMG'];
                   $text = $select['TEXT'];
                   $count = $count + 1;
                   echo '<table>';
                        echo '<tr>';
                             echo '<td>';
                                  echo '<img src="' . $remote_img . '" width="100">';
                             echo '</td>';
                             echo '<td>';
                                  $desc = str_replace('<br>', '-',$text);
                                  $desc = str_replace(' ', '-',$desc);
                             echo $text;
                             echo '</td>';
                        echo '</tr>';
                   echo '<table>';
              }

  • Retrieving content from JavaScript created web tables?

    I am developing a simple Java program that is to browse a particular site, follow links and download web page content (which is created dynamically based on day and sports selected) from which data enclosed in <table>....</table> tags is later parsed and used in Excel spreadsheet for later analysis.
    The idea is to collect sports betting odds from Internet sportsbooks and of course such content is created dynamically based on day's offer of sports events!
    It can be done when the web tables are created dynamically with ASP or PHP as it basically just feed you the web page with all the data still enclosed in standard HTML tables tags.
    However there are quite a number of sites that use Javascript to create such dynamic tables. SO MY QUESTION IS: IS THERE A WAY TO GATHER SUCH JAVASCRIP CREATED WEB DATA IN JAVA?
    Thanks in advance!

    One more thing occured to me as a possible solution but I don't know if it can be done?
    Those particular JavaScript generated web pages that I'm trying to retrieve contents from display data in html tables created depending on the user input!
    Appart from zillion fancy design functions, those pages create a loooooong string which basically represents html <table>.....</table> structure and all the rows and cells are constructed by calling multiple JavaScript functions and filling those tables with variables contained in arrays located in several *.js files.
    So my idea is, CAN YOU CATCH THAT FINAL GENERATED HTML, that is used to view the web page in a browser?

  • Cisco Unity: Can't retrieve voicemail from phone, but received email.

    Hi,
    Any help will be much appreciated. I've been trying to fix this issue for 3 of 280 voicemail users for a month now but of no success. I tried following solutions from this link (https://supportforums.cisco.com/message/1184794#1184794) also but of no success. When I'm trying to retrieve voicemail from the phone, it says, "Sorry, this system is temporarily unable to complete your call. Please call again later. Good bye."
    I have Unity version = 4.0(3.0). From the Unity application event viewer, I can see these two errors after I tried to retrieve the voicemail.
    Event Type: Error
    Event Source: CiscoUnity_ConvMsg
    Event Category: Network
    Event ID: 10046
    Date:  9/26/2011
    Time:  PM 4:57:24
    User:  N/A
    Computer: NTUCUN01
    Description:
    Unity was unable to determine the mailbox status for the subscriber. Unity needs to know if the mailbox has the ability to send and recive mails. Technical details - GetMailboxStatus returned [0x8004000c] on line 98 of file e:\views\Unity4.0.2.122\un_Core2\ConversationEng\AvStateSvr\AvSGetMailboxStatus.cpp.
    For more information, click: http://www.CiscoUnitySupport.com/find.php 
    Event Type: Error
    Event Source: CiscoUnity_ConvMsg
    Event Category: Network
    Event ID: 10045
    Date:  9/26/2011
    Time:  PM 4:57:24
    User:  N/A
    Computer: NTUCUN01
    Description:
    Unity was unable to retrive the mailbox for the subscriber to verify the status of the mailbox. Unity needs to know if the mailbox has the ability to send and recive mails. Possible reasons could be a missing mailx, which can be determined through DBWalker or a corrupt memory. Technical information IAvDohMailUser::get_PrimaryMailbox returned [0x8004000c] on line 199 of file e:\views\Unity4.0.2.122\un_Core2\ConversationEng\AvStateSvr\AvSGetMailboxStatus.cpp. Check the return code through DohErrorTest tool.
    For more information, click: http://www.CiscoUnitySupport.com/find.php 
    Thanks!

    Hi,
    Have you tried any or all of these steps:
    1)Run Permissions Wizard again.
    2)From the AD Users and Computers snap-in, check the mailbox rights of the affected users. Compare their permissions with those of working users.Make appropriate Changes.
    http://support.microsoft.com/kb/310866
    3)Use dohproptest to log in to the affected users mailbox and confirm if you can log in successfully.
    you can find dohproptest tools in Commserver/TechTools folder.
    #From start button, goto run and give the complete path of the "dohproptest.exe" file followed by "-a" switch as shown below:
    "C:\Commserver\TechTools\dohproptest.exe -a"
    #When asked for password, put in any random password and continue.
    #Click on the "Ignore" button in the next warning window.
    #You should now see the main window of the tool.
    Highlight MailUsers.
    #Highlight the alias of the subscriber who cannot listen to their messages over the phone.
    #Click Get User's Mailbox.

  • How to retrieve elements from 3 different xml file in one url

    Hi all,
    Could anyone please let me how can we retrieve elements from 3 different xml file in one url?
    i just can only do it with one file only, any help would very appreciate.
    Thank in advance
    Jim

    Hi Philip
    Thanks for replying me.
    I tried on that way, In my mdx query i am using one slice attribute (i.e [Customer].[Gender].allmembers) in rows so getting error "The  Hierarchy already appears in Axis1".
    SELECT
    {[Measures].[Internet Sales Amount] } ON 0,
    NON EMPTY
    {[Customer].[Gender].allmembers } ON 1 -- Used
    FROM
    [Adventure Works]
    WHERE
    [Customer].[Gender].&[M]
    ,[Product].[Size Range].[(All)]
    ,[Customer].[Country].[All Customers]
    [Customer].[Gender].[All Customers]
    ,[Product].[Size Range].&[XL]
    ,[Customer].[Country].[All Customers]
    [Customer].[Gender].[All Customers]
    ,[Product].[Size Range].[(All)]
    ,[Customer].[Country].&[Australia]
    Can you provide alternate ways to get resolved.
    Thanks in advance

  • Retrieve values from a HTML table !!!

    Hi.
    How can i retrieve values from a HTML table using javascript ?
    I´m trying to use the command "document.getElementsByTagName" without success.
    Thanks in advance.
    Eduardo

    Hi, Deepu.
    I´m still with trouble in retrieving the value in HTML.
    In debug the C_CELL_ID seems to be correctly updated but
    when using the command "document.getElementById" the value is always "null".
    I implemented in the method DATA_CELL the code :
      if i_x = 3 and i_y = 2.
      C_CELL_ID             = 'zs'.
      C_CELL_CONTENT = 10. 
      endif.
    And in HTML :
    var ztest = document.getElementById('zs');
    alert(ztest);
    Could you help me please.
    Many regards
    Eduardo S.
    Message was edited by: Eduardo   Silberberg

  • Retrieving values from Database in Excel Task Pane App

    So far,
    I created a website with a database on Azure, I then published my App to Azure. My problem is that I'm not sure how I retrieve values from the database (in SQL: SELECT * FROM EXAMPLE_TABLE WHERE date = str). If someone could provide me with sample code,
    that would be amazing! :D
    It would also be very helpful if anyone knew a method to automatically update the database using information from a xml stream on another website, once a day.
    Thank you!

    Hi,
    >> My problem is that I'm not sure how I retrieve values from the database
    You can use jquery ajax call to call your webserivce or REST API, which will query the database and return a json result.
    Sample:
    Apps for Office: Create a web service using the ASP.NET Web API
    >> It would also be very helpful if anyone knew a method to automatically update the database using information from a xml stream on another website
    For the database sync-up question, I suggest you posting them on the forums like SQL Server Forum.
    Thanks for your understanding.
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Retrieving values from a table

    Hi all,
    I need to retrieve values from CSKS-KOSTL for values containing the pattern entered by the user. For example, if the user enters 1, need to retrieve all the KOSTL values starting with 1. But when i write a SELECT statement mentioning where kostl in '1', it is ignoring all the values like (0000001, 00001034, 0012334, and others). Only values starting with 1 is only retrieved as this is a character field and due to conversion routine, zeroes are prefixed while storing in the database.
    Could any one let me know how to retrieve the values from the database in this situation?

    If you want to use IN operator in your where clause then you should define a range variable(R_KOSTL) which refers to CSKS=KOSTL and populate the range as below
    R_KOSTL-SIGN = 'I'.
    R_KOSTL-OPTION = 'CP'.
    R_KOSTL-LOW = '1*'.
    APPEND R_KOSTL.
    and then write your select statement as .... WHERE kostl IN r_kostl.
    The approach suggested by Amit should also work fine.
    Thanks
    Kiran

  • Error while trying to retrieve data from BW BEx query

    The following error is coming while trying to retrieve data from BW BEx query (on ODS) when the Characters are more than 50.
    In BEx report there is a limitation but is it also a limitation in Webi report.
    Is there any other solution for this scenario where it is possible to retrieve more than 50 Characters?
    A database error occured. The database error text is: The MDX query SELECT  { [Measures].[3OD1RJNV2ZXI7XOC4CY9VXLZI], [Measures].[3P71KBWTVNGY9JTZP9FTP6RZ4], [Measures].[3OEAEUW2WTYJRE2TOD6IOFJF4] }  ON COLUMNS , NON EMPTY CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( [ZHOST_ID2].[LEVEL01].MEMBERS, [ZHOST_ID3].[LEVEL01].MEMBERS ), [ZHOST_ID1].[LEVEL01].MEMBERS ), [ZREVENDDT__0CALDAY].[LEVEL01].MEMBERS ) ........................................................ failed to execute with the error Invalid MDX command with UNSUPPORTED: > 50 CHARACT.. (WIS 10901)

    Hi,
    That warning / error message will be coming from the MDX interface on the BW server.  It does not originate from BOBJ.
    This question would be better asked to support component BW-BEX-OT-MDX
    Similar discussion can be found using search: Limitation of Number of Objects used in Webi with SAP BW Universe as Source
    Regards,
    Henry

  • Query Report:To Retrieve Data from A/R Invoice and A/P Invoice

    Hii Experts,
          I am a new Sap B1 Trainee.I am facing a problem when retrieving data from A/R Invoice and A/P Invoice in order to track
    Expenditure and Revenue according to a Bussiness partner,
    I am using union to retrieve the information,but it is saying a error that  Error Converting Varchar to Numeric and also
    i would like to know how can i show the total final payment by reflecting Downpayments in A/R Invoice and A/P Invoice
    With Regards
    Cherry.

    Hii.
    My Sap B1 version is 8.8.1 and patch level is 20. Actully i need a scenario where i can able to show both Expenditure and Revenue of a particular bussiness partner and profit/loss in a single query report.
    I need some tips regarding this,When i am doing union i am getting conversion error converting varchar to numeric when i take
    Sum(Line Total) from OINV and Sum(line total) OPCH group by docdate and docentry and BP .
    and another scenario is how to deduct A/P downpayment or A/R downpayment from A/P invoices and A/R invoice to get the final Revenue and Expenditure ..
    Thanks & Regards
    Cherry

Maybe you are looking for