Handling of UTL_HTTP package in oracle 10.2.0.5 to 11.2.0.2

Dear All,
We are calling Web services using UTL_http through one of our custom package in Oracle 10.2.0.5 .. & it is giving correct result/output..
But if we are calling web services using the same custom package from oracle 11.2.0.2 & it is giving us error..
utl http handling in custom package as :
soap_request :=
'<?xml version = "1.0" encoding = "UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body>'
|| v_request_xml -- input xml that we are sending
|| '</SOAP-ENV:Body></SOAP-ENV:Envelope>';
http_req :=
UTL_HTTP.begin_request (fx_service_url, -- fx_service_url is URL web service which are calling
'POST',
'HTTP/1.1'
UTL_HTTP.set_header (http_req,
'Content-Type',
'text/xml'
UTL_HTTP.set_header (http_req,
'Content-Length',
LENGTH (soap_request)
UTL_HTTP.set_header (http_req, 'SOAPAction', '');
UTL_HTTP.write_text (http_req, soap_request);
http_resp := UTL_HTTP.get_response (http_req);
DBMS_OUTPUT.PUT_LINE('HTTP response status code: ' || http_resp.status_code);
DBMS_OUTPUT.PUT_LINE('HTTP response reason phrase: ' || http_resp.reason_phrase);
UTL_HTTP.read_text (http_resp, soap_respond);
UTL_HTTP.end_response (http_resp);
Output in 10g :
HTTP response status code: 200
HTTP response reason phrase: OK
Output in 11g :
HTTP response status code: 400
HTTP response reason phrase: Bad Request
Query :
1. is there any difference of handling utl_http in oracle 10.2.0.5 to 11.2.0.2 ?
2. we recently upgraded oracle database from 10.2.0.5 to 11.2.0.2.. is/are there any setting which we need to take care while passing xml from oracle database to web service ..?
3. do we need to change any setting in we-services server also in case database upgraded from ..?
Thanks,

For SQL Developer, see my advices in Re: Oracle 10g - Chinese Charecter issue and Re: insert unicode data into nvarchar2 column in a non-unicode DB
-- Sergiusz

Similar Messages

  • Error while using utl_http package

    Hi Guys,
    I need some help with the utl_http package
    The problem that Iam facing is as follows :
    Iam trying to use the Oracle provided package utl_http
    package to send an http request to a particular
    website.However Iam getting the request_failed
    exception.
    I type in the foll.command in sqlplus:
    select utl_http.request('http://www.oracle.com') from
    dual
    and I get the foll.error---
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "SYS.UTL_HTTP", line 174
    ORA-06512: at line 1
    If I try and trap the exception it shows
    request_failed exception.
    If any one has any clue on how to resolve this -- >please reply ASAP .
    Thanks

    Is it possible that your database sits behind a firewall? If so, you need to specify the proxy in utl_http.request.

  • Utl_http package from our custom pl/sql package.

    We have a requirement to invoke a thrid party Url that uses HTTPS. For this we are using the call to utl_http package from our custom pl/sql package. When we invoke the custom package form Oracle Forms it works fine. But when we try to invoke the same from ApplicationModule Class in our custom OA Framework form we get the following error.
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1577
    ORA-28862: SSL connection failed

    Duplicate post.
    ApplicationModule class in a custom OA Framework
    ApplicationModule class in a custom OA Framework

  • How to perform authentication on proxy using utl_http package?

    Hi,
    I am using Oracle 8i database (ver:8.1.7). I want to use the utl_http package to perform http requests. Within my company, I am forced to use a proxy and I have to be authenticated on that proxy. How can I authenticate myself on the proxy using utl_http.request function on Oracle 8i?
    Thanks a lot.
    Paulo.

    UTL_HTTP
    The UTL_HTTP package makes Hypertext Transfer Protocol (HTTP) callouts from SQL and PL/SQL. You can use it to access data on the Internet over HTTP.
    With UTL_HTTP, you can write PL/SQL programs that communicate with Web (HTTP) servers. UTL_HTTP also contains a function that can be used in SQL queries. The package also supports HTTP over the Secured Socket Layer protocol (SSL), also known as HTTPS, directly or through an HTTP proxy. Other Internet-related data-access protocols (such as the File Transfer Protocol (FTP) or the Gopher protocol) are also supported using an HTTP proxy server that supports those protocols.
    When the package fetches data from a Web site using HTTPS, it requires Oracle Wallet Manager to set up an Oracle wallet. Non-HTTPS fetches do not require an Oracle wallet.
    See Also:
    Chapter 102, "UTL_URL"
    Chapter 100, "UTL_SMTP"
    Oracle Advanced Security Administrator's Guide for more information on Wallet Manager
    This chapter discusses the following topics:
    UTL_HTTP Constants, Types and Flow
    UTL_HTTP Exceptions
    UTL_HTTP Examples
    Summary of UTL_HTTP Subprograms
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/u_http.htm#ARPLS070
    Joel P�rez

  • Problem in Using Utl_Http package

    Hi to all,
    I'm trying to send the sms(Short Message Service) using utl_Http package. When I'm trying to run a sql statement like
    SELECT utl_http.request('http://www.oracle.com/index.html') FROM dual
    I'm getting an error message like this.
    The following error has occurred:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1577
    ORA-12545: Connect failed because target host or object does not exist
    ORA-06512: at line 1
    Pls help me to solve this problem.
    Regards,
    Alok Dubey

    Thank you for ur reply. Infact my database was not able to access the internet. currently, it is working fine.
    I'am using this code. It's works well.
    CREATE OR REPLACE PROCEDURE Send_Sms_Http
    AS
    text_str VARCHAR2(5000);
    V_Message VARCHAR2(200) := REPLACE('This is a DEMO SMS sent to u on '||TO_CHAR(SYSDATE,'DD/MM/RRRR HH12:MI:SS AM'),' ','%20');
    text_sms VARCHAR2(5000) := 'http://hapi.smsapi.org/SendSMS.aspx?UserName=xxxx&password=xxxx&MobileNo=xxxx,xxxxx&SenderID=xxxx&CDMAHeader=xxxxx&Message='||V_Message;
    BEGIN
    text_str := utl_http.request(text_sms);
    Dbms_Output.Put_Line('text_str = '||text_str);
    EXCEPTION
    WHEN OTHERS THEN
    Dbms_Output.Put_line('Error in sending the message'||SQLERRM);
    END;
    Regards,
    Alok Dubey

  • How to display html document returned by utl_http package (POST method)

    I am using oracle forms 10g, data base version is 10g.
    I have written a database procedure that calls utl_http package POST method and request returns an html document. How do display this html document from oracle form?
    Thank you
    Hema

    Here you have...
    A Full Web Browser Java Bean - Oracle Forms PJCs/Java Beans
    http://forms.pjc.bean.over-blog.com/article-26251949.html

  • Problem escaping '&' character in utl_http package..

    I'm using utl_http package to download web pages without any problem if the URL is a regular one such as: http://www.oracle.com/etc/data.html
    However, as in most cases, the data files are dynamically generated by cgi's, and look like:
    http://xyz.data.com/cgi?n1=v1&n2=v2
    Whenever I pass the above as a URL, Oracle thinks that I'm trying to pass a value to the variable d on the fly.
    Escaping & with \ or {} did not help at all.
    Does anybody have any suggestions?
    Thanks
    Cuneyt
    [email protected]

    hi,
    try using " set scan off "
    regards,
    shravan

  • How to call a package in Oracle

    I'm trying to call a package in oracle
    (this is the oracle way of calling it :
    begin pck$xl.get_year_low_high_to_date(:compid, 20010801 , 20020108 ",:year_low,:year_high,:year_average,:low_date,:high_date); end;)
    but i can't get it right.
    I'm new to package calling in Oracle from Java, till now i only worked with SQL statements without parameters of that kind, can someone help me with this?
    ps the ":compid" is a parameter i have to fill in and provide...
    thank you very much

    ok here is a test i do...
    but still doesn't work something about the bindvariables (check errorlog). I know a bit jdbc and i understant what you mean, but the problem is i don't know how this should go :(
    please advise
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    import java.io.*;
    * @author  U97488
    public class test {
        public static void main(String[] args) {
            try{
                ConnectionSherpa cs = ConnectionSherpa.getInstance("ConnectionSherpa");
                Connection conn = cs.getConnObj();
                String sSQL = "begin?; pck$xl.get_year_low_high_to_date(?, 20010801, 20020801 ,:year_low,:year_high,:year_average,:low_date,:high_date); end;";
                CallableStatement stmt = conn.prepareCall(sSQL);
                stmt.setString(1, "BRU10");
                System.out.println(stmt.toString());
                if(stmt.execute(sSQL)){
                    System.out.println(stmt.getString(2));
            }catch (Exception e){
                e.printStackTrace();
    }StackTrace:
    java.sql.SQLException: ORA-06550: Regel 1, kolom 6:
    PLS-00110: Bindvariabele '1' is niet toegestaan in deze context..
            at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
            at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
            at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
            at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1451)
            at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:862)
            at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1839)
            at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1764)
            at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2354)
            at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:909)
            at com.kbcsecurities.taminoupdate.servlets.test.main(test.java:28)

  • How call procedure or package from Oracle BI Publisher 10.1.3.2.1

    Hi Gurus,
    I need to call a procedure or package from Oracle BI Publisher 10.1.3.2.1 by passing parameters, I do it because it would be easier to fill a table as the report that asks for is too complex (8 breaks, 5 dblinks, 20 tables, etc).
    I'm not using the Oracle XML. Review include the following solutions:
    Re: Stored procedures and dynamic columns
    Re: Is it possible to use Stored Procedures in BI Publisher GUI?
    Re: PL/SQL Stored Procedure w/ XML Template?
    But none of them useful for me was the level of complexity.
    Best regards.

    Hi Vetsrini,
    I write the sentence as it showed in the previous thread
    select from whc_kk_v2.whc_p_kk_publisher (pv_msgerror =>: msgerror,*
    pv_pro1 =>: prov_1,
    pv_pro2 =>: prov_2)
    run when I get the error BIP
    ORA-00933: SQL command not properly ended
    Show me I'm doing wrong, or who may be causing the error. I tried everything but does not leave, please your help.
    Best regards

  • Error while invoking webservice using UTL_HTTP package

    Hi All,
    I am invoking a webservice (SOAP Request) from a PL/SQL block using UTL_HTTP package.
    I am able to send the complete request and am getting the required instance on the BPEL Console, but the process is errorring out while getting response back.
    and the PL/SQL Block is ending in error mentioned below:
    ERROR at line 1:
    ORA-29266: end-of-body reached
    ORA-06512: at "SYS.UTL_HTTP", line 1321
    ORA-06512: at "APPS.CSM_BPEL_TEST_PKG", line 34
    ORA-06512: at line 1
    Can anyone let me know what is the cause of this.
    Thanks in advance

    My guess would be that your request is not properly constructed,
    29266, 00000, "end-of-body reached"
    // *Cause:  The end of the HTTP response body was reached.
    // *Action: If the end of the HTTP response is reached prematurely, check if
    //          the HTTP response terminates prematurely.  Otherwise, end the
    //          HTTP response.John

  • Error executing a package on Oracle 10G database

    Hi,
    I've a package on Oracle 10G database which accepts xml string as input,loads it into XMLDOM and does some processing.
    When I execute this package from .Net 2.0 client,I get the following error:
    **Error**
    err ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00216: invalid character 0 (0x0)
    Error at line 1
    **Error**
    But when I execute the same package from .Net client 2.0 on Oracle 9i database, it seems to work fine.The xml which I am sending is well-formed one.
    Where am i going wrong?
    Please help.
    Thanks in advance...!
    Regards,
    Amit

    Check the xml strings passed as input . One of the xmls may be malformed.

  • Unwrapping a Package  in oracle 10g

    Hi,
    I would like to view the code of dbms_scheduler package in oracle 10g. When i tried to see the package body it shows me that the package has been wrapped. Could anyone let me know how to unwrap the package and see the contents.

    That is all you can see, no more.
    SQL> desc dbms_scheduler ;
    ....more
    FUNCTION GET_JOB_STEP_CF RETURNS RE$VARIABLE_VALUE
    Argument Name                  Type                    In/Out Default?
    IEC                            VARCHAR2                IN
    ICN                            VARCHAR2                IN
    VNAME                          VARCHAR2                IN
    IEV                            RE$NV_LIST              IN
    PROCEDURE GET_SCHEDULER_ATTRIBUTE
    Argument Name                  Type                    In/Out Default?
    ATTRIBUTE                      VARCHAR2                IN
    ...moreSs

  • Can we post data 32KB using utl_http package?

    I was using utl_http package for posting http data. Now there is a change in requirement and I have to call a web service instead of normal http post. Also the amount of data to be transferred now is >32KB (previously it was only 16KB). I have to manaually create the SOAP message and post it as http requset. Is it possible to post data more than >32KB using the utl_http package?
    -Kumar
    Message was edited by:
    user586950

    did a trace route and this is what it came out with
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Moroni>ping 64.124.140.30:9090
    Ping request could not find host 64.124.140.30:9090. Please check the name and t
    ry again.
    C:\Documents and Settings\Moroni>tracert 64.124.140.30:9090
    Unable to resolve target system name 64.124.140.30:9090.
    C:\Documents and Settings\Moroni>tracert 64.124.140.30
    Tracing route to 64.124.140.30.mfnx.net [64.124.140.30]
    over a maximum of 30 hops:
    1 13 ms 15 ms 33 ms 73.91.188.1
    2 9 ms 11 ms 9 ms GE-2-45-ur01.troutdale.or.bverton.comcast.net [6
    8.87.218.185]
    3 * 12 ms * te-9-3-ar01.troutdale.or.bverton.comcast.net [68
    .87.216.89]
    4 39 ms 13 ms 16 ms 12.116.25.33
    5 17 ms 17 ms 18 ms tbr1011401.st6wa.ip.att.net [12.122.111.6]
    6 17 ms 15 ms 16 ms 12.122.86.41
    7 * * * Request timed out.
    8 * * * Request timed out.
    9 * * * Request timed out.
    10 * * * Request timed out.
    11 * * * Request timed out.
    12 * * * Request timed out.
    13 * * * Request timed out.
    14 * * * Request timed out.
    15 * * * Request timed out.
    16 * * * Request timed out.
    17 * * * Request timed out.
    18 * * * Request timed out.
    19 * * * Request timed out.
    20 * * * Request timed out.
    21 * *

  • Maximum size of a package in oracle 10g ?

    Hi,
    I am using Oracle 10g, version-10.1.0.4.2 and OS- Windows XP.
    What should be the maximum size of a package in oracle 10g ?
    Thank u....!
    Ravi

    http://download.oracle.com/docs/cd/B14117_01/server.101/b10755/limits003.htm#sthref3594
    Nicolas.

  • How to register Package in oracle apps?

    Hi All
    How to register package in oracle apps?
    If package contains 3 procedure, i want to call 2nd procedure of the package when i submit the concurrent program in srs window.. Can any one give the registration for the same

    To add to Gyan's comment:
    Go to system adminstration responsibility
    Create a conc. executable. Select execution method as pl/sql stored program and then enter your second procedure name as follows
    package_name.procedure_name.
    Then create conc. program that uses the above executable.
    Add the program to a request group.
    Add the request group to a responsibility.
    Now you will be able to run your procedure.
    Hope this helps,
    Sandeep Gandhi

Maybe you are looking for

  • Problema com GRC e PI

    Olá pessoal Temos aqui o R/3 na versão 5.0 o GRC instalado no PI, como ja tinhamos o PI sendo utilizados em outras aplicaçoes no client 500, fizemos uma copy client criando o client 700 para usar na NFE, então temos 2 business system: 1 que aponta pa

  • 24" iMac plays 1080i HD smoother with XP/Bootcamp 2 than XP/Bootcamp 3!

    FYI: On my 24" iMac, Sony Picture Motion Browser could play 1080 60i AVCHD videos silky smooth under Windows XP / Bootcamp 2 (from Leopard DVD). I clean installed Windows XP / Bootcamp 3 (from Snow Leopard DVD) and immediately noticed Sony Picture Mo

  • HT1923 I can no longer get my ipod recognised by itunes on my PC

    I bought an IPOD classic about 4 years ago.  until now, no problem connecting with iTunes on my PC. Today i have tried to download new music from my PC but this was unsuccessful.  My Ipod indicates it *IS* connested to the PC and *IS* charging.  But

  • Sync Music and Podcasts from two computers

    I would like to use my home Mac Pro to sync my iTunes music library and my PowerBook to sync podcasts (because I travel quite alot) to my iPhone is this possible? Thanks for any suggestions Mike

  • How to add new persons in Automatic Broadcasting report

    Hi Expertts, How to add perrsons name (newly) in Automatic Broad casting report which is already running. Thanks in Advance, Thanks, Kumar.