Xml response from rwservlet - timinginfo format

Hello everyone,
We've been running reports from database using the SRW package. After we upgraded to a newer version of Application Server (we may have upgraded more that just that) the reports stopped being run.
I discovered that the problem is in the date/time format in the XML response from the report server. The SRW package is trying to convert the timinginfo string values to date using the following hardcoded date format:
DATE_FORMAT CONSTANT VarChar2(22) := 'MM/DD/YY HH:MI AM'; -- Date-Format used to convert the timing-info
However, the date format in the response coming back from the server is different - see below.
<?xml version = '1.0' encoding = 'ISO-8859-1' standalone = 'yes'?>
<serverQueues>
<job id="4314" queueType="current">
<name>SysEmailRequest</name>
<type>report</type>
<status code="1">Waiting in the queue</status>
<owner>RWUser</owner>
<server>windev2006dev2006</server>
<destination>
<desType>EmailSysoeDes</desType>
<desName>PMRFI</desName>
<desFormat>pdf</desFormat>
</destination>
<timingInfo>
<queued>Jul 28, 2006 9:51:48 AM</queued>
<started>Jul 28, 2006 9:51:48 AM</started>
<finished>Jul 28, 2006 9:51:48 AM</finished>
</timingInfo>
</job>
</serverQueues>
Does anyone know where to set the date format for timinginfo?
I don't want to just modify the format in the SRW package without knowing why it changed.
Thanks in advance,
Rasto Sadecky

Hello,
The reports server uses the "machine's locale" to format the date.
You can use the jvmoptions parameter to specify another user.language :
rwserver server=repserver jvmoptions="-Duser.language=xx"
Regards

