How to make a http request from a pl/sql procedure(URGENT)

I need to make a http request from a pl/sql procedure, can any one tell me which built-in package and which procedure/function we serve my need?
Thanks in advance.
Ram Prasad.

You should use UTL_HTTP package, but before it install the JVM into DB

Similar Messages

  • How to transfer the http request from applet to servlet/jsp

    I use the JTree component to create a navigation of a website,but i don't
    know how to connect the tree's nodes with the jsp/servlet.
    I mean how to transfer the http request from the applet to a jsp.
    I use the "<frameset>" mark which will divide the web browse into 2 blocks.
    The left side is Applet,and the right side is the linked jsp page.
    what I say is as the weblogic console layout.
    who can help me!!!
    Thank You!

    I use the JTree component to create a navigation of a website,but i don't
    know how to connect the tree's nodes with the jsp/servlet.
    I mean how to transfer the http request from the applet to a jsp.
    I use the "<frameset>" mark which will divide the web browse into 2 blocks.
    The left side is Applet,and the right side is the linked jsp page.
    what I say is as the weblogic console layout.
    who can help me!!!
    Thank You!

  • How to make an HTTP request via SSL

    Hi,
    I´m using an instance of the class CL_HTTP_CLIENT to make an HTTP request to a https server. as long as it requires an SSL authentication, it returns an ICM_HTTP_SSL_ERROR error message.
    How do I tell my program to ask for user´s certificate, and use it in the http request?
    I´m supossed to have hundreds of users online running this application (it´s over SRM 5.0). How can I reach this?
    Thanks you very much.
    Federico.

    Hello Frederico,
    >1. By creating a new client, you mean go to "Environment->SSL Client Identitites" in STRUST, right? >Can I use a previously existing one?
    I meant to create a new client SSL PSE. By default in a new Netweaver abap system, you have 3 of them : ANONYM, DFAULT and WSSE.
    If you need more of them, you can create them with the menu "Go to-->Environment->SSL Client Identitites".
    >2. I need this PSE client to have several 'identitites', I mean, to include several certificates from all my >users. Is it possible? If it´s not; how should I do so?
    It seems that you want a different certificate per user. These client certificates in STRUST are designes to identify a SAP abap system, not human users. If you have 1000 users, you will not create 1000 certificates in STRUST !
    Usually, you use only 2 entries here, one for anonymous HTTPS access and one authenticated HTTPS access. It is unusual to have several different identities for the same abap server. But  it might be possible : for exemple, one identity on the intranet and an other one on the Internet.
    >3. When I had my new PSE client, and my HTTP RFC destination of type 'G' configured to use that >PSE client, and when in abap I instantiate my http client (using CREATE_BY_DESTINATION method, >from CL_HTTP_CLIENT class): How does SAP knows which certificate to use? Because there will be >several users (hundreds) running this code to retrieve their specific data from a third party server.
    >How does SAP knows whom certificate must use?
    The certificate used will be the one defined in the HTTP destination.
    You still seem to make the confusion between server client certificates and users  client certificates.
    a users client certificate is stored in the user's PC (or smartcard) and is used for HTTPS connections from the user's browser to the SSL server, not for an HTTPS connection from the ABAP server to another server.
    Regards,
    Olivier

  • How to pass a HTTP request from a simple java class

    Is it possible to pass an HTTP request from a simple java class.if yes how?

    Is it possible to pass an HTTP request from a simple
    java class.if yes how?If you're talking about creating a HttpRequest object and passing it to a servlet, that would be a red flag to me that your design is flawed. You shouldn't have to do that - the application server (Tomcat, Weblogic, etc) should be the only thing that has to worry about creating that kind of object and passing it to you.

  • Invoking a BPEL process from a PL/SQL procedure(URGENT)

    hello,
    Is it possible to invoke a BPEL process from a pl/sql procedure??
    Please reply ...

    Yes it is.
    On my current project i needed this too.
    http://orasoa.blogspot.com/2006/11/calling-bpel-process-with-utldbws.html
    Re: Error running demo PL/SQL consuming web services
    I used this utl_http example:
    declare
    soap_request varchar2(30000);
    soap_respond varchar2(30000);
    http_req utl_http.req;
    http_resp utl_http.resp;
    launch_url varchar2(240) ;
    begin
    soap_request:='<?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header/>
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/testtask">
    <ns1:testtaskProcessRequest><ns1:input>leeg</ns1:input></ns1:testtaskProcessRequest>
    </soap:Body>
    </soap:Envelope>';
    http_req:= utl_http.begin_request('http://yourhostname/orabpel/default/testtask/1.0'
    ,'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', 'initiate');
    utl_http.write_text(http_req, soap_request) ;
    http_resp:= utl_http.get_response(http_req) ;
    utl_http.read_text(http_resp, soap_respond) ;
    utl_http.end_response(http_resp) ;
    dbms_output.put_line(soap_respond);
    end;

  • How to submit a HTTP Request from a Java Program

    I am working on an web based application where in I need to submit the HttpRequest through a Java Program and not through browser. Moreover my intent is just to submit the HttpRequest. I donot want to wait for the response to come back. I have used the URL Connection class to do the same and I am trying to post this request. The contents of the methods that I am using are as below:-
    public void doPost(URL url, String inputXMLString) throws IOException
              //Create URLConnection based on the passed URL
              URLConnection connection = url.openConnection();
              connection.setDoOutput(true);
              connection.setDoInput(false);
              connection.setUseCaches(false);
              connection.setAllowUserInteraction(false);
              connection.setRequestProperty("Content-type", "application/x-www-form-
    urlencoded");
              //Get the Connection's output stream and write the request to it.
              PrintWriter out = new PrintWriter(connection.getOutputStream());
              out.print("&ena-request-input=" + URLEncoder.encode(inputXMLString));
              out.flush();
              out.close();
    Call to the above method does not invoke the URL I am intending to submit the request at.
    Can anybody give me the clue....................................................?

    I agree with the advice to launch a new thread to read and ignore the response. I don't think you should have to do it to make it work, but it's worth trying for two reasons:
    1) If it turns out it does make it work, well, then either you can leave it that way, or use that as a clue to help figure out how to make it work the way you want.
    2) There may be an error message there that will give you an idea why it's not working.
    When you say it's not invoking the servlet, what does that mean, and how do you know? Is it just that the final results aren't being seen? Put a bunch of logging statements in the servlet. It could be that it's getting hit, but you're corrupting the string you're building, or sending some extra junk that it can't handle. Spit out a log statement from the start of doPost, to see if it's even getting there. Then log the parameter. Enclose the output in quotes or braces or something to make sure there's not extra junk. I've had XML docs not parse because there was a blank line at the beginning.
    If it works in the browser but not from your standalone app, then you need to have the servlet tell what difference it sees in the two cases. Print out headers, other params, everything you can think of.
    Re-read the docs for URL, HttpURL, whatever, to make sure you're doing all the right steps in the right order. Make a servlet that just takes a single, simple param=value via POST and see if you can get that to work.

  • How to send a http-request from abap?

    I want to send a xml file through a http-request ,what should i do?

    Welcome to SDN
    you can use cl_http_client class to do that. search the abap general forum with key word cl_http_client and you will find lot of examples.
    Regards
    Raja

  • Question: How to call a BPEL process from a PL/SQL procedure

    Hi All,
    Greetings to all BPEL people. I have a question on how can we call a BPEL process from a PLSQL procedure. It might be a stupid question but i wanted to know whether this fetaure is available in BPEL as our scenario requires us to explore if this functionality is available in BPEL.
    Please let me know and also if possible please send me the links for the tutorials if it is available.
    Thanks In Advance,
    Dibya

    Yes u can do it. there are two ways.
    1) First one is using utl_http package of PL/SQL
    In this case u can create SOAP request message & send it as Http request to your deployed BPEL process.
    This package provides some methods like
    set_header,write_text,get_response,read_text etc..
    Following is part of code which may be helpful to you.
    create or replace package body test_book_order_sub_pkg
    is
    FUNCTION test_book_order_sub(p_subscription_guid IN RAW,
    p_event IN OUT WF_EVENT_T
                                            Return VARCHAR2 IS
    soap_request varchar2(30000);
    soap_respond varchar2(30000);
    http_req utl_http.req;
    http_resp utl_http.resp;
    launch_url varchar2(240) ;
         begin
         DBMS_OUTPUT.Put_Line('Subscription : Order has been booked');
         soap_request:='<?xml version="1.0" encoding="UTF-8"?>
         <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header/>
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/BES_BookOrder">
    <ns1:BES_BookOrderProcessRequest>
    <ns1:input>725</ns1:input>
    </ns1:BES_BookOrderProcessRequest>
    </soap:Body>
    </soap:Envelope>';
    http_req:= utl_http.begin_request
    ('http://172.28.5.191:8888/orabpel/default/BES_BookOrder/1.0',
    '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', 'initiate');
         utl_http.write_text(http_req, soap_request) ;
    http_resp:= utl_http.get_response(http_req) ;
    utl_http.read_text(http_resp, soap_respond) ;
    utl_http.end_response(http_resp) ;
    DBMS_OUTPUT.Put_Line(soap_respond);
    return('SUCCESS');
    end test_book_order_sub;
    end test_book_order_sub_pkg;
    2) Second way is make your BPEL process listening to some database Queue(use AQ Adapter). & then put some message in tht queue from ur Pl/SQL code . This will also initiate BPEL instance. Check out AQAdapter tutorials.
    /mishit

  • Invoking an ESB service from a PL/SQL procedure (URGENT)

    I used this utl_http example:
    DECLARE
    req Xxm_Web_Service_Client_Pkg.request;
    res Xxm_Web_Service_Client_Pkg.response;
    l_return_status VARCHAR2(2);
    l_msg_count NUMBER;
    l_msg_data VARCHAR2(2000);
    BEGIN
    req := Xxm_Web_Service_Client_Pkg.new_request('alta','xmlns="http://cliente.services.provisioning.vision.com"');
    Xxm_Web_Service_Client_Pkg.add_TagGroup(req,'altaClienteParameters');
    Xxm_Web_Service_Client_Pkg.add_parameter(req,'apellido','xsd:string','deHaro');
    Xxm_Web_Service_Client_Pkg.add_parameter(req,'email','xsd:string','[email protected]');
    Xxm_Web_Service_Client_Pkg.add_parameter(req,'nombre','xsd:string','emilio');
    Xxm_Web_Service_Client_Pkg.add_parameter(req,'password','xsd:string','a');
    Xxm_Web_Service_Client_Pkg.add_parameter(req,'passwordInstalador','xsd:string','a');
    Xxm_Web_Service_Client_Pkg.add_parameter(req,'tipoCliente','xsd:string','1');
    Xxm_Web_Service_Client_Pkg.add_parameter(req,'username','xsd:string','1');
    Xxm_Web_Service_Client_Pkg.add_parameter(req,'versionContrato','xsd:string','1');
    Xxm_Web_Service_Client_Pkg.add_TagGroup(req,'commonParameters');
    Xxm_Web_Service_Client_Pkg.add_parameter(req,'idAdmin','xsd:long','1');
    Xxm_Web_Service_Client_Pkg.add_parameter(req,'idCaller','xsd:long','9');
    Xxm_Web_Service_Client_Pkg.add_parameter(req,'idCliente','xsd:long','1000000');
    Xxm_Web_Service_Client_Pkg.add_parameter(req,'idEmpresa','xsd:long','1000');
    Xxm_Web_Service_Client_Pkg.add_parameter(req,'idEntradaCaller','xsd:long','1');
    Xxm_Web_Service_Client_Pkg.close_TagGroup(req,'commonParameters');
    Xxm_Web_Service_Client_Pkg.close_TagGroup(req,'altaClienteParameters');
    res := Xxm_Web_Service_Client_Pkg.invoke(p_init_msg_list => FND_API.G_TRUE,
    p_url => 'http://198.137.253.178:7777/event/DefaultSystem/clienteService_RS',
    p_action => 'alta',
    x_return_status => l_return_Status,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data,
    x_req => req);
    IF (l_return_Status != FND_API.G_RET_STS_SUCCESS) THEN
    dbms_output.put_line(XXM_Util_Pkg.Get_Msg(l_msg_count));
    END IF;
    END;
    The process deployed is an ESB service .However on execution of the above code I get the following message as the response from the server. Also there is no new instance of the ESB services created (to show that the service was triggered)
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/>
    <env:Body>
    <env:Fault xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>env:Server</faultcode>
    <faultstring>java.lang.NullPointerException</faultstring>
    <faultactor></faultactor>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    I found the following messages in esb-rt J2EE Application log
    Cluster Topology > Application Server: soasuite.esbprov > Log Files > Search Logs >
    OWS-04052 Unable to determine operation id from SOAP Message
    OWS-04005 An error ocurred for port: EventProvider: javax.xml.rpc.JAXRPCException: java.lang.NullPointerException
    The soap message that I am using in the code (as input to the process) is
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    <soap:Body>
    <alta xmlns="http://cliente.services.provisioning.vision.com/"
    soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <altaClienteParameters>
    <apellido>xxxxx</apellido>
    <email>[email protected]</email>
    <nombre>emilio</nombre>
    <password>a</password>
    <passwordInstalador>a</passwordInstalador>
    <tipoCliente>1</tipoCliente>
    <username>1</username>
    <versionContrato>1</versionContrato>
    <commonParameters>
    <idAdmin>1</idAdmin>
    <idCaller>9</idCaller>
    <idCliente>1000000</idCliente>
    <idEmpresa>1000</idEmpresa>
    <idEntradaCaller>1</idEntradaCaller>
    </commonParameters>
    </altaClienteParameters>
    </alta>
    </soap:Body>
    </soap:Envelope>
    Another SOAP message when used directly to initiate the ESB services (by pasting this SOAP on Test WebService option) worked fined
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body xmlns:ns1="http://cliente.services.provisioning.cablevision.com/">
    <ns1:alta>
    <altaClienteParameters>
    <apellido>A</apellido>
    <commonParameters>
    <idAdmin>10</idAdmin>
    <idCaller>10</idCaller>
    <idCliente>10</idCliente>
    <idEmpresa>1</idEmpresa>
    <idEntradaCaller>10</idEntradaCaller>
    </commonParameters>
    <email>[email protected]</email>
    <nombre>AAAA</nombre>
    <password>sssss</password>
    <passwordInstalador>sssss</passwordInstalador>
    <tipoCliente>1</tipoCliente>
    <username>cccccc</username>
    <versionContrato>1</versionContrato>
    </altaClienteParameters>
    </ns1:alta>
    </soap:Body>
    </soap:Envelope>
    Thanks in advance.

    I change p_action value ( before p_action => 'alta' ) now ( p_action => '"alta"' )
    res := Xxm_Web_Service_Client_Pkg.invoke(p_init_msg_list => FND_API.G_TRUE,
    p_url => 'http://198.137.253.178:7777/event/DefaultSystem/clienteService_RS',
    p_action => '"alta"',
    x_return_status => l_return_Status,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data,
    x_req => req)
    And the invokation an ESB service from a PLSQL procedure began to work fine !!!
    Thanks for all answers
    Thans Peter !!!
    Claudio

  • How to submit a concurrent request from Discoverer report.

    I would like to know If any one has tried submitting a concurrent request from Discoverer Report?_
    This is no stupid question, but our team here finally decided with a solution to our long pending issues with few of the discoverer report. To Proceed further, we would like to know, how to submit a concurrent request from Discoverer report?
    We are looking for calling a package from the Disco admin by passing the parameters from the disco to the 6i report.
    All help us in this regards are much appreciated.
    Kindly help us in the same!
    Thanks
    Arun

    Thanks Rod for confirming the same.
    I will be trying the same today and will let you know if I succeed in doing it.
    If I can share the actual requirement with you, it goes like this.
    "I will be triggering the Oracle 6i standard AP Trail balance report through the Disco report. The standard report will be inserting the required data to one of my custom table. Once the concurrent program completes normal, my custom table will be having the required data to create the workbook specific to the current run of the concurrent program.
    The one problem which I think could happen is, How can I make my disco report to wait till the standard program to complete in normal so that my disco report can be generated with the data from custom table.
    Will the above requirement is possible If I follow the way you mention in the PDF or Could you suggest a better way for achieving the same.
    In short, my requirement is: The custom table(say XX_TABLE) will be populated with data when the standard 6i report is run and the disco admin will be making of the custom table (XX_TABLE) to generate the report.
    Please advice.
    Thanks
    Arun

  • After Mavericks OS upgrade, can no longer make any HTTP requests with the OPTIONS verb

    My machine can no longer make any HTTP requests with the OPTIONS verb. This happens whether I try it curl, postman, or ajax.
    curl -i -X OPTIONS http://www.google.com returns curl: (52) Empty reply from server
    It should return a long string containing a 405 error code.
    I suspect that this is related to the Mavericks upgrade I did earlier this week. I only have one mac (my dev machine) with Mavericks. Other macs are Mountain Lion and they don't have this problem.
    Can anyone else with Mavericks confirm whether or not they have this problem too?
    If this is Mavericks related, anyone know of a fix or workaround?

    Turns out that it wasn't Mavericks related at all. Cisco AnyConnect has a security module running behind the scenes even when you're not VPNed into anything. It was blocking my OPTIONS verb requests. I was able to make these calls after uninstalling.
    Re-installing with Web Security turned off should prevent it from happening. While I was uninstalling I did notice that there was a web security uninstall script in /opt/cisco/vpn/bin but I already committed to taking the whole app off my machine. Simply running that script could have done it too.
    I must give credit to Ben Nadel. It was his blog post that helped me fix this issue.
    http://www.bennadel.com/blog/2559-Cisco-AnyConnect-VPN-Client-May-Block-CORS-AJA X-OPTIONS-Requests.htm?&_=0.10495476494543254#comments_44093

  • How to make a jar file from a java file?

    how to make a jar file from a java file, is there any one tht can help me thank you;

    You can study this.
    http://java.sun.com/docs/books/tutorial/jar/basics/index.html

  • How to make a ARCH package from local folder?

    hello ARCH lovers
    I can't seem to figure out how to make a installable
    package from a folder on my desktop?
    Coming from Slackware; the procedure would be simple enough just issuing
    "makepkg /root/pkgname.txz"
    Now; how would I do the same in ARCH?
    I know about PKGBUILD, etc but there is no source or any url's
    I just need to make it into a .pkg.tar.xz
    The package is my "kernel-live-kit" for both x86 and x86_64 versions of arch
    enabling one to remaster there existing install into a livecd/usb, etc
    The kernel itself is kernel26-zen from AUR
    http://aur.archlinux.org/packages.php?ID=30330
    however; mine is quite different and also includes all components to make the livecd using modified linux-live-6.3.0
    scripts and special stuff
    The pkg includes a premade kernel with modules and full kernel source
    The resulting live media is similar to my nFluxOS builds
    http://multidistro.com/
    As I will be releasing the new four horsemen of nFluxOS today; I also made 4 Kernel pkg's for the arch and slack versions
    Those will be for x86/x86_64 versions for both arch and slackware
    I did this in lieu of creating a quartet of x86_64 versions of nFluxOS; as that would up the number of versions to 8
    and I would then have to maintain 8 distro's instead of 4.
    I made a testing version of ARCH x86_64 live
    http://www.linuxquestions.org/questions … ost4017796
    so, I really need to make the ARCH x86 and x86_64 kernel kits into installable pkg's because there are many symlinks that would get corrupted if I just tarred it and then the end user untars it and copies it somewhere it would mess up the symlinks.
    as I said, in slackware I do makepkg and it creates a script named "doinst.sh" that makes all the symlinks, etc
    so, any help appreciated!
    thanks

    You can read a simple introduction to using the ABS here.
    By the way, it's not hard. Out of all the distributions I've used, Arch Linux is the only one I've figured out how to make packages for.

  • 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

  • How to delete a single request from DSO in BI 7.0

    Dear Experts,
    Could you please tell me how to delete a single request from DSO?
    I mean, in DSO if we delete one request it also delete the requests which are above it. But i don't to delete the above it.
    Please suggest me this issue.
    Regards,
    Prathap

    IN DSO--its a very basic thing....
    ACTIVE TABLE and CHANGELOG tables are overwritten after activation of each request.
    So ,each new request has a realationsip with the older request.
    So in the cases:
    1.If you activate the older request it will delete the new one ,because changelog entries have been written from the data of new request on the basis of the older one.
    e.g older request  entries:
    a x 1
    new request
    a x 2
    change log
    a x 1
    a x -1
    a x 2
    so its quite obvious you can't have  a x 2 directly (because in the infocube you will be sending wrong entries by deleting the just the older request and loadning new request).
    2.If you have activate new and old request toghterh then also system will not allow you to delete the newer request alone and you will have to delete both the requests.
    I guess already someone proposed correct solution to you ...thats selective deletion...but rahter than doing selective deletion there is a better way if you want to cancel out a particular request:
    thats request reverst posting
    IN the process monitor of any particular request you can find out the option for request reverse posting..Its good for individual request cancellation(keyfig values will become 0 for that particular request)
    regards,
    rk

