How to access AAU Web Service in Oracle.

Hi all

I try to call the AAU Web Service (CheckIn.wsdl) using oracle.
But these web services are the name of user and password secure and expected.
Someone has an idea to pass the name of user and password based on the oracle.

My Code: -.

CREATE OR REPLACE FUNCTION checkin (dDocName IN VARCHAR2, dDocTitle IN VARCHAR2, dDocType IN VARCHAR2,
dDocAuthor IN VARCHAR2, dSecurityGroup IN VARCHAR2, dDocAccount IN VARCHAR2,
primaryFile IN VARCHAR2)
Return number
AS
l_service SYS. UTL_DBWS.service;
l_call SYS. UTL_DBWS. Call;
newurl VARCHAR2 (32767).
l_wsdl_url VARCHAR2 (32767).
l_namespace VARCHAR2 (32767).
l_service_qname SYS. UTL_DBWS. QName;
l_port_qname SYS. UTL_DBWS. QName;
l_operation_qname SYS. UTL_DBWS. QName;
l_xmltype_in SYS. XMLTYPE;
l_xmltype_out SYS. XMLTYPE;
BEGIN
l_wsdl_url: = ' http://localhost:16200 / cs/groups/fix/wsdl/custom/CheckIn? WSDL ";
l_namespace: = 'http://www.stellent.com/CheckIn/ ';
l_service_qname: = SYS. UTL_DBWS.to_qname (l_namespace, ' CheckIne);
l_port_qname: = SYS. UTL_DBWS.to_qname (l_namespace, 'CheckInSoap');
l_operation_qname: = SYS. UTL_DBWS.to_qname (l_namespace, 'CheckInUniversal');
l_service: = SYS. () UTL_DBWS.create_service
wsdl_document_location = > URIFACTORY.getURI (l_wsdl_url).
service_name = > l_service_qname);
l_call: = SYS. () UTL_DBWS.create_call
service_handle = > l_service,
port_name = > l_port_qname,
operation_name = > l_operation_qname);
l_xmltype_in: = SYS. XMLTYPE ("<?") XML version = "1.0" encoding ="utf - 8"? >
"< CheckInUniversal xmlns =" "|" l_namespace | "" >
< VARCHAR2 > ' | dDocName | ' < / VARCHAR2 >
< VARCHAR2 > ' | dDocTitle | ' < / VARCHAR2 >
< VARCHAR2 > ' | dDocType | ' < / VARCHAR2 >
< VARCHAR2 > ' | dDocAuthor | ' < / VARCHAR2 >
< VARCHAR2 > ' | dSecurityGroup | ' < / VARCHAR2 >
< VARCHAR2 > ' | dDocAccount | ' < / VARCHAR2 >
< VARCHAR2 > ' | primaryFile | ' < / VARCHAR2 >
(< / CheckInUniversal > ');
l_xmltype_out: = SYS. UTL_DBWS. Invoke (call_Handle = > l_call,)
request = > l_xmltype_in);
SYS. UTL_DBWS.release_call (call_handle = > l_call);
SYS. UTL_DBWS.RELEASE_SERVICE (service_handle = > l_service);
END;

Is compiled successfully.

Whenever I'm running using
SELECT the checkin ('WEBSERVICE009', 'WEBSERVICE009', 'Document','weblogic','Private','IT/EBA/Distributor_testuser','D:/ucmfiles/test_WebService_11.txt') FROM dual;

He expects the name of user and password...

Anyone with an idea.

If you use apex, you have access to the wwv_flow_web_services package that has all the procs, you need to do this work. Otherwise, you can use flex_ws_api, which, although a bit outdated, should always work. This can be found at: http://jastraub.blogspot.com/2009/11/flexwsapi-no-on-samplecodeoraclecom.html

I hope that will get you the start you need. Don't forget soapUI. This has proved to be very useful for my development just to prove that something works. It becomes a very simple way, when I often hear, "UCM does not work... '. ».

Check-In