Similar Messages

  • Xml query hungs up with large xml response from utl_http request

    We are having very sensitive problem in Production environment with xmlquery.
    When receive a small or medium size xml, the query shown below works. But when the xml is large or very large its hung and slow down all the database.
    We are with Oracle 11gR2
    We are using clob to parse the response from the http request.
    What could be the problem or the solutions?. Please help. Its urgent...
    SELECT opciones_obj (x.strindice,
    x.nombrecompleto,
    x.nombre,
    x.strtipodato,
    x.codigoopcion,
    x.floatval,
    x.strtipo,
    x.strval)
    BULK COLLECT INTO t_opciones
    FROM XMLTABLE (
    xmlnamespaces (
    'http://schemas.xmlsoap.org/soap/envelope/' AS "env",
    'http://wsevaluarreglacondicioncomercial/' AS "ns0",
    'http://wsevaluarreglacondicioncomercial/types/' AS "ns1",
    'http://www.oracle.com/webservices/internal/literal' AS "ns2"),
    '/env:Envelope/env:Body/ns0:listarOpcionesAtributoEventoResponseElement/ns0:result/ns1:listaVariables/ns2:item/ns2:item'
    PASSING rsp_xml
    COLUMNS strindice VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strIndice"]/ns2:value',
    nombrecompleto VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="nombreCompleto"]/ns2:value',
    nombre VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="nombre"]/ns2:value',
    strtipodato VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strTipoDato"]/ns2:value',
    codigoopcion NUMBER
    PATH 'ns2:mapEntry[ns2:key="codigoOpcion"]/ns2:value',
    floatval FLOAT
    PATH 'ns2:mapEntry[ns2:key="floatVal"]/ns2:value',
    strtipo VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strTipo"]/ns2:value',
    strval VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strVal"]/ns2:value') x;

    What could be the problem or the solutions?1) Create an XMLType table (could be temporary) using binary XML storage :
    create table tmp_xml of xmltype
    xmltype store as securefile binary xml;2) In your procedure, load the XMLType containing the response (rsp_xml) into the table :
    insert into tmp_xml values (rsp_xml);3) Then, execute the query directly from the table :
    SELECT opciones_obj ( ... )
    BULK COLLECT INTO t_opciones
    FROM tmp_xml t
       , XMLTABLE (
             xmlnamespaces ( ... ),
             '/env:Envelope/env:Body/...'
             PASSING t.object_value
             COLUMNS ...4) At the end of the procedure, delete (or truncate) the table or simply let the table delete itself when the session ends (in case you created it TEMPORARY)

  • Parse xml response from PL/SQL

    Can anyone please help me parse the xml below?
    DECLARE
       l_response     CLOB;
       g_system_id    VARCHAR2 (255);
       g_session_id   VARCHAR2 (255);
       g_user_id      VARCHAR2 (255);
    BEGIN
       l_response :=
          '--uuid:18cb22a2-11cc-43f4-bfea-c213da179d30+id=156
    Content-ID: <http://tempuri.org/0>
    Content-Transfer-Encoding: 8bit
    Content-Type: application/xop+xml;charset=utf-8;type="application/soap+xml"
    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://tempuri.org/ILoginService/LoginByUserNameResponse</a:Action><a:RelatesTo>urn:uuid:cf410a05-23d4-4b92-a22c-329cbc19fbe7</a:RelatesTo></s:Header><s:Body><LoginByUserNameResponse xmlns="http://tempuri.org/"><LoginByUserNameResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema"><XObject.m_element i:type="x:string" xmlns="">&lt;OnlineContext SystemId="{19E0DDB4-5FA5-41EE-B624-AEA762865A6C}" SessionId="{F23D32A4-B325-4BFA-9E90-39CA253E843C}" UserId="{2C6ABE4C-D356-46F0-B4BE-9C4F0A36A522}" /&gt;</XObject.m_element></LoginByUserNameResult></LoginByUserNameResponse></s:Body></s:Envelope>
    --uuid:18cb22a2-11cc-43f4-bfea-c213da179d30+id=156--';
          SELECT systemid, sessionid, userid
            INTO g_session_id, g_system_id, g_user_id
            FROM XMLTABLE (
                    xmlnamespaces ('http://www.w3.org/2003/05/soap-envelope' AS "data"),
                    'data:LoginByUserNameResponse/LoginByUserNameResult/XObject.m_element/OnlineContext'
                    PASSING xmltype (l_response)
                    COLUMNS systemid VARCHAR2 (50) PATH '@OnlineContext',
                            sessionid VARCHAR2 (50) PATH '@OnlineContext',
                            userid VARCHAR2 (50) PATH '@OnlineContext') xt;
       DBMS_OUTPUT.put_line (
             'Session id '
          || g_session_id
          || ' System id '
          || g_system_id
          || ' User id '
          || g_user_id);
    END;
    Thanks.

    This gets you a little bit closer
    declare 
    -- Local variables here
    l_response     CLOB;
    g_system_id    VARCHAR2 (255);
    g_session_id   VARCHAR2 (255);
    g_user_id      VARCHAR2 (255);
    begin
    -- Test statements here
    l_response := '<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"> 
    <s:Header>
        <a:Action s:mustUnderstand="1">http://tempuri.org/ILoginService/LoginByUserNameResponse</a:Action> 
        <a:RelatesTo>urn:uuid:cf410a05-23d4-4b92-a22c-329cbc19fbe7</a:RelatesTo>
    </s:Header>
    <s:Body>
        <LoginByUserNameResponse xmlns="http://tempuri.org/"> 
           <LoginByUserNameResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema"> 
              <XObject.m_element i:type="x:string" xmlns=""><OnlineContext SystemId="{19E0DDB4-5FA5-41EE-B624-AEA762865A6C}" SessionId="{F23D32A4-B325-4BFA-9E90-39CA253E843C}" UserId="{2C6ABE4C-D356-46F0-B4BE-9C4F0A36A522}" /></XObject.m_element>
              </LoginByUserNameResult>
          </LoginByUserNameResponse>
      </s:Body>
    </s:Envelope>';
        SELECT systemid, sessionid, userid
          INTO g_session_id, g_system_id, g_user_id
          FROM XMLTABLE (
                  xmlnamespaces ('http://www.w3.org/2003/05/soap-envelope' AS "s", 
                                 'http://tempuri.org/' as "data"), 
                  's:Envelope/s:Body/data:LoginByUserNameResponse/data:LoginByUserNameResult/XObject.m_element/OnlineContext'
                  PASSING xmltype (l_response)
                  COLUMNS systemid VARCHAR2 (50) PATH '@SystemId',
                          sessionid VARCHAR2 (50) PATH '@SessionId',
                          userid VARCHAR2 (50) PATH '@UserId') xt;
    DBMS_OUTPUT.put_line (
           'Session id '
        || g_session_id
        || ' System id '
        || g_system_id
        || ' User id '
        || g_user_id);
    end;    
    You will need to manually parse that CLOB and pull out the XML string itself from the response.  That can be done via SUBSTR and INSTR looking for the first < and last > in what you showed at least.  Updated from previous version to work properly with the xmlns="", which resets the default namespace back to the default value.  The XPath was corrected to reflect proper prefix usage.

  • How to read XML response from a URL in java?

    Hi .
    I need to write a simple function that takes a URL and processes the response which is XML or JSON.
    I tried this code:
    URL l_url = new URL(serviceURL);
    URLConnection urlConnection = l_url.openConnection();
    InputStream inputStream = l_url.openStream();
    DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
    Document inputXML = documentBuilder.parse(inputStream);
    but in line number 3 it throws an error:
    "l_url.openStream() = >Exception occurred in target VM: Server returned HTTP response code: 401 for URL:"
    Please let me know how do I achieve it.
    Thanks and regards,
    Sonal

    Sonal wrote:
    "l_url.openStream() = >Exception occurred in target VM: Server returned HTTP response code: 401 for URL:"
    Please let me know how do I achieve it.you achieve it by fixing your authentication problem (401 is the response code indicating your request was not authorized, which you can easily find out with a simple google search).

  • Executing URL and receiving XML response from ABAP

    Hi,
    I have a scenario where I need to execute a URL (along with some parameters) and this URL returns an XML onto browser.
    Now I want to achieve similar functionality through ABAP code.
    Ex: this is the sample URL to be executed -->
    http://localhost:8080/artemis7_802/triton/mycompany.remoteFunctions.RequirementsList.a7x?requestid=3023&requestname=I6PRAO1&skill=SAP&skill=JAVA
    How this can be done?
    Please help.
    Thanks and regards,
    Amey

    Refer this thread -->
    http://wiki.sdn.sap.com/wiki/display/BSP/Handleserver-sideformsubmittingin+BSP

  • How do i prevent getting a xml declaration in the xml response

    Hi,
    I am using a soap call to access a webservice via plsql.
    The xml response from the webservice starts as follows
    <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">..............
    I want to find ways to
    1. either prevent the xml tag <?xml version='1.0' encoding='UTF-8'?> from being returned in the response.
    2. or somehow convert the entire response to a string and remove it by substr (not sure about this)
    The issue i am facing is that when i run a xmltype.extract on the xml to get a particular node i am getting the
    ORA-31013: Invalid XPATH expression
    when i remove the tag from the response (using hardcoded values) i get the right values back.
    Any suggestions are welcome.
    Regards
    kpillai

    Hi,
    The code extract with hardcoded values looks like this. Please note that i added quotes in the xml statement
    '<?xml version=''1.0'' encoding=''UTF-8''?>which is not the case when oracle returns the xml and i guess thats the whole issue.
    The code below runs perfectly. But when the entire procedure runs where the xml response is returned I get the error.
    DECLARE
    v_result XMLType;
    v_xml XMLType;
    v_request_id varchar2(100);
    v_start varchar2(10);
    v_end number(10);
    p_namespace varchar2(2000):='xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:service="http://mercury.com/ppm/dm/service/1.0" xmlns:common="http://mercury.com/ppm/common/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mercury.com/ppm/dm/1.0"';
    BEGIN
         v_xml := XMLType('<?xml version=''1.0'' encoding=''UTF-8''?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header /><soapenv:Body><service:createRequestResponse xmlns="http://mercury.com/ppm/dm/1.0" xmlns:service="http://mercury.com/ppm/dm/service/1.0" xmlns:common="http://mercury.com/ppm/common/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><service:return xmlns:service="http://mercury.com/ppm/dm/service/1.0" xmlns:common="http://mercury.com/ppm/common/1.0" xmlns="http://mercury.com/ppm/dm/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <addedBy>srvnewscale</addedBy>
    <creationDate>2010-10-22T10:33:44Z</creationDate>
    <description>testing1</description>
    <name>20013876</name>
    <displayURL>http://itg.abc.com:19001/itg/web/knta/crt/RequestDetail.jsp?REQUEST_ID=12345678</displayURL>
    <identifier><id>20013876</id>
    <serverURL>http://itg.abc.com:19001/itg/ppmservices/DemandService</serverURL>
    </identifier><status>Enter - Amend Service Offering</status>
    </service:return>
    </service:createRequestResponse>
    </soapenv:Body></soapenv:Envelope>');
         v_result := xmltype.extract(v_xml,'/soapenv:Envelope/soapenv:Body/service:createRequestResponse/service:return/name', p_namespace);
    insert into result2 values(v_result);
         if (v_result is NULL)
         then
         dbms_output.put_line('no result');
         end if;
         end;
    Regards
    Edited by: 804401 on Oct 24, 2010 9:21 PM

  • TO PARSE XML RESPONSE AFTER SENDING XML DOCUMENT AS URL PARAMETER PROBLEM

    Hi
    I sent the xml document (varchar variable)to the other site (to use URL).
    When I take the xml response from the other site, how can I parse this using pl/sql code? (db version oracle 8.1.7)
    What are the methods?
    Try the following URL by pasting it in browser location box:
    http://testspos.isbank.com.tr/sanalpos/spos.asp?prmstr='&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ePaymentMsgVersionInfo="2.0" TT="Request" RM="Direct" CT="Money"&gt;&lt;OperationActionType="LiveTest"&gt;&lt;OpData&gt;&lt;MerchantInfo MerchantId="200000845966"MerchantPassword="kangurum"/&gt;&lt;ActionInfo&gt;&lt;TrnxCommon TrnxID="'||v_sipno||'"Protocol="156"&gt;&lt;/TrnxCommon&gt;&lt;/ActionInfo&gt;&lt;PANInfo&gt;&lt;/PANInfo&gt;&lt;OrgTrnxInfo&gt;&lt;/OrgTrnxInfo&gt;&lt;CustomData&gt;&lt;/CustoData&gt;&lt;/OpData&gt;&lt;/Operation&gt;&lt;/ePaymentMsg&gt;'
    You will get the response:
    &lt;html&gt;&lt;head&gt;&lt;title&gt;Error&lt;/title&gt;&lt;/head&gt;&lt;body&gt;The parameter is incorrect. &lt;/body&gt;&lt;/html&gt;

    Hi
    I sent the xml document (varchar variable)to the other site (to use URL).
    When I take the xml response from the other site, how can I parse this using pl/sql code? (db version oracle 8.1.7)
    What are the methods?
    Try the following URL by pasting it in browser location box:
    http://testspos.isbank.com.tr/sanalpos/spos.asp?prmstr='&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ePaymentMsgVersionInfo="2.0" TT="Request" RM="Direct" CT="Money"&gt;&lt;OperationActionType="LiveTest"&gt;&lt;OpData&gt;&lt;MerchantInfo MerchantId="200000845966"MerchantPassword="kangurum"/&gt;&lt;ActionInfo&gt;&lt;TrnxCommon TrnxID="'||v_sipno||'"Protocol="156"&gt;&lt;/TrnxCommon&gt;&lt;/ActionInfo&gt;&lt;PANInfo&gt;&lt;/PANInfo&gt;&lt;OrgTrnxInfo&gt;&lt;/OrgTrnxInfo&gt;&lt;CustomData&gt;&lt;/CustoData&gt;&lt;/OpData&gt;&lt;/Operation&gt;&lt;/ePaymentMsg&gt;'
    You will get the response:
    &lt;html&gt;&lt;head&gt;&lt;title&gt;Error&lt;/title&gt;&lt;/head&gt;&lt;body&gt;The parameter is incorrect. &lt;/body&gt;&lt;/html&gt;

  • I have successfully exported subtitles (XML files) from FC version 7 to FC version 6, by choosing Apple XML Interchange Format Version 4. Now the exported subtitles suddenly read in one long line, at the top, not registering any "Enter" keystrokes.

    I have successfully exported subtitles (XML files) from FC version 7 to FC version 6, by choosing Apple XML Interchange Format Version 4. Now the exported subtitles suddenly read in one long line, at the top, not registering any "Enter" keystrokes. The same happens even if I re-import the XML file into Final Cut Version 7 (from where I exported the subtitles). Any tips on how to fix this?

    You might see if you can bring the xml file into Title Exchange Pro
    http://www.spherico.com/filmtools/TitleExchange/
    It's a great program and the author was very responsive when I had a problem.
    If it reads correctly, you can probably save it back out. 
    If you want to send it to me, I'll see if it opens.
    [email protected]

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • Xml response is auto coverting to text format unable to view result

    Xml Response is auto matiacally covert as simple text. unable to resolve this issue.
    This issue from firfox v30.
    Same service if I check with other browser I can able to see xml response.

    Hi yesprakash,
    Please check the encoding of the page as well as please update to the latest Firefox version 31: [[Update Firefox to the latest version]]
    [[Set how Firefox handles different types of files]] xml can be added here, and how to check the encoding of the page:
    # Click View > Character encoding and select the right one for xml.
    [https://developer.mozilla.org/en-US/docs/XML_in_Mozilla]
    Do you have an xml parser for the xml file? Do you have the header:
    header( 'Content-Type: text/xml, charset=utf-8' );
    I hope this helps.

  • Translating from COBOL copybook format to XML

    Hi folks,
    A student asked me this question today: Does WLI provide any support for translating
    from COBOL copybook format to XML?
    The discussion had to do with adapters. I presume that you would have to do this
    sort of translation yourself, but I didn't know if something like this were in
    the product, somehow.
    Also, is there any reference code to an SAP adapter out there that I could take
    a look at?
    Thanks -
    Paul Loefstedt

    Hi Paul,
    Long time no see. I know BEA's WebLogic Java Adaptor for Mainframe has a utility
    to take Cobol copybook and converted to Java Object. Not sure about WLI.
    Jim Zhou.
    "Paul Loefstedt" <[email protected]> wrote:
    >
    Hi folks,
    A student asked me this question today: Does WLI provide any support
    for translating
    from COBOL copybook format to XML?
    The discussion had to do with adapters. I presume that you would have
    to do this
    sort of translation yourself, but I didn't know if something like this
    were in
    the product, somehow.
    Also, is there any reference code to an SAP adapter out there that I
    could take
    a look at?
    Thanks -
    Paul Loefstedt

  • Send xml file and recieve xml in response from servlet

    hi
    i want to send a xml file to http address and in response recieives an xml file from which i want to fetch value in java
    can everybody help me out by giving me some help code
    thanks
    haryy

    I think you can do this with the DOM API .
    Go through this: http://www.javaworld.com/javaworld/jw-07-2000/jw-0728-jdom2.html

  • Raw XML Response Stream from WeblogicServiceProxy

    How can I get the raw XML response stream from a SoapMethod invoked by the WeblogicServiceProxy?
    thanks,
    Karthik

    From what I know, all Java XML libraries make sure the XML is well-formed before attempting to read it. If you just get chunks of XML, a single chunk in itself will probably not be well-formed.
    Can't you buffer the data (in a byte array input stream or something) until you get the entire XML, and only then attempt to load using SAX or whatever?
    Simon

  • XML response / Velocity template

    Hi everyone,
    I have a servlet which uses velocity engine to generate a soap request ,send it to a server and receive an xml response. How do I go about extracting the elements from the response and displaying them in a more readable format in a browser?
    Any help appreciated,
    Ruth

    you receive an XML reponse, so use an XML parser to prse and extarct the data you need.
    use sax for example to do this.
    here some examples:
    http://www.onjava.com/pub/a/onjava/2002/06/26/xml.html
    http://www.cafeconleche.org/books/xmljava/
    http://totheriver.com/learn/xml/xmltutorial.html
    hth

  • Using session.xml file from WorkB in  a Session Facade based on another xml

    Hi
    I have the follwing scenario.
    Need to read data from a set of tables and convert them into an XML file based on an XSD.
    I am planning to use Toplink POJO in JDeveloper to create a SessionFacade to read the values.
    I tested the SessionFacade using a client and I was able to read the values correctly.
    Based on my xsd, I created a project in Workbench and mapped the classes created earlier, I was able to test this mapping using a test xml data file.
    I was able to read the file, Unmarshall it, manipulate it and generate an XML.
    Now the question is how do I call this Marshalling from my SessionFacade ?
    Since two session.xml files are in different format, I could not copy the content from one file into another.
    How do I create a JAXBContext based on a different session.xml?
    Thanks
    Sambath
    Oracle Consulting

    Hi Doug,
    Thanks for the response. I did the same and I was able to make it work, soon after I posted. I should have updated it :-)
    I used two sessions file.
    The OXM expected the name of the file to sessions.xml and I have to keep it that way. I created a ormsession.xml using JDeveloper and referred the ORM Project created in the Workbench to use it for ORM . In fact I created a dummy ormsession.xml file in JDeveloper wiht a session named "default". I started by creating an entry manually by copying the contents of the session definition and renamed to "MySession"
    Once again thanks for following up
    Thanks
    Sambath

Maybe you are looking for

  • Can't use tab and esc function with wireless keyboard

    I've recently installed the wireless apple keyboard and it works fine when typing emails, etc., but I can't seem to scroll with the arrows, tab through emails, use the ESC button to close email messages, etc. Is this fixable?

  • Why does iphoto keep quitting unexpectedly?

    Using a MacBook Pro, 2.4 GHz Intel Core i5, memory: 4 GB 1333 MHz DDR3. OS X Lion 10.7.5 (11G63). Every time I drop a photo into iPhoto today, the program "quit[s] unexpectedly." I have a copy of the problem report if needed.

  • Standard Analysis - Report generation problem.

    Hi, while generating a report in standard analysis, it says no data records found. Date also were taken care of. For this sales organization first time we are doing the sales, when tried to view the report it give the above message. For all the other

  • Major keyboard lag?

    I have a rather odd problem that comes up regardless of whether I am on wifi or EDGE. I am quite the Livejournal addict, and so most of my iPhone use involves that website. When I type a comment to someone, my keyboard it just fine. the taps register

  • Why is font changed with 10.6.8?  Everything is smaller?

    so far all fonts are smaller?  Where can I change back to previous settings?