Is it possible to invoke IE with UTL_HTTP.Request
Hi,
Is it possible to invoke IE with UTL_HTTP by specifying the URL?
DECLARE
LV_RET VARCHAR(2000);
BEGIN
SELECT UTL_HTTP.REQUEST('http://www.oracle.com')
INTO LV_RET
FROM DUAL;
END;
Thanks in Advance
Thanks & Rgds
M T
Hi!
Pls go through the following link --
[url http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/x/Utl_Http_Package_Enhancements/Cr_Using_Utl_Http.htm]UTL_HTTP In Oracle
Regards.
Satyaki De.
Similar Messages
-
Trying to invoke HTTPService with SOAP request
Hi all,
I have been trying to invoke a HTTPService with a SOAP request.
Most of the times I get an error saying that the client has invoked
HTTP with get instead of a POST eventhough my code takes care of
it. Any clue on this? I have copied the code snippet below which
has the SOAP request in a variable message.
<?xml version="1.0"?><!--
fds\rpc\WebServiceAddHeader.mxml -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
height="628" width="924">
<mx:Script>
<![CDATA[
import mx.messaging.messages.HTTPRequestMessage;
import mx.messaging.messages.SOAPMessage;
var message:SOAPMessage = new SOAPMessage();
public var msg:HTTPRequestMessage = new
HTTPRequestMessage();
public function headers():void {
msg.contentType = HTTPRequestMessage.CONTENT_TYPE_SOAP_XML;
msg.method = HTTPRequestMessage.POST_METHOD;
msg.url = "
http://ldlt7316.wellsfargo.com:8016/hulaweb/FrameworkServletListener";
msg.body = <SOAP-ENV:Envelope xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:msg="
http://service.wellsfargo.com/entity/message/2003/"
xmlns:hcfg="
http://service.wellsfargo.com/provider/HCFG/entity/envelope/2004/"><SOAP-ENV:Header><msg:W FContext><msg:messageId>1175034929937</msg:messageId><msg:sessionSequenceNumber>1</msg:ses sionSequenceNumber><msg:creationTimestamp>2007-03-27T04:35:29-0600</msg:creationTimestamp> <msg:originatorId>aow</msg:originatorId><msg:initiatorId>AOW</msg:initiatorId></msg:WFCont ext><hcfg:hulaContext><service>ApplicationDataService</service><action>getApplicationByDea lID</action><msg:processingMode>sync</msg:processingMode><contextType>SERVICE_REQUEST</con textType><password>PASSWORD123</password><msg:behaviorVersion>1</msg:behaviorVersion></hcf g:hulaContext></SOAP-ENV:Header><SOAP-ENV:Body><ns:getLendingData
xmlns:ns="
http://service.wellsfargo.com/provider/HCFG/common/lendingDataTransfer/getLendingData/2006 /"><servicePreferences><ns1:maximumWaitTime
xmlns:ns1="
http://service.wellsfargo.com/provider/HCFG/entity/common/2004/">600</ns1:maximumWaitTime> <ns1:maxReturn
xmlns:ns1="
http://service.wellsfargo.com/entity/message/2003/">10</ns1:maxReturn></servicePreferences ><lendingTransaction><transactionDetail>
<ns1:dealId xmlns:ns1="
http://service.wellsfargo.com/provider/HCFG/entity/transactionDetail/2005/">
323010
</ns1:dealId></transactionDetail></lendingTransaction></ns:getLendingData></SOAP-ENV:Body ></SOAP-ENV:Envelope>
soapCall.request = msg;
soapCall.method = "POST";
soapCall.send();
]]>
</mx:Script>
<mx:HTTPService
id="soapCall"
resultFormat="xml"
method="post"
showBusyCursor="true"
makeObjectsBindable="false"
useProxy="false"
requestTimeout="120"
url="
http://ldlt7316.wellsfargo.com:8016/hulaweb/FrameworkServletListener"
request="{msg}">
</mx:HTTPService>
<mx:Panel layout="absolute" title="{soapCall.lastResult}"
id="blog" fontFamily="Courier New">
<mx:DataGrid x="15" y="10" id="dgPosts" width="482"
dataProvider="{soapCall.lastResult}" height="108">
<mx:columns>
<mx:DataGridColumn headerText="Name"
dataField="code"/>
<mx:DataGridColumn headerText="Dates"
dataField="lastName"/>
</mx:columns>
</mx:DataGrid>
<mx:LinkButton label="Get Data" click="headers()"/>
<mx:TextArea x="15" y="145" width="782" fontSize="9"
fontFamily="Verdana" borderStyle="inset"
htmlText="{soapCall.lastResult}" height="379"/>
</mx:Panel>
</mx:Application>Would really appreciate some help with this issue. Thanks!
-
Invoking BPEL with large request payload from stored procedure
Hi all,
I have a stored procedure which invoke BPEL process. It is working fine with small payload (around 3000 characters). But some of the payload are as large as 75 to 100 thousand characters. I used the clob datatype for my soap envelop variable so that it can take more characters. But I am getting error if the payload size is large. Can someone help me figure how I am able to do this. Thanks.Hi James,
Thanks for your response. What I need to do is, if any of the instance is failed in the first invokation, user can manual re-invoke the same process from the dashboard. I tried invoking bpel from ADF 11g and finally found out that it is not supported with SOA 10.1.3.4. (I can't use Data control as the payload is already in the database).
I am invoking an Asynchronous process. So, it is not the timeout error. The same procedure went fine with the same process if the payload is small. I include one output parameter to send the message from the procedure back to ADF, and what Ifound out was if the payload is big, I got the exception right after "utl_http.write_text(l_http_request, l_soap_envelope);". Any hope that I can still use this without going to ODI?
Thanks.
SHY -
Hi All, Is it possible to invoke dynamically, constructor with an argument?
Hi All, Is it possible to invoke dynamically, constructor with an argument
Thanks in advanceStrongly depends on what's dynamic.
-
Possible to Invoke MS Word with Java Application?
Is it possible to invoke Microsoft Word to open a word doc with a Java application?
If yes, what API or knowledge should I know to do this?
Please give some advice.Using the various forms of the exec() method in the Runtime class, you can execute arbitrary programs, such as MS Word. exec() returns a Process instance, which you can do various things with such as get input/output streams, kill, etc. Note the parameters to the exec() method are platform specific, because of differing command shell names, path separators, etc. So you will definitely have to experiment and see what works on your platform:
Process msWord = Runtime.getRuntime().exec( "cmd.exe /C winword.exe" );That is one of the general idioms for using exec(), like I say you will have to experiment to see what variant of exec() works for you. Try searching these forums, this question has been answered numerous times before. -
Error while invoking webservice using UTL_HTTP from PL/SQL Block
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 erroring 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
Package is completing successfully if i test in local DB and local BPEL.
But giving above error in client's.
Can anyone let me know what is the cause of this.
Thanks in advanceI got it working by making process Synchronous.
But with asynchronous process it is still same error.
Thanks... -
Invalid request when calling REST-webservice with UTL_HTTP.
Hello,
When i try to send some data to a REST-webservice i get as response "INVALID REQUEST"
I Think it is about the request-body that seems to be no UTF-8.
I tried to set the characterset with utl_http.set_body_charset(t_http_req, 'UTF-8').
But when i read the characterset with utl_http.get_body_charset(t_charset);, is still get "ISO-8859-1"
I am using: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
Some help would realy be appreciated because i am out of options trying to get the code working..
======MY CODE==========
create or replace procedure ipm40_send_bekendmaking(p_bdmg_id in number)
as
r_bekendmaking ipm40_bekendmakingen%rowtype;
r_gemeente ipm40_gemeenten%rowtype;
l_url httpuritype;
t_http_req utl_http.req;
t_http_resp utl_http.resp;
t_request_body varchar2(32767);
t_respond varchar2(32767);
-- t_teller integer := 1;
-- t_output varchar2(2000);
t_start number := 1;
t_body_lengte number;
t_chunkdata varchar2(4000);
t_tijd_1 varchar2(256);
t_tijd_2 varchar2(256);
t_timeout integer;
t_length number;
t_charset varchar2(256);
begin
select *
into r_bekendmaking
from ipm40_bekendmakingen
where id = p_bdmg_id;
select *
into r_gemeente
from ipm40_gemeenten
where gmte_code = r_bekendmaking.gmte_code;
l_url := httpuritype.createuri('http://zwolle.stadsbeheer.com:82/apex/ipm40bekendmaking?p_bdmg_id='||r_bekendmaking.id);
t_request_body := l_url.getClob();
/* request that exceptions are raised for error Status Codes */
--Utl_Http.Set_Response_Error_Check ( enable => true );
/* allow testing for exceptions like Utl_Http.Http_Server_Error */
--Utl_Http.Set_Detailed_Excp_Support ( enable => true );
utl_http.set_transfer_timeout(300);
t_http_req:= utl_http.begin_request( r_gemeente.url_webservice_bekendmakingen
, 'POST'
, 'HTTP/1.1');
utl_http.set_body_charset(t_http_req, 'UTF-8');
utl_http.get_body_charset(t_charset);
utl_http.set_authentication(t_http_req,r_gemeente.user_webservice_bekendmakingen,r_gemeente.pw_webservice_bekendmakingen);
t_length := length(t_request_body);
utl_http.set_header(t_http_req, 'Content-Type', 'application/xml charset=UTF-8');
utl_http.set_header(t_http_req, 'Content-Length', t_length);
utl_http.set_header(t_http_req, 'Transfer-Encoding', 'chunked' ); --
t_body_lengte := dbms_lob.getlength(t_request_body);
loop
t_chunkdata := dbms_lob.substr(t_request_body, 2000, t_start);
utl_http.write_text ( t_http_req, t_chunkdata );
t_start := t_start + 2000;
if t_start > t_body_lengte
then
exit;
end if;
end loop;
t_http_resp:= utl_http.get_response(t_http_req);
utl_http.read_text(t_http_resp, t_respond);
utl_http.end_response(t_http_resp);
if instr(t_respond,'Successfully document processed') != 0
then
update ipm40_bekendmakingen
set ind_status = 'S'
, datum_verzonden = sysdate
, response = t_respond
where id = r_bekendmaking.id;
else
update ipm40_bekendmakingen
set ind_status = 'F'
, datum_verzonden = null
, response = t_respond
where id = r_bekendmaking.id ;
end if;
commit;
exception
when others
then
t_tijd_2 := to_char(sysdate,'HH24:MI:SS');
t_respond := substr(sqlerrm,1,2000);
update ipm40_bekendmakingen
set ind_status = 'F'
, datum_verzonden = null
, response = t_respond
where id = r_bekendmaking.id ;
commit;
end;
===THE RESPOND=============
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to process the request:
<PRE>
POST /pushxml/pushxml-bm HTTP/1.0
Authorization: Basic Ymtfc21hcnRob2xkaW5nOllyZXMzdlFR
Content-Type: application/xml charset=UTF-8
Content-Length: 2096
Transfer-Encoding: chunked
Connection: close
</PRE>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Invalid Request
</STRONG>
</UL>
<P>
Some aspect of the HTTP Request is invalid. Possible problems:
<UL>
<LI>Missing or unknown request method
<LI>Missing URL
<LI>Missing HTTP Identifier (HTTP/1.0)
<LI>Request is too large
<LI>Content-Length missing for POST or PUT requests
<LI>Illegal character in hostname; underscores are not allowed
</UL>
<P>Your cache administrator is [email protected].
<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Fri, 12 Aug 2011 17:33:24 GMT by asd2cc001.asp4all.nl (squid)
</ADDRESS>
</BODY></HTML>Always check the access_log and error_log files of the Apache web server in such a case. This will identify whether the error comes from Apache itself, mod_plsql, the Apex run-time engine, or the Oracle database.
I see that you're creating a HTTP/1.1 in PL/SQL - however, the web server response indicates a HTTP/1.0 call was received. Unusual. And could be part of the problem. -
How to invoke JSF With Standard Urls and parameters
Hi,
Could some one please help me how to invoke JSF with standard Urls and parameters?
My requirement is:
http://localhost:8080/myapp/faces/jsf_page.jsp?trackerID=11&viewPage="products"
then i want to save the tracker details into database and redirect the user to "products" page.
Would some one suggest me where can i get some example?Hi BalusC,
It didn't solve my proble.....Your solutions are fantastic for most of the issues. But mine problem is unclear where JSF page tags.
If possible, Could you please provide me how to invoke the method from JSF page....
same code works if the user click on command button but my requirement is as soon as the user click on the link from 3rd party website, then he need to come to our web application and invoke the JSF page along with ManagedBean for saving details and redirect to disganted webpage.
I will provide the following link to 3rd party websites. the URL is :: http://somedomain.com/myApp/Tracker.JSF?trackerID=111
Could you please provide me the code i need to write in JSF ....just for invoking ManagedBean class...? how i code for page on load call the managedBean for specific method? -
IS IT POSSIBLE TO INVOKE AN ORACLE ALERT FROM PL\SQL ?
Is it possible to invoke an Oracle Alert from PL\SQL and, if so, could you
provide me with some references to any relevant notes that you may have on
Metalink ?If you want to fire an Alert programatically the best way is to define a Business Event that will fire a notification. The Notification Emailer (if running) will convert this into an email.
Notifications are preferable to Alerts because you can use HTML for formatting. -
Is it possible to invoke a Java class from Data Services 4.0?
Is it possible to invoke a Java class from Data Services? I have a query transform with a varchar column which I want to run an external java class against to encrypt the string value. In the Management Console, I created an adapter of type TestAdapter and referenced my jar file in the Classpath section, but when I create a Datastore of type Adapter I can't import any functions related to my java class? It seems like I need to create a new Adapter type similar to the TestAdapter with the 'Adapter Class' set to my java class? I can't figure out how to do this - which is the correct approach and is there some documentation available? thanks!
First u nees to imoprt the class which u are doing right
then u need to call the function of the class , and then you can put the value in a string .
DbCon.function()
String data = DbCon.db;
where db is a string in DbCon
Cheers
Varun Rathore -
Is it possible to invoke an external REST web-service hosted in WebLogic web application from an Adobe LiveCycle Process (ES-4) with parameters as input and manipulating the response depending on the type of parameters it gets back. Then invoking an Adobe Form and prepopulating the Form based on the response parameters? Do you have sample projects that do this invocation. The part highlighted in red is what I need examples.
You can simply use "Execute Script" operation in Workbench and make use of java.net.URL. Below links should help :
http://www.mkyong.com/webservices/jax-rs/restfull-java-client-with-java-net-url/
http://www.adobe.com/devnet/livecycle/articles/building-xml.html
http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/help.htm?content=000581.html
Hope this helps.
-Wasil -
IS it possible to use FaceTime With my two IPad That has the same address? I Will Go to China soon And i would like to discuss With my kids from there i.e. One IPad in China And one in Montréal.
No, this is not possible. It would be like dialing your own phone number. You must verify an additional new email address for your second iPad. See the following link which will tell you how to do this. You will need to add this new address to Facetime app in one of your iPads.
http://support.apple.com/kb/HE68 -
Is it possible to use variable with interval in BEX for filter or pl funct.
Hi,
we have filters in which variables with interval are being used, as well as planning functions in which a variable with interval should be used.
In the planning modeler everythings works fine. But I have problems to fill values for these type of variables. The error message "specify a value for variable xxx " is always generated. I know it is possible to do this (with VAR_LOW & VAR_HIGH instead of VAR_VALUE).
Can someone please help?
regards
DHello Dries,
yes, it's possible. You have to use VAR_VALUE_LOW and VAR_VALUE_HIGH.
Regards,
Marc
SAP NetWeaver RIG -
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 advanceMy 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 -
What are the different types of analytic techniques possible in SAP HANA with the examples?
Hello Gurus,
Please provide the information on what are the different types of Analytic techniques possible in SAP HANA with examples.
I would want to know in category of Predictive analysis ,Advance statistical analysis ,segmentation analysis ,data reduction techniques and forecast techniques
Which Analytic techniques are possible in SAP HANA?
Thanks and Regards
Sushma C NarasimhamurthyHi Sushma,
You can download the user guide here:
http://www.google.com.au/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CFcQFjAB&url=http%3A%2F%2Fhelp.sap.com%2Fbusinessobject%2Fproduct_guides%2FSBOpa10%2Fen%2Fpa_user_en.pdf&ei=NMgHUOOtIcSziQfqupyeBA&usg=AFQjCNG10eovyZvNOJneT-l6J7fk0KMQ1Q&sig2=l56CSxtyr_heE1WlhfTdZQ
It has a list of the algorithms, which are pretty disappointing, I must say. No Random Forests? No ensembling methods? Given that it's using R algorithms, I must say this is a missed opportunity to beat products like SPSS and SAS at their own game. If SAP were to include this functionality, they would be the only BI vendor capable of having a serious predictive tool integrated with the rest of the platform.... but this looks pretty weak.
I can only hope a later release will remedy this - or maybe the SDK will allow me to create what I need.
As things stand, I could built a random forest using this tool, but I would have to use a lot of hardcoded SQL to make it happen. And if I wanted to go down that road, I could use the algorithms that come with the Microsoft/Oracle software.
Please let me be wrong........
Maybe you are looking for
-
Workspace - planning issue.
HI, I have issue with logging into workspace and opening a planning application. I am able to login into workspace without an issue . Before that . I have configured using IIS ( instead of apache ) on port number 80 and with weblogic 45000. Now, i am
-
Only one authenticated user at time in Enterprise Portals
Hi, The standard installation of SAP Enterprise Portals lets to enter the same user to the portal in more than one session. If the user is already logged in the portal, when it login again, a message appears telling the user that he´s already logged
-
When I try to download the Adobe Flash player, after clicking instal, nothing happens. Can anyone help? Thanks
-
I apologize if this is a stupid question or if it is repeated. When I first turned on my macbook, I took a photo for my user photo and for my ichat icon. Does anyone know where I can get this photo off my hard drive? I want to send this exact photo t
-
IPod won't turn on, and connecting to iTunes doesn't help.
So yeah, basically my today when I picked up my Ipod, it wouldn't start, I thought that maybe it was just run out of power and plugged it into itunes. At first itunes didn't even recognize that the iPod was plugged in, and when it did, it told that I