-- Modify and create select that will get filename and content from a table.
-- set serverouput on
-- make sure flex_ws_api package is installed in same schema that you run this.
declare
 l_filename varchar2(100);
 l_login varchar2(20);
 l_ddocname varchar2(20);
 l_BLOB BLOB;
 l_CLOB CLOB;
 l_envelope CLOB;
 l_response_msg varchar2(32767);
begin
  select name, content, ddocname
  into l_filename, l_BLOB, l_ddocname
  from pdfs
  where id = 1;

  l_login := 'kalee';
  l_CLOB := flex_ws_api.blob2clobbase64(l_BLOB);

  l_envelope := '';
  l_envelope := l_envelope || '';
  l_envelope := l_envelope || '';
  l_envelope := l_envelope || '  ';
  l_envelope := l_envelope || '     ';

  if length(ltrim(rtrim(l_ddocname))) > 0 then
    l_envelope := l_envelope || '        '||l_ddocname||'';
  end if;

  l_envelope := l_envelope || '        '||l_filename||'';
  l_envelope := l_envelope || '        WebContent';
  l_envelope := l_envelope || '        '||l_login||'';
  l_envelope := l_envelope || '        Public';
  l_envelope := l_envelope || '        WebContent';
  l_envelope := l_envelope || '        ';
  l_envelope := l_envelope || '           ';
  l_envelope := l_envelope || '              xDCSDProfileTrigger';
  l_envelope := l_envelope || '              WebContent';
  l_envelope := l_envelope || '           ';
  l_envelope := l_envelope || '        ';
  l_envelope := l_envelope || '        ';
  l_envelope := l_envelope || '           '||l_filename||'';
  l_envelope := l_envelope || '           '||l_CLOB||'';
  l_envelope := l_envelope || '        ';
  l_envelope := l_envelope || '     ';
  l_envelope := l_envelope || '  ';
  l_envelope := l_envelope || '';

  l_xmltype := flex_ws_api.make_request(
    p_url               => 'https://ucmdev.dcsdk12.org/_dav/cs/idcplg',
    p_action            => 'http://www.stellent.com/Search/',
    p_envelope          => l_envelope,
    p_username          => 'admin',
    p_password          => 'password',
    p_wallet_path       => 'file:/u01/app/oracle/admin/SADD/wallet',
    p_wallet_pwd        => 'walletpassword'
  );

  l_response_msg := flex_ws_api.parse_response(p_collection_name=>'STELLENT_CHECKIN',p_xpath=>'//idc:CheckInUniversalResponse/idc:CheckInUniversalResult/idc:StatusInfo/idc:statusMessage/text()',p_ns=>'xmlns:idc="http://www.stellent.com/CheckIn/"');

  dbms_output.put_line(l_response_msg);
exception
  when others then
    dbms_output.put_line(l_response_msg);
    raise;
end;
/

Search

declare
  l_envelope CLOB;
  l_xmltype XMLTYPE;
  l_response varchar2(100);
  ecode NUMBER;
  emesg VARCHAR2(200);
  cursor searchresults_cur(p_xmltype xmltype) is
    SELECT
      extractvalue(column_value, '/idc:SearchResults/idc:dDocName','xmlns:idc="http://www.stellent.com/Search/"') DOCNAME,
      extractvalue(column_value, '/idc:SearchResults/idc:dDocTitle','xmlns:idc="http://www.stellent.com/Search/"') DOCTITLE
    FROM TABLE(XMLSequence(p_xmltype.extract('//idc:QuickSearchResponse/idc:QuickSearchResult/idc:SearchResults','xmlns:idc="http://www.stellent.com/Search/"')));
  searchresults_rec searchresults_cur%ROWTYPE;

