access the web service WSDL (https) - ORA-29273: HTTP request failed
I use 11g (11.2.0.1.0)I've already implemented a function that access a WSDL service, sending a XML request with answer. It is an HTTPS service and I had successfully setup the configuration of the ACL.
Wallets and certificates were also imported according to the needs.
However, it has stopped working and I get the following errors, which I can't find out why?
ORA-29273: HTTP request failed
ORA-06512: at "SYS." UTL_HTTP", line 1130
ORA-12545: Connect failed because target host or object does not exist
The same service works perfectly for an another database 11g...
Any ideas?
AndreasCon wrote:
ORA-12545: Connect failed because target host or object does not exist
This error means generally that the socket connect command failed, because the host name has not be resolved to an IP or IP connection failed.
What is the URL that you use? It contains a host name? If so, how PL/SQL solves that one IP (use utl_inaddr.get_host_address () to determine that)?
What is a valid IP address for the host? Connectivity to this IP address works of your Oracle (test using telnet on port https to IP) Server?
Looks like on this server host name resolution is not working / configured correctly (saw that the code works on other servers).
Tags: Database
Similar Questions
-
I have a need to call a web service from an APEX application, so I thought I'd try to experience everything first call a web service that is accessible to the public from W3Schools. The URL of the WSDL that I use is:
http://www.w3schools.com/webservices/TempConvert.asmx?WSDL
The 1st thing I try in APEX is to create a Web Service based on the above URL reference. Problem is that I get the following error:
ORA-29273: HTTP request failed ORA-12535: TNS:operation expired
Any ideas?
I even tried with some other URL WSDL and always the same exact error.
Thanks in advance.
Hello
Maybe your database server have firewall that blocks to internet connection?
Kind regards
Jari -
How to access the web service from Oracle?
Database version: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
I'm making a call to a web service through a procedure/function...
I tried to use
But it's me ORA-29272: HTTP request failedCREATE OR REPLACE PROCEDURE Call_Rest_Webservice AS t_Http_Req Utl_Http.Req; t_Http_Resp Utl_Http.Resp; t_Request_Body VARCHAR2(30000); t_Respond VARCHAR2(30000); t_Start_Pos INTEGER := 1; t_Output VARCHAR2(2000); BEGIN /*Construct the information you want to send to the webservice. Normally this would be in a xml structure. But for a REST- webservice this is not mandatory. The webservice i needed to call excepts plain test.*/ t_Request_Body := 'the data you want to send to the webservice'; /*Telling Oracle where the webservice can be found, what kind of request is made and the version of the HTTP*/ t_Http_Req := Utl_Http.Begin_Request('**webservice address**', 'GET', 'HTTP/1.1'); /*In my case the webservice used authentication with a username an password that was provided to me. You can skip this line if it's a public webservice.*/ --Utl_Http.Set_Authentication(t_Http_Req, 'username', 'password'); /*Describe in the request-header what kind of data is send*/ Utl_Http.Set_Header(t_Http_Req, 'Content-Type', 'text/xml charset=UTF-8'); /*Describe in the request-header the lengt of the data*/ Utl_Http.Set_Header(t_Http_Req, 'Content-Length', Length(t_Request_Body)); /*Put the data in de body of the request*/ Utl_Http.Write_Text(t_Http_Req, t_Request_Body); /*make the actual request to the webservice en catch the responce in a variable*/ t_Http_Resp := Utl_Http.Get_Response(t_Http_Req); /*Read the body of the response, so you can find out if the information was received ok by the webservice. Go to the documentation of the webservice for what kind of responce you should expect. In my case it was: <responce> <status>ok</status> </responce> */ Utl_Http.Read_Text(t_Http_Resp, t_Respond); /*Some closing?1 Releasing some memory, i think....*/ Utl_Http.End_Response(t_Http_Resp); END;
ORA-06512: at "SYS." UTL_HTTP", line 1029
ORA-12545: Connect failed because target host or object does not exist
But I can connect to the web server by going on * webservice address * through my browser.
Is there an ACL must be open in order to have this capacity? I asked my s/n, but she asked me that I will need to give its name to username/password / ip in order to open an ACL...
However there is no name to username/password required during a tour of the web service...
Any help would be much appreciated...
Thank you
Published by: 986006 on March 4, 2013 08:38Y.L wrote:
This is because the database could not connect to the specified server. Bad host name or IP address specified. Inability to resolve the hostname to an IP address. Firewall blocking. Etc.
The host name, I put here can be visit through my browser. I think that it is not question of the host server... So, it could be a firewall on my side of the database which must be opened in order to visit the host?
The "web browser" (your PL/SQL using UTL_HTTP code) code is running on the Oracle database server. He needs the same type of network access that has your browser on your PC. (firewalls open, authentication of the proxy if necessary, etc.).
On 11g. Not on 10g.
I saw the code example you post from the link you provided... those who only works on 11 g?
If we can work on 10g, which package or what are the steps I need to follow in order to have that works on me?The code I posted works on both versions. My comment was regards the ACLs. No ACLs exist on 10g. If you only need to execute privs on the affected packages (e.g., UTL_HTTP, etc.).
ACL were introduced with 11g - 11g, you also need the ADMINISTRATOR to create an ACL for you which will allow access to the UTL_HTTP network so now.
-
deploy the web service to xp embedded
Hi all
I struggle to run a web service on an xp embedded system. The web service works very well in my LV 2011 development environment and I have created an installer for my main application it is the lvws file is included as described in web services FAQ:
http://zone.NI.com/DevZone/CDA/tut/p/ID/7747#toc12
After the installation on the target computer, I can't access the web service. Also if you call localhost:3580, then I get an access error.
But in the System Control Panel administrative tools, I can see that the server system OR like many Web server OR Web applications are started.
For further investigation, I added the 'Distributed System Manager' to my Installer. With this tool, I see that all my web services deployed on my development system, but on the XP embedded system with TEN target is listed.
I installed my application for a professional reference XP system to exclude that the problem is caused by embedded XP. But the behavior is exactly the same. So far, I tested only local so that settings security like firewalls and ports system should pose no problems. But to be sure I have disabled the firewall without success... I can't access the Web service. I have often found the suggestions in the forum to check if the web service is enabled. But I am not already and then access to http://localhost:3580.
Any ideas?
Thank you!
This help document is somewhat outdated.
You see 2 different problems: 1) you can not display the Configuration utility and do not install Web using localhost:3580 2) your web service monitoring.
For the first number-->
You probably did not understand the "Interface Web NI 2011 infrastructure" in your Setup program. The doc to help you mentioned does not tell you to do, because it is not necessary for your web service works. However, if you want to change one of the settings of your web server after the installation, you will need this extra setup program.
For the second question-->
You probably didn't get your Spec to build Web services as a source file in your Setup program. The help doc says to put your LVWS file as your installation source, but this is not correct. You must include the technical article to build real web service as a source file (not the web service create out of spec files, like LVWS).
Let me know if any of these will help you.
-Jared
-
UTL_HTTP: ORA-29259: end-of-input reaches the web service call error
Hi gurus,
I'm calling the DB using UTL_HTTP webservice, but I keep getting the following error. Please note that I am calling only HTTP and HTTPS.
ORA-29273: HTTP request failed
ORA-06512: at "SYS." UTL_HTTP", line 1369
ORA-29259: end-of-input reached
ORA-06512: at "APL_GLOGEXTN. APL_INT_BEM', line 20
ORA-06512: at "APL_GLOGEXTN. APL_INT_BEM', line 50
ORA-06512: at line 1
29273 00000 - "the HTTP request failed.
* Cause: The UTL_HTTP package cannot run the HTTP request.
* Action: Use get_detailed_sqlerrm to check the detailed error message.
Correct the error and restart the HTTP request.
Status code: 1
I call a Web service using the code below
exec utl_http.set_proxy ("172.10.0.00:1524");
SET SERVEROUTPUT ON
EXE DTS_INT_BEM. CALL_BEM();
and the details of the PL/SQL package is expected at the point.
create or replace
package body 'DTS_INT_BEM' as
PROCEDURE INVOKE_BPEL_WS)
P_ENDPOINT_URL IN VARCHAR2,
P_SOAP_REQUEST IN VARCHAR2,
P_RETURN_STS OUT VARCHAR2)
IS
REQUEST_ENVELOPE VARCHAR2 (30000): = P_SOAP_REQUEST;
RESPONSE_ENVELOPE VARCHAR2 (30000);
HTTP_REQUEST UTL_HTTP. REQ;
HTTP_RESPONSE UTL_HTTP. RESP;
BEGIN
HTTP_REQUEST: = UTL_HTTP. BEGIN_REQUEST (P_ENDPOINT_URL, 'POST', ' HTTP / 1.1 ');
UTL_HTTP. SET_HEADER (R = > HTTP_REQUEST, name = > 'Content-Type' ', value = > ' text/xml; charset = utf-8 ');
UTL_HTTP. SET_HEADER (r = > http_request, name = > 'Content-Length', value = > LENGTH (REQUEST_ENVELOPE));
UTL_HTTP. SET_HEADER (R = > HTTP_REQUEST, name = > 'SOAPAction', value = > 'Start');
UTL_HTTP. WRITE_TEXT (R = > HTTP_REQUEST, data = > REQUEST_ENVELOPE);
dbms_output.put_line (' status code: 1');
HTTP_RESPONSE: = UTL_HTTP. GET_RESPONSE (r = > HTTP_REQUEST);
UTL_HTTP. END_RESPONSE (HTTP_RESPONSE);
P_RETURN_STS: = HTTP_RESPONSE.reason_phrase;
/ * EXCEPTION
WHEN UTL_HTTP. END_OF_BODY THEN
UTL_HTTP. END_RESPONSE (HTTP_RESPONSE);
WHEN UTL_HTTP. REQUEST_FAILED THEN
P_RETURN_STS: = ' request failed: ' | UTL_HTTP. GET_DETAILED_SQLERRM;
WHEN UTL_HTTP. HTTP_SERVER_ERROR THEN
P_RETURN_STS: = ' Server error: ' | UTL_HTTP. GET_DETAILED_SQLERRM;
WHEN UTL_HTTP. HTTP_CLIENT_ERROR THEN
P_RETURN_STS: = ' Client error: ' | UTL_HTTP. GET_DETAILED_SQLERRM;
WHILE OTHERS THEN
P_RETURN_STS: = ' Client error: ' | UTL_HTTP. GET_DETAILED_SQLERRM; * /
END INVOKE_BPEL_WS;
--------------------------------
Procedure CALL_BEM / * (-type_objet_p IN VARCHAR2)
-p_process_name in varchar2,
-p_response out varchar2
)
*/
IS
l_endpoint_url VARCHAR2 (200): =' http://172.10.0.00:10101/soa-infra/services/default/ShipmentBusinessRule/BusinessRuleProcess.service?WSDL ';
l_soap_request VARCHAR2 (30000): = NULL;
l_bpel_return_sts VARCHAR2 (3000);
BEGIN
" l_soap_request: = ' < soapenv:Envelope xmlns:soapenv = ' http://schemas.xmlsoap.org/SOAP/envelope/ "xmlns:bus =" " http://xmlns.Oracle.com/BPMN/bpmnProcess/BusinessRuleProcess ' > < soapenv:Header / > < soapenv:Body > < bus: departure > < Transmission xmlns = " http://xmlns.Oracle.com/apps/OTM " "targetNamespace =" http://xmlns.Oracle.com/apps/OTM "> < TransmissionBody > < GLogXMLElement > < PlannedShipment xmlns =" http://xmlns.Oracle.com/apps/OTM "> < delivery > < ShipmentHeader > < ShipmentGid > < Gid > < domain_name > DTS/EXE < / domain_name > < Xid > 01409 < / Xid > < / Gid > < / ShipmentGid > < ShipmentRefnum > < ShipmentRefnumQualifierGid > < Gid > < Xid > GLOG < / Xid > < / Gid > < / ShipmentRefnumQualifierGid > < ShipmentRefnumValue > DTS/EXE.01409 < / ShipmentRefnumValue > < / ShipmentRefnum > < ShipmentRefnum > < ShipmentRefnumQualifierGid > < Gid '" > < Xid > BM < / Xid > < / Gid > < / ShipmentRefnumQualifierGid > < ShipmentRefnumValue > RIAD-000235 < / ShipmentRefnumValue > < / ShipmentRefnum > < TransactionCode > NP < / TransactionCode > < ServiceProviderGid > < Gid > < domain_name > DTS/DATA < / domain_name > < Xid > RIAD < / Xid > < / Gid > < / ServiceProviderGid > < ServiceProviderAlias > < ServiceProviderAliasQualifierGid > < Gid > < Xid > GLOG < / Xid > < / Gid > < /. ServiceProviderAliasQualifierGid > < ServiceProviderAliasValue > DTS/DATA. RIAD < / ServiceProviderAliasValue > < / ServiceProviderAlias > < RateServiceGid > < Gid > < domain_name > DTS/PCM < / domain_name > < Xid > VESSEL_SERVICE < / Xid > < / Gid > < / RateServiceGid > < TransportModeGid > < Gid > < Xid > BOAT-CO < / Xid > < / Gid > < / TransportModeGid > < TotalWeightVolume > < WeightVolume > < weight > < WeightValue > 57.0 < / WeightValue > < WeightUOMGid > < Gid > < Xid > KG < / Xid > < / Gid > < / WeightUOMGid > < / weight > < Volume > < VolumeValue > 0.3 < / VolumeValue > < VolumeUOMGid > < Gid > < Xid > CUMTR < / Xid > < / Gid > < / VolumeUOMGid > < / Volume > < / WeightVolume > < / TotalWeightVolume > < TotalShipUnitCount > 8 < / TotalShipUnitCount > < StartDt > < GLogDate > 20140217124300 < / GLogDate > < TZId > Asia/Hong_Kong < / TZId > < TZOffset > + 08:00 < / TZOffset > < / StartDt > < EndDt > < GLogDate > 20140311234300 < / GLogDate > < TZId > America/Chicago < / TZId > < TZOffset > - 05:00 < / TZOffset > < / EndDt > < SourceLocationRef > < LocationRef > < LocationGid > < Gid > < domain_name > DTS/DATA < / domain_name > < Xid > HKHKG < / Xid > < / Gid > < / LocationGid > < / LocationRef > < / SourceLocationRef > < / ShipmentHeader > < / shipping > < / PlannedShipment > < / GLogXMLElement > < / TransmissionBody > < / Transmission > < / bus: start > < / soapenv:Body > < / soapenv:Envelope > ';
invoke_bpel_ws (l_endpoint_url, l_soap_request, l_bpel_return_sts);
dbms_output.put_line ('-' | l_bpel_return_sts);
end CALL_BEM;
end DTS_INT_BEM;
Thanks in advance for the help.
Shobz
Hi Billy,
Thanks for the reply. It was with the proxy setting.
Once UTL_HTTP. SET_PROXY has been set properly, I no longer get the error of end-of-input.
Thanks for the help...
Kind regards
Shobz
-
Hello
I try to access a web page API in the APEX, but still get an error in the ACL. I tried everything I can think of as well as the multitude of usual information "bits and pieces", which I found on the web.
USER who needs access to the ACL and the fact that it is an https site makes a difference for settings?
I can return data from SqlPlus without problem.
FOR INFO.
Oracle 11g
APEX 5
W2008.
Pointers would be appreciated!
Thank you
Hi Samuistu,
Samuistu wrote:
Basically, what I want to do is to download data in a table to a Web site. A good example of the type of data is here https://www.cryptopia.co.nz/api/GetCurrencies
Is it possible to get this data into a table that contains the Id column headers, name, etc. of symbol.
Assuming that you have a table as follows:
create table crypt_currencies ( id number, name varchar2(128), symbol varchar2(8), algorithm varchar2(128) );
Finally with regard to the features to get the web service data and insert them in the table, for that you can do something like this:
declare l_response clob; l_values apex_json.t_values; l_data_count integer; l_crypt_curr_rec crypt_currencies%rowtype; begin l_response := apex_web_service.make_rest_request ( p_url => 'https://www.cryptopia.co.nz/api/GetCurrencies', p_http_method => 'GET', p_wallet_path => 'file:path/to/oracle/wallet', p_wallet_pwd => 'password' ); apex_json.parse ( p_values => l_values, p_source => l_response ); if apex_json.get_boolean ( p_values => l_values, p_path => 'Success' ) then dbms_output.put_line('Success --> true'); end if; dbms_output.put_line ( 'Data Members Count --> '|| apex_json.get_count ( p_values => l_values, p_path => 'Data' ) ); l_data_count := apex_json.get_count ( p_values => l_values, p_path => 'Data' ); for i in 1 .. l_data_count loop l_crypt_curr_rec := null; dbms_output.put_line ( 'Id --> '|| apex_json.get_number ( p_values => l_values, p_path => 'Data[%d].Id', p0 => i ) ||', '|| 'Name --> '|| apex_json.get_varchar2 ( p_values => l_values, p_path => 'Data[%d].Name', p0 => i ) ||', '|| 'Symbol --> '|| apex_json.get_varchar2 ( p_values => l_values, p_path => 'Data[%d].Symbol', p0 => i ) ||', '|| 'Algorithm --> '|| apex_json.get_varchar2 ( p_values => l_values, p_path => 'Data[%d].Algorithm', p0 => i ) ); l_crypt_curr_rec.id := apex_json.get_number ( p_values => l_values, p_path => 'Data[%d].Id', p0 => i ); l_crypt_curr_rec.name := apex_json.get_varchar2 ( p_values => l_values, p_path => 'Data[%d].Name', p0 => i ); l_crypt_curr_rec.symbol := apex_json.get_varchar2 ( p_values => l_values, p_path => 'Data[%d].Symbol', p0 => i ); l_crypt_curr_rec.algorithm := apex_json.get_varchar2 ( p_values => l_values, p_path => 'Data[%d].Algorithm', p0 => i ); insert into crypt_currencies values l_crypt_curr_rec; end loop; end;
NOTE:
- The code above is for purposes of example, if you use it make the necessary changes.
- Dbms_output calls are given for the purpose of debugging. You can remove that in the actual code.
I hope this helps!
Kind regards
Kiran
-
I have tried the code
DECLARE
lv_url VARCHAR2 (1000): = ' http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf';
lc_return BLOB;
lhttp_url httpuritype.
Varriables - declared to have written the LOB to pdf file-
l_file UTL_FILE. TYPE_DE_FICHIER;
l_buffer RAW (32767).
l_amount directory: = 32767;
l_pos INTEGER: = 1;
l_blob BLOB;
l_blob_len INTEGER.
BEGIN
-create URIs
lhttp_url: = httpuritype.createuri (lv_url);
-get the PDF document
lc_return: = lhttp_url.getblob ();
-Open the destination file.
l_file: = UTL_FILE. FOPEN ('MBO_INPUT_DIR', 'MBD.zip', 'wb');
-Get the total length of the BLOB
l_blob_len: = DBMS_LOB.getlength (lc_return);
-Pieces of the BLOB to read and write to the file
-full up.
While l_pos < l_blob_len LOOP
DBMS_LOB. READ (lc_return, l_amount, l_pos, l_buffer);
UTL_FILE.put_raw (l_file, l_buffer, FALSE);
l_pos: = l_pos + l_amount;
END LOOP;
-Closes the file.
UTL_FILE. FCLOSE (l_file);
EXCEPTION
WHILE OTHERS THEN
-Close the file if something goes wrong.
IF UTL_FILE.IS_OPEN (l_file) THEN
UTL_FILE. FCLOSE (l_file);
END IF;
LIFT;
END;
But make a mistake like:
Error report-
ORA-29273: HTTP request failed
ORA-06512: at "SYS." UTL_HTTP", line 1130
ORA-12535: TNS:operation expired
ORA-06512: at line 37 level
29273 00000 - "the HTTP request failed.
* Cause: The UTL_HTTP package cannot run the HTTP request.
* Action: Use get_detailed_sqlerrm to check the detailed error message.
Correct the error and restart the HTTP request.
Please suggest a solution. Is it possible to download a zip file with the same code?
[oracle@localhost ~]$ sqlplus scott/tiger SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 6 13:59:09 2015 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> --My Database version SQL> ---------------------- SQL> SELECT * FROM v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production PL/SQL Release 11.2.0.1.0 - Production CORE 11.2.0.1.0 Production TNS for Linux: Version 11.2.0.1.0 - Production NLSRTL Version 11.2.0.1.0 - Production SQL> ed Wrote file afiedt.buf 1 DECLARE 2 lv_url VARCHAR2(500) := 'http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf'; 3 lc_return BLOB; 4 lhttp_url httpuritype; 5 ---Varriables declared for writing the LOB to pdf file -- 6 l_file UTL_FILE.FILE_TYPE; 7 l_buffer RAW(32767); 8 l_amount BINARY_INTEGER := 32767; 9 l_pos INTEGER := 1; 10 l_blob BLOB; 11 l_blob_len INTEGER; 12 BEGIN 13 --create uri 14 lhttp_url := httpuritype.createuri(lv_url); 15 --get the PDF document 16 lc_return := lhttp_url.getblob(); 17 -- Open the destination file. 18 l_file := UTL_FILE.FOPEN('SAUBHIK', 'TheLoveDare.pdf', 'wb'); 19 --Get the total length of the BLOB 20 l_blob_len := DBMS_LOB.getlength(lc_return); 21 -- Read chunks of the BLOB and write them to the file 22 -- until complete. 23 WHILE l_pos < l_blob_len LOOP 24 DBMS_LOB.READ(lc_return, l_amount, l_pos, l_buffer); 25 UTL_FILE.put_raw(l_file, l_buffer, FALSE); 26 l_pos := l_pos + l_amount; 27 END LOOP; 28 -- Close the file. 29 UTL_FILE.FCLOSE(l_file); 30 EXCEPTION 31 WHEN OTHERS THEN 32 -- Close the file if something goes wrong. 33 IF UTL_FILE.IS_OPEN(l_file) THEN 34 UTL_FILE.FCLOSE(l_file); 35 END IF; 36 RAISE; 37* END; 38 / DECLARE * ERROR at line 1: ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-24247: network access denied by access control list (ACL) ORA-06512: at line 36 SQL> conn sys as sysdba Enter password: Connected. SQL> ed Wrote file afiedt.buf 1 BEGIN 2 DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(acl => 'love.xml', 3 description => 'Love ACL', 4 principal => 'SCOTT', 5 is_grant => true, 6 privilege => 'connect'); 7 DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl => 'love.xml', 8 principal => 'SCOTT', 9 is_grant => true, 10 privilege => 'resolve'); 11 DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(acl => 'love.xml', 12 host => 'shenzhoufellowship.org'); 13 commit; 14* END; 15 / PL/SQL procedure successfully completed. SQL> conn scott/tiger Connected. SQL> ed Wrote file afiedt.buf 1 DECLARE 2 lv_url VARCHAR2(500) := 'http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf'; 3 lc_return BLOB; 4 lhttp_url httpuritype; 5 ---Varriables declared for writing the LOB to pdf file -- 6 l_file UTL_FILE.FILE_TYPE; 7 l_buffer RAW(32767); 8 l_amount BINARY_INTEGER := 32767; 9 l_pos INTEGER := 1; 10 l_blob BLOB; 11 l_blob_len INTEGER; 12 BEGIN 13 --create uri 14 lhttp_url := httpuritype.createuri(lv_url); 15 --get the PDF document 16 lc_return := lhttp_url.getblob(); 17 -- Open the destination file. 18 l_file := UTL_FILE.FOPEN('SAUBHIK', 'TheLoveDare.pdf', 'wb'); 19 --Get the total length of the BLOB 20 l_blob_len := DBMS_LOB.getlength(lc_return); 21 -- Read chunks of the BLOB and write them to the file 22 -- until complete. 23 WHILE l_pos < l_blob_len LOOP 24 DBMS_LOB.READ(lc_return, l_amount, l_pos, l_buffer); 25 UTL_FILE.put_raw(l_file, l_buffer, FALSE); 26 l_pos := l_pos + l_amount; 27 END LOOP; 28 -- Close the file. 29 UTL_FILE.FCLOSE(l_file); 30 EXCEPTION 31 WHEN OTHERS THEN 32 -- Close the file if something goes wrong. 33 IF UTL_FILE.IS_OPEN(l_file) THEN 34 UTL_FILE.FCLOSE(l_file); 35 END IF; 36 RAISE; 37* END; 38 / PL/SQL procedure successfully completed. SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options [oracle@localhost ~]$ cd saubhik/ [oracle@localhost saubhik]$ pwd /home/oracle/saubhik [oracle@localhost saubhik]$ ls -l *.pdf -rw-r--r-- 1 oracle oinstall 60055 Apr 6 14:03 TheLoveDare.pdf [oracle@localhost saubhik]$
I love this pdf file. I would like to read this and mean while if you get an error then please post in its entirety and also think that it is an Oracle error or network.
-
ADF Mobile access protected web service with the user name and password
With Jdev 11.1.2.4 (with the extension of the ADF Mobile) I am creating a data control that uses a SOAP web service. The web service is not protected by a policy of wss, but its point of endpoint URL is only protected by simple HTTP authentication (internal weblogic server is not accessible public.) We use an Apache server that is configured with a location that is a simple proxypass on url of the web service endpoint weblogic. This apache location apply simple HTTP authorization). I can invoke successfully the methods with parser HTTP by simply adding to the request HTTP header "authorization: xxxxxxxxxxxxxxxxxx base =" (where xxx = user name and encrypted password).
In the mobile application of ADF, I used the DataControls.dcx-> window to connect to the Web Service change and provided the username and password to the URL of the endpoint. The problem is that after the deployment and execution of this application on the emulator (or the device itself), I get no data by the web service since with the HTTP 401 error http server responses. It seems that that the credentials are not deployed to the device, so while the application is running can not find them.
I searched a lot and found a similar article (quite old) in the RTO by Frank Nimphius here access_protected_web_services_from_adf.htm
Is there a way to do this, or if I'm missing the entire image?
Thank you very much.
Christos
Check out blog Shay https://blogs.oracle.com/shay/entry/accessing_secure_web_services_from
or Andrejus http://andrejusb.blogspot.de/2012/11/adf-mobile-secured-web-service-access.html
Timo
-
ePrint record new user and the issues of access to Web Services
In June, I registered the HP printer. Then, I went on the eprint site and registered an e-mail address there. After we have chaged the name of my laptop, the printer recognizes the laptop more (Macbook pro). After having tried everything, reset us the printer to factory settings and rebooted the configure everything again.
The printer recognizes now my laptop, but I don't have access to web services more, nor the eprint works!
Webserivces:can not access, it gives me an error message.
EPrint:When I'll on-site eprint, it shows that you can see your eprint email address... Where? I can my address loging onlysee.
There is not a single printer in my printer list... I can only add a printer, but when I try to add the printer, I only get error messages. Once I managed to get careful, but he toldme that email eprint was already taken (of course, it is taken, it's mine!)
Unfortunately I do not know much about the MAC operating system, but you can check on hp.com/support to find out if there is a newer version drivers that may be compatible. On the question of e-mail address, you can add multiple printers to your ePrint account, but each printer would have its own e-mail address. I apologize that the restriction is there for your old custom address but it's to protect the customers to get emails sent to their printer that were not intended for them. (For example if someone was to have chosen your email address as soon as you have disabled web services).
-
Hello
I use Oracle EBS, whenever I click on the Zoom button I get the error at the bottom of the page below.
Unhandled exception in AXFCustom.launch_command_soap SQLCODE =-29273: ORA-29273: HTTP request failed
When I checked the master.log file I see the error log entry below.
< SNIP >
path Wallet AXFCustom.launch_command_soap = file:/u020/dba/wci-wallet/sd12t-wallet 23/03/2015-22:09:44
23/03/2015-22:09:55 unhandled exception in AXFCustom.launch_command_soap SQLCODE =-29273: ORA-29273: HTTP request failed
ORA-06512: at "SYS." UTL_HTTP", line 1130
ORA-29106: could not import the PKCS #12 wallet.
ORA-06512: at the 'APPS '. AXF_SOAPCALL', line 14
23/03/2015-22:09:55 AXFCustom.main: output
< / SNIP >
Please provide your input on this.
Thank you
Shakeel
Hi Shakeel,
This error occurs when there is some value (which is unnecessary) present in the column "AXF_WalletKey."
To resolve the above error, please follow the steps below.
1. connect to AXF schema using SQL developer.
2. run the command AXF diagram below.
Call fnd_vault.put ('AXF ', 'AXFWalletKey',' ');
commit;
3. disconnect the session of EBS log on again and check the Zoom button.
Kind regards
Rahul
-
Error trying to generate the WSDL of the Web service in JDeveloper 11.1.1.3
Hey,.
Whenever I try to generate a WSDL for a Web service, I get the following stack trace:
java.lang.NullPointerException
at oracle.jdeveloper.webservices.model.java.JavaWebServiceValidator.getTypeReasons(JavaWebServiceValidator.java:882)
at oracle.jdeveloper.webservices.model.java.JavaWebServiceValidator.getInvalidValueTypes(JavaWebServiceValidator.java:1060)
at oracle.jdeveloper.webservices.model.java.JavaWebServiceValidator.getValidationErrors(JavaWebServiceValidator.java:241)
at oracle.jdeveloper.webservices.model.CoreHashStructureModel.validate(CoreHashStructureModel.java:187)
at oracle.jdeveloper.webservices.model.generator.Validation.action(Validation.java:65)
at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:143)
at java.lang.Thread.run(Thread.java:619)
I am able to run this webservice via run and debug, and 'Test this webservice.' It's only when I try to generate the WSDL file in jdeveloper I get this message. I'm even able to display the WSDL file in the browser by adding? WSDL at the end of the url for the web service endpoint. Any ideas?It is very possible that @XmlSeeAlso is not the only annotation that is causing problems to the jdev wsdl generator.
You can try to remove all the relevant annotations and then add them both just to see that one is problematic, but even if you do not find
What is the cause of the problems, you will have to wait until the next jdev release and hope it is fixed.
The best thing for you to do is to file a bug with the support of the Oracle, to ensure that they are aware.Pedja
-
How to add THE web service to the ACL?
I want to access a web service from a PL/SQL procedure (using UTL_HTTP) since a 11g R2 database. However, before you do anything, I need to give access to the web service by adding the web service to the access control list (ACL).
I want to test the web service is full here: http://www.service-repository.com/service/overview/-1789095104
This is a free WS, you can use to test the code WS. The endpoint is http://www.w3schools.com/webservices/tempconvert.asmx
Therefore, adding www.w3schools.com to list ACL will be fine, I think? Am I wrong?
I tried the method below but I get this error and the user guide is not clear what to do.
SQL > exec dbms_network_acl_admin.assign_acl (LCD = > 'temp_ws1.xml', host = > 'www.w3schools.com');
BEGIN dbms_network_acl_admin.assign_acl (LCD = > 'temp_ws1.xml', host = > 'www.w3schools.com'); END;
*
ERROR on line 1:
ORA-31001: handle or path of the invalid resource name ' / sys/acls/temp_ws1.xml '.
ORA-06512: at "SYS." DBMS_SYS_ERROR', line 86
ORA-06512: at "SYS." DBMS_NETWORK_ACL_ADMIN', line 94
ORA-06512: at "SYS." DBMS_NETWORK_ACL_ADMIN', line 479
ORA-06512: at line 1
Any help would be greatly appreciated.
This,
host-online "www.w3shools.com."
is not the same thing as this,
host-online "www.w3schools.com".
-
Error in creation of Control (SOAP) data to the Web Service in the ADF Mobile app
Hi, I tried to create a Control (SOAP) Web Service data in a Mobile application of ADF in JDeveloper 11.1.2.4.0 under Mac OS X 10.8.5
The application has been newly created (no features) and I tried to create a Web Service data control directly.
In the 'Create Web Service data-> step 1 control', when I entered the URL of the WSDL and left the text box, the window "WSDL Document for reading" came and I got an error message saying "invalid WSDL URL.
The error description is given below:
Houston-29114 ADFContext is not configured to process this exception messages. Use the code of exception stack trace and error to investigate the root cause of this exception. Root cause error code is DCA-29000. Are parameters of error message ({0 = oracle.webservices.mdds.MddsException, 1 = java.io.InterruptedIOException: connection timed out})
I have JDeveloper put 11.1.2.4.0 in place on a Windows 8 and follow the same steps with the same WSDL URL and he accepted the URL.
Can anyone help on how to fix this problem as I want to develop on Mac.
Hello
We have solved the problem by asking the dev team to provide the file for the web service's .wsdl. We copied the file in the file system on the mac and then instead of provide the URL, inviting us to the wsdl file. Who does the work on the mac.
We were able to put a URL as http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL (a non-secure web service) and the wizard to create the Web Service data control accepted the URL on the mac. Can be to secure web services, we have the .wsdl himself file. (the web service that we were trying to access was on EBS and was a secure web service)
-
Call to Web Service of Oracle PL/SQL not to call the Web service in SOA Server
Hello
Try to call the Web service to oralce pl/sql function
created a function
Unable to invoke the web service from the server of the SOA.
CREATE or REPLACE FUNCTION HelloWorld_WebServices(S_STRING Varchar2) RETURN VARCHAR2 as
Server sys.utl_dbws. SERVICE;
APPEL_ sys.utl_dbws. CALL;
service_qname sys.utl_dbws. QNAME;
port_qname sys.utl_dbws. QNAME;
response sys. XMLTYPE;
application sys. XMLTYPE;
BEGIN
sys.utl_dbws.set_http_proxy ("hostname: Port'");
service_qname: = sys.utl_dbws.to_qname ("ns1", "process");
Server: = sys.utl_dbws.create_service (service_qname);
APPEL_: = sys.utl_dbws.create_call (server);
sys.utl_dbws.set_target_endpoint_address (APPEL_, ' http:/host name: port/soa-infra/services/OFS/HelloWorld/helloworld_client_ep ');
sys.utl_dbws.set_property (APPEL_, 'OPERATION_STYLE', 'process');
asks: = sys. XMLTYPE ("< ns1:process xmlns:ns1 ="http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld"> < ns1:input > < / ns1:input > < / ns1:process > '");
answer: = sys.utl_dbws.invoke (APPEL_, request);
return response.extract('//HelloWorld/child::text() ','http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld'). getstringval();
DBMS_OUTPUT. Put_line ("values of the OutputsVariables8");
-Of return ';
END;
Run - the code below:
Select HelloWorld_WebServices ('Hi') to double;
Error:
ORA-29532: Java call terminated by eception Java exception: java.lang.NoClassDefFoundError
ORA-06512: at "SYS." UTL_DBWS', line 403
ORA-06512: at "SYS." UTL_DBWS', line 400
ORA-06512: at the 'APPS '. HELLOWORLD_WEBSERVICES', line 74
29532 00000 - "Java call terminated by eception Java exception: %s."
* Cause: A mistake or a Java exception has been reported and could not be
solved by Java code.
* Action: Modify Java code, if this behavior is not expected.
Hello
Fixed the error
After loading once again of DBA and network provided access files JAR/JVM firewall
and the correction on the threshold
Return response.extract (' / result/child::text () ','xmlns = "http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld" '). getstringval();
-
Use the web service to invoke a new process execution
Hello
I use BPM 10 g 3, and I'm calling a process entirely automated via a web service
I install my name http:// < host >: < port > /albpmServices/ < web service engine > /ws/ < process name > ServiceListener? WSDL
I accessed from a c# application, that I have written and visual studio report my functions and others.
I can start a new session (startSession (string password, string username) and I get sessionID) with the process of the web.
but when im trying to call my own function (which is defined in the web service of process as a running process on my beginIn settings) I get a reply with a FaultException without visible error code.
The newspaper of BPM, I can see the following lines:
(1) call service with id: < process name > ServiceListener
[2) article of delivery: IMMEDIATE Inst [-1, -1, -1] Act [no activity] Proc [No. process] Due 1318860646000000]
(3) TransactionAction: Rollback!
While the TransactionAction: Rollback! means that something bad happened, I don't see the reason.
any idea?OK I got it to work.
I did all the things you suggested before, but when you said I need to see the right activity will be started, I understand what is wrong
The activity chosen must be in an alley with the same role as the connection of the user in the session.
So I added a role on Begin and created a part for this role, connected with it and now it works =)Edit: I'm the same guy who has opened the threqad, just need to make a new user for assistance to business (do not have to use it)
Published by: 891957 on 23:59 10/17/2011
Maybe you are looking for
-
Gel prior to loading of the video from YouTube
When I go on youtube and search for a video and click on a link, it loads the video, but first it freezes for about 10-15 seconds, and the video window flash does not load correctly. I have to move the mouse over the various buttons in the field of t
-
Monitor on Equium U400 is reversed
Equium U400 has started and the screen is now reversed, it could be the inverter or backlight in the monitor.Would appreciate any help to try to find a solution to fix or suggestion for a place to buy the right part for my laptop. Thank you very much
-
I have a question for multiplotting a XY Chart. I deleted some of my vi to have view more inside. The XY graph I want to generate are P1 and P2 as X and Y and each parcel is a stream. I can't get right. To work quickly, I put 2 slides in to represent
-
My computer works with Windows 7 Home Basic Edition. Never had problems with all games except one, that I'm playing. The Options screen in the game says "screen windowed unsupported. This resulted in my screen all fill the game screen but there are s
-
I have microsoft office on my PC but under my login girls she cannot access to Word or Excel and they do not appear on the list of programs? While on my login they are pinned to the start menu and on the list of programs. How can my daughter use them