Maybe you are looking for

  • Acrobat 9 Printer Setting reverts to Acrobat 8 in 9.2 Update ?

    Hi there.... I have been working away creating Postscript files using Acrobat 9 in Snow Leopard with no problems... I would go into my Quark Print dialog box.. select my printer which would normally be Acrobat 9 and then select the Output Style.... t

  • Print dialog font is too small: Acrobat Reader on Linux

    I'm running Acrobat Reader version 7.0.5 on CentOS 4.5 (RedHat Enterprise 4.5) and find that the fonts used on the Print dialog are too small. They are much smaller than the fonts used on labels and other controls in the rest of the application, and

  • New iMac - recommendations for running Win 7

    Okay, so I'm picking up my new 27" iMac today. I plan on installing Win 7 to run a few programs that I may need in the future (trying to downsize to one desktop), although OS X will be my main system. I know that Boot Camp is part of the OS now, but

  • Difference between ANY and ALL operators

    I am learning the basics of ANY and ALL operators. Retrieving all employees in Dept 30 whose sal is greater than ANY employees in Dept 20 SQL> SELECT * FROM EMP;      EMPNO ENAME           JOB              MGR HIREDATE         SAL       COMM     DEPT

  • How to deliver goods without stock in that particular plant and storage loc

    hi, sap gurus, how to deliver goods with out stock in particular plant andstorage location. or how to configure negative stocks. regards, balajit