begin
  l_envelope := '';
  l_envelope := l_envelope || '';
  l_envelope := l_envelope || ' ';
  l_envelope := l_envelope || ' ';
  l_envelope := l_envelope || '  ';
  l_envelope := l_envelope || '   dDocAuthor <matches> `kalee`';
  l_envelope := l_envelope || '  ';
  l_envelope := l_envelope || ' ';
  l_envelope := l_envelope || '';

  -- dbms_output.put_line('(soapenv)='||l_envelope);

  l_xmltype := flex_ws_api.make_request(
    p_url               => 'https://ucm.yourdomain/_dav/cs/idcplg',
    p_action            => 'http://www.stellent.com/Search/',
    p_envelope          => l_envelope,
    p_username          => 'admin',
    p_password          => 'password',
    p_wallet_path       => 'file:/u01/app/oracle/admin/DATABASESID/wallet',
    p_wallet_pwd        => 'walletpassword'
  );

  -- dbms_output.put_line('(xml)='||substr(l_xmltype.GetClobVal(),1,2000));

  open searchresults_cur(l_xmltype);
  loop
    fetch searchresults_cur into searchresults_rec;
    exit when searchresults_cur%NOTFOUND;
    dbms_output.put_line('(dDocName)='||searchresults_rec.DOCNAME||' (dDocTitle)='||searchresults_rec.DOCTITLE);
  end loop;
  if searchresults_cur%ROWCOUNT = 0 then
    dbms_output.put_line('No records found!');
  end if;
  close searchresults_cur;

exception
  when others then
    ecode := SQLCODE;
    emesg := SQLERRM;
    --insert into log_table (code,message,info) values (0,TO_CHAR(ecode) || '-' || emesg,'.CheckinDocument emesg');
    --commit;
    raise;
end;
/

Tags: Fusion Middleware

Similar Questions

  • 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
    CREATE 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;
    But it's me ORA-29272: HTTP request failed
    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:38

    Y.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.

  • How to call the web service?

    Hello

    I want to know how to call the web service from my application HTML5 & javascript.

    Please help me find this detail as what I can access easily. and I want to access web services online (a method of it) I'm not concered with how background Web service takes place.

    I just want that when you call a web service method, I will return the result.

    Please try this out for a WebService call

    var xmlhttp;
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("get","your url",true);
    xmlhttp.setRequestHeader("Accept","application/json");
    xmlhttp.setRequestHeader("Content-type", "application/json");
    xmlhttp.onreadystatechange=function() {
     if (xmlhttp.readyState==4) {
      if (xmlhttp.status == 200) {
        console.log(xmlhttp.responseText);
      }
     }
    }
    xmlhttp.send();
    

    This will display the result of the invocation of webservice. The url is the application that you deploy and the type can be get/post. If xmlhttp.send (post) takes argument for the display of the data. You can call it by clicking a button in HTML.

  • Native web services in Oracle 11 g

    Y at - there no official explanation on how to configure and create native web services to Oracle 11 g and how to properly secure these services? Since Oracle APEX now supports web services use SOAP and REST, it makes sense to have more explanation on creating and securing web services. As know many PL/SQL programmers, it isn't always an easy task to develop web services in jDeveloper to work with databases - with all of these technologies to Add on as jPublisher/Toplink to get the job of things. It is not easy to get the 'How to' guide on creating and securing of the native web services in Oracle 11 g.

    Thank you.

    Andy

    Hello.

    If you are still looking for this answer, you can try this.

    http://www.Oracle-base.com/articles/11g/native-Oracle-XML-DB-Web-services-11gr1.php

    The article has links to documentation and other resources at the bottom.

    See you soon

    Tim...

  • How to access my Web site created through windows live?

    I created a Web site through windows live and to pay the Bill on windows live. I'm used to be able to connect to the website to make updates or changes when I signed into windows live, but now there is no option to do what I can find. How to access my Web site online for windows?

    Hello

    When you use Windows live and the question you have posted is related to Windows Live, so it would be better suited in the Windows Live community. Please visit the link below to find a community that will provide the best support.

    Windows Live Mail Forum

    http://www.windowslivehelp.com/forums.aspx?ProductID=15

  • 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).

  • 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".

  • Newbie question: How do I know if the account has access to web services?

    As the title suggests, I'm new to CRMOD, although I have worked with other web Apis.
    Right now I have a CRM account, but get the "capslock" answer in my SOAP call. I think it's because the account is just a regular account and it lacks some rights. How can I tell the admin to grant my account these rights? I don't know how to make such a request in words they understand.

    Hello Daniel,.

    You must identify your role. If you go to mysetup you know your role.

    Ask the administrator to grant 'Activate access Web Services' prvilege to your role.

    This should be good.

    Kind regards

    Paul Swarnapandian

  • How to configure a web service primavera to return the data in the second database?

    Hello world


    We have P6 with WS first deployment on a single weblogic domain server. The first WS returns the first instance of database data.

    Then deployed to the WS second tip on a weblogic domain server separated with a different port. Set up the second WS with < WS2_INSTALL_HOME > / bin/dbconfig.sh, creating a new branch a configuration that specifies one second instance of the database. However, this configuration is ignored, and the second web services return data from the database.

    We have a single domain, including notably the following servers:

    Name / host / Port / deployments

    P6 / localhost / 0001 / P6 (v8.3), p6ws1 (v8.3)

    p6ws2 / localhost / 0002 / p6ws2 (v8.3)

    We have now two different files BREBootstrap.xml.

    P6 BREBootstrap.xml:

    < database >

    < URL > JDBC:Oracle:thin:@db1:1521:db1 < / URL >

    < user name > pubuser < / name >

    password <>anycriptopass1 < / password >

    oracle.jdbc.OracleDriver < driver > < / driver >

    < PublicGroupId > 1 < / PublicGroupId >

    < / data >

    < CfgVersion > 8.330 < / CfgVersion >

    <>configurations

    < name BRE = 'P6 Config_DB1"instances ="1"logDir ="anydir, P6EPPM, p6, PrimaveraLogs"/ >

    < / configuration >

    p6ws2 BREBootstrap.xml:

    < database >

    < URL > JDBC:Oracle:thin:@DB2:1521:DB2 < / URL >

    < user name > pubuser < / name >

    password <>anycriptopass2 < / password >

    oracle.jdbc.OracleDriver < driver > < / driver >

    < PublicGroupId > 1 < / PublicGroupId >

    < / data >

    < CfgVersion > 8.330 < / CfgVersion >

    <>configurations

    < name BRE = 'P6 Config_DB2"instances ="1"logDir ="anydir, P6EPPM, ws2, PrimaveraLogs"/ >

    < / configuration >

    "P6 Config_DB1" and "P6 Config_DB2" including the property database for the database 1 and 2 respectively.

    How to set up a second web service to return the data to the second database?


    Thanks in advance!


    Kind regards

    Dmitry

    So, answer oracle support:

    Looks like it is in the documentation, Web Services cannot be configured in this way as the other modules. See the following topics:

    BUG 19516437 - Is it POSSIBLE TO hardcode a DEPLOYMENT of SERVICES WEB P6 to an INSTANCE of DATABASE? (ask if this is possible)

    BUG 19579735 - FOR BEING ABLE to hardcode A P6 WEB SERVICES DEPLOYMENT to A DATABASE INSTANCE (corresponding improvement because it can be done).

    The problem has been resolved by the following:

    1 create the WebLogic domain.

    2 P6 and p6ws deployed on managed servers.

    3 configuration P6 uses the second instance of database and P6 has not begun.

    4 result: the p6ws (from additional domain WebLogic) returns data for the second instance of the database.

    Kind regards

    Dmitry

  • Test a REST based Web Service for Oracle R12.2.3

    Using the Oracle Support document,

    Installation of Oracle E-Business Suite integrated SOA Gateway, version 12.2 (Doc ID 1311068.1()

    I was able to deploy the REST web service based to FND_USER_PKG as FndUsrPkgSvc.

    I am able to view the file w.


    How once on the test REST based Web service?


    There is everything by deploying a REST Service Secuirty next note

    How this only plays a role in testing the web service.



    REST service security

    REST Web service is secure basic authentication HTTP to the HTTP Transport level. Send any of the following in the "Authorization" header according to the basic HTTP scheme:

    -Username:Passwod

    -Security token.

    Tip: Use connection Service to get a token of security for account taken of the user credentials.



    Thank you

    Rohit



    The guidance provided in the Guide of the SOA (156 Pg) developer are very useful, and once followed step by step allows not only to deploy, but also test the REST web service.

    Rohit-

  • How to consume the web service using PLSQL in 11g

    Hello

    I created a site using jDeveloper, web services which when I put in the web browser and press enter, it will display the settings screen and when I pass the value for the parameter, and then it displays the output of the XML returned by the PL/SQL (called in the Web Service) package. Now, I want to call this webservice in PL/SQL and read XML data and fill in the staging table. Can anyone suggest me how to achieve this functionality by using Oracle PL/SQL

    I use the database 11g and jDeveloper Version :-Studio Edition version 10.1.3.0

    Thank you very much in advance.

    Vijay

    The WSDL file describes the web service.

    To obtain the WSDL, you enter the URL of the web service and add some ? WSDL to the URL. This indicates the web service to return to its definition.

    For example

    URL of the Web Service: http://wsf.cdyne.com/WeatherWS/Weather.asmx

    WSDL URL: http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL

    When you read (using 'web browser' UTL_HTTPpackage) the XML response from the web service, read as strings (PL/SQL varchar2, size 32 K max).

    You should read the answer as the strings, then writing/writeappend these channels in a CLOB (using the DBMS_LOB package). If you are VERY sure that the web service call ALWAYS returns an XML of less than 32 k, you can skip using a CLOB.

    Whatever it is, read you the response from the web service in the form of text (such as plain text, it is what is sent). The next step on your part is to parse text into an XML DOM (document object model) - and storing the DOM in an Oracle XmlType variable.

    When in a DOM, you can use Oracle XML functions to extract the attributes and values of the key element of the response from the web service.

  • 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

  • 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();

  • 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).

  • How to call a Web service with more than 1 parameter value?

    I have a Web service with a query as an array of String parameter.
    In an invoing xml, it should looks like:

    < GetPersonsData_Request >
    < application >
    < PersonIdList >
    < string 111 > < / string >
    < string > 222 < / string >
    < string > 333 < / string >
    ...
    < / PersonIdList >

    A problem I have:
    How can I assign a different value to this list?

    I posted the first element directly and then tried to add a new with append:
    < bpelx: Add >
    < bpelx: a > '12345' < / bpelx: go >
    < bpelx: to > $GetPersonsData_Request.parameters/ns2:request/ns5:PersonIdList < / bpelx: to >
    < / bpelx: Add >

    I get:
    < GetPersonsData_Request >
    < application >
    < PersonIdList >
    < string 111 > < / string >
    "12345".
    < / PersonIdList >
    < / request >

    Added as a single string, not as a structural element.

    What did I miss?

    I think that now your faced with a problem of namespaces because the element added is not the namespace of the element of the 'old' chain
    you don't have an element definition in your xsd that represents the element in your payoad?

    http://download.Oracle.com/docs/CD/E12483_01/integrate.1013/b28981/manipdoc.htm#CIHDGBGA
    http://oraclebpelindepth.blogspot.com/2008/09/arrays-in-bpel_21.html (search for bpelx: Add)

Maybe you are looking for

  • Impossible to use twitter all of a sudden using Firefox 17

    Normally, I use twitter without problem with Firefox. But now all of a sudden he log and takes me to the pages, but does not allow me to post tweets, respond to others, or retweet or close the session or send direct messages. So basically I can't do

  • Satellite L500D - missing drivers for Windows XP

    I apologize for my English, I'm Polish :) Hi I have a big problem, (I installed XP SP3 on PSLT0E L500D-149) and now, I can not find drivers for: -Bus system management controller-Video controller (ATI Radeon HD 3200) Not approached by my keyboard sho

  • drawing of points on an image

    Hello world. I hope that all do you well and happy new year. IM maltab program which calculates, for me, the CTC for a mix of light intensities. When I run matlab I get the list of 32 points of TDC. I managed to get the values from matlab to view lab

  • Adding the folder using XP Pro permissions

    I work as an entrepreneur at a doctor's office and add permissions to 2 folders.  When I go to the Security tab and try to add or the same view, I get a window asking for user name and pw.  The user name field has a menu drop-down and the only name i

  • Outgoing mail.

    Sent an attachment which is great. everytime I open windows mail it tyys tosend out mail box. I tried to delete but do not come up. Can someone tell how to get rid of him. Received no email for a week.