Perform the database in the web service REMAINS PUT

Hello.

We use the APEX 4.2.5 and ADR 2.0.9.

We want to create the web service that would insert data into the database.

Insertion of data, we use a long procedure.

Is it possible to call, use this procedure in the REST web service? As:

Select schema.procedure_name (: p_worker,: p_time,: p_line,: p_ip,: p_manner) twice;

Thank you.

Kind regards

Dejan

Hello.

Solved the problem with the procedure - that calls the procedure of apex REST.

Kind regards

Dejan

Tags: Database

Similar Questions

  • VIX file in the user interface designer receives the data from the Web service application that communicates with the SQL server database

    I created the Web service VI ("Mt-insolacije.vi"), which has two terminals of the input string (FROM / TO) for the dates of arrival and exit of two data terminals (table 1 d) from database (MS SQL server). This VI communicates with the database with functions of the database with a DSN and SQL query appropriate palette. There are two tables with two data (time and Insolation) columns in the database.

    This VI works when you run in Labview 2010, but when I used it as VI in UI Builder it returns no data.

    Could you please help me find a solution. Is it possible to communicate with the SQL server database in this way or there is another way?

    There are two files attachmet: Image of .vix file in Interface builder and .vi file ("Mt-insolacije.vi")

    Please help me ASAP!

    Thank you

    Ivan

    I found the solution problem is in the DSN. I've been using the user instead of DSN system DSN.

    It's important to create the system DSN if you want your VI of web service to communicate with the database.

    PS Please put feature bundle format timestamp and XY graph in the web user interface designer. It's complicated to trace data with datetime on X axis without them.

  • How a value is to consider the change of dblink to the web service?

    Implementation of SOA and OSB, how a value is to consider the change of dblink to the web service?

    Where I work, there are a large number of dblink between databases. Some dblinks are intended to be the way to load the immense amount of data while others exist only to simple queries.
    I wonder if it might be better to use web services as dblink. In principle, I think that simple queries may be suitable as a web service to improve reuse and governance but I find web service not apropriated for loads of data.
    Obviously, the decision is more complex that just think tecnology. Despite this, it will be useful to hear if there are people around the world think about change dblinks to web services the same load so heavy querys with a small amount of data to be trafficked and this as the principles, models or reasons behind this decision.
    Basically, we are implementing SOA and OSB and I'm looking for the best I can to rethink the way we used to do it so far. I heard from a friend of mine that we must avoid using dblinks and use only the web services. This seems strange to me because I wonder what level of overloading by the net, that we will face. Could someone give your personal opinion or propose an article? There are some pros and cons, formerly on this review?

    966355 wrote:
    My question is: wouldn't I tend to turn the worst of communication when I change the dblink in scenario 1 and even more terribly worse in scenario 2?

    Yes, this is a drawback... You can't get better performance by adding more load, unless you bring better infrastructure...

    One more detail: in scenario 1, there is a high probability to be reused by other systems.

    It is one of the beneficial results you have to weight against your disadvantages...

    In scenario 2, it is not reused, but we need to audit and traceability of the integrations like this.

    This scenario looks more like ETL integration... It's a bulk data loading, you can take a look at ODI - Oracle Data Integrator (ODI is also part of the Fusion Middleware)

    In my view, the main issue is to have systems so closely coupled... Systems get older, they get out of support, seller will declare a version is end-of-life, then you need to update. The system vendor has don't might not mind system B accesses its internal tables, but if they decide to change the internal database on the next version, they do... And then you're stuck with the vendor and version...

    I hope this helps...

    See you soon,.
    Vlad

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

  • APEX 4.2.3 consume the web service returning a PDF problem

    Using APEX 4.2.3 on a database of Oracle 11 g R2, Firefox 31.7, we ask a service web restful one before the process of page header, to download a PDF Code file used:

    declare

    CLOB l_clob;

    l_blob blob.

    l_sql_delimiter varchar2 (30);

    l_lang_context integer: = DBMS_LOB. DEFAULT_LANG_CTX;

    l_warning integer: = DBMS_LOB. WARN_INCONVERTIBLE_CHAR;

    l_dest_offset integer: = 1;

    l_source_offset integer: = 1;

    l_Json VARCHAR2 (4000);

    Start

    l_clob: = null;

    DBMS_LOB.CREATETEMPORARY (l_blob, true);

    -Generate here the content of your file in l_clob.

    hr_Pkg.Security_Termination_Form(:P4200_PERSON_HR_ID,l_Json);

    hr_Pkg.call_rest_webservice (l_Json, 'TestME.Pdf', l_Clob);

    Logger.log ('CLOB SIZE IN PAGE: ' | sys.) DBMS_LOB. GetLength (l_clob));

    sys. HTP.init;

    sys.owa_util.mime_header (' application/pdf', FALSE, 'UTF-8');

    sys. HTP.p ("Content-length: ' |") sys.DBMS_LOB.GetLength (l_clob));

    sys. HTP.p ('Content-Disposition: attachment; filename = "TestME.Pdf" ');

    sys.owa_util.http_header_close;

    () DBMS_LOB.converttoblob

    dest_lob = > l_blob,

    src_clob = > l_clob,

    amount = > DBMS_LOB. LOBMAXSIZE,

    dest_offset = > l_dest_offset,

    offset = > l_source_offset,

    blob_csid = > DBMS_LOB. DEFAULT_CSID,

    lang_context = > l_lang_context,

    WARNING = > l_warning

    );

    Logger.log ("SIZE of BLOB: ' |") sys. DBMS_LOB. GetLength (l_blob));

    sys.wpg_docload.download_file (l_blob);

    apex_application.stop_apex_engine;

    exception when others then

    sys. HTP. PRN (' error: ' |) SQLERRM);

    apex_application.stop_apex_engine;

    end;

    We run in the question, that the PDF file is empty with the exception of a few fill-able fields that must be completed in advance by the call to the web service.

    When you run the web service directly from the browser, the PDF that is generated is very well and seems to be complete. And the size of the file that is created as the clob from the web service call is exactly the same size it as the pdf file received directly from the web service.

    When we compare the size of the clob to the size of the blob, we see that the blob is slightly larger in size than the clob.

    Any suggestions? (Sample code for posting to the hosted site for Oracle will not work because you can not call the hosted instance web services and web service is hosted BEHIND our firewall).

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

    Problem is resolved... As opposed to the use of the APEX apex_web_service.make_rest_request must use the utl_http.begin_request and then treats the query returned through utl_http. READ_RAW and who then saving it in a temporary BLOB.

    Maybe when we update to the APEX 5, I'll see if I can deal with it using standard APEX packages...

    Thank you

    Tony Miller
    Software LuvMuffin
    Salt Lake City, UT

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

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

  • Specific VirtualMachine counters through the Web Services SDK

    Hello

    I'm developing a monitorapp in c# with the web services SDK.

    I am able to get a list of all the performance with the PerformanceManager counters.

    ObjectContent [oCont] is getPropertyContent ("PerformanceManager", "perfCounter", _serviceContent.perfManager);.

    I ask this directly to an ESX 4.

    The answer I'll be of return contains all of the available counters, but there is no division between the host and the virtual-counter Machine.

    For example, cpu.utilization is available for the host and not a VM.

    Is it possible to know somehow what counters are specific to vm?

    I am able to get object references managed virtual machines if that's any help...

    Thanks in advance!

    Glenn

    Hi Glenn,.

    The property "perfCounter" PerformanceManager fetch all of the counters that are available in the host or vCenter. It provides no mechanism to filter counters. In order to obtain the available counters specific to a managed entity (VM, host, etc.) you must use the QueryAvailablePerfMetric method. Calling this method against MOR of the virtual machine, you will get all the ID counter for this virtual machine.

    http://www.VMware.com/support/developer/VC-SDK/visdk41pubs/ApiReference/Vim.PerformanceManager.html#queryAvailableMetric

    I hope this helps!

    Neha

  • TimeoutException - during the web service method call that opens a PDF file

    I am updating a legacy program that uses Adobe Acrobat Professional 7.0.  The idea is that the customer is calling web service methods, which manage open a PDF file, reading or writing in the PDF file, if necessary and closing.  He then returned data (if reading) to the client.

    The only problem with what I'm having is that the client will take a break for about 60 seconds and raise a TimeoutException.

    I know that the method on the end of web services works, because I wrote a quick driver who calls the same method, but it is running normally and works perfectly.

    My question is, basically, what would cause the client to be block/gel during the call to the web service method to perform this operation? Everything works on my workstation, and I've debugged to see that filename passed is the same in both tests.

    Thank you!

    This would be better addressed in the forum of the Acrobat SDK kit.

  • Validation prior to submitting the data to the web service

    HI guys,.

    I need your help because I use Adobe LiveCycle Designer 8.2 in desiging an electronic form in offline mode, which takes the user data and insert it into a database using a WSDL for the web service on the server. I now had the button on which to run the web service method parameters are related to certain fields, but I need to validate these field at the time of the application?

    So I tried to write the validation script in the handler preExec, but if this right I need to know how to cancel the preExec execute event?

    And if it's not just please help me otherwise

    Thank you.

    Osama

    To cancel the event (submit it in this case), you would use xfa.event.cancelAction = true;

    This was added in version 8, I believe so if you are using a Reader/Acrobat earlier that this will not work.

    You could have your hidden real submit button and expose a normal button to the user for the presentation. This would allow you to write code on the normal button to check your postings and if they work out then you would hit the Send button programmatically:

    buttonName.execEvent ("click")

    Hope that helps

    Paul

  • Pass the credentials to the web service

    I have a form that will be sent to some people to be filled.
    This form uses web services to load or save the information in the database.
    The problem I have is that whenever you call the web service request identification information.

    There is a way to indicate the user name and password in the form (without javascript?)

    Thank you.

    There is security on the web service to fix... . If you hard code a user name and password it defeats the purpose of security. For this reason, there is no provision for this on the interfaces. Why not disable security on web service if you do not want to see the guests?

    Paul

  • Problem running the report with the Web Service and BI Publisher

    Hello

    In fact, I'm trying to run a report of Bi Publisher via the Web Service.
    I use the following documents:
    -http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/bip_webservice_101331.htm
    -"How to integrate Oracle BI Publisher via Web Services in the form of Oracke.

    Everything works fine. But when I try to copy the file on the local computer is 0 length. I use the method of "getReportBytes".
    Here's the code I tried with:

    String userName = "Administrator";
    String password = "Administrator";

    System.out.println ("calling" + myPort.getEndpoint ());
    System.out.println (myPort.validateLogin (username, Password));

    ReportRequest repReq = new ReportRequest();
    RepRes ReportResponse = new ReportResponse();

    repReq.setAttributeFormat ("pdf");
    repReq.setAttributeLocale("en-US");
    repReq.setAttributeTemplate ("sales world");
    repReq.setReportAbsolutePath ("/ Sales Manager/World Sales/World Sales.xdo");

    repRes = myPort.runReport (repReq, userName, passWord);
    System.out.println (repRes.getReportContentType ());

    Byte [] binaryBytes = repRes.getReportBytes ();
    OutputStream out = new FileOutputStream ("D:
    out.pdf");
    out. Write (binaryBytes);
    out. Close();
    System.out.println ("success for performance report');

    Thanks in advance.

    Hello

    I assume you are using 10.1.3.4. Otherwise, my index is not relevant to you...

    There is a new parameter in the web service API to set the size of the segment. HéLas is by default not so, the behavior is as in versions (not size segment... the entire document at once). If you set the size of segment-1, you should get your document. So, try adding
    repRequest.setSizeOfDataChunkDownload(-1);

    concerning
    Rainer

  • How can I fnd my claim code and the reprint of the web services information sheet

    Hi, I have a HP Deskjet 3520 and try to put in place the eprint.  I read the suggestions on the forum and the FAQ but I can't locate the web services information sheet I need to reprint for claim code.

    Could not find anything under Printer Control Panel either. Please advise!

    Thank you!!

    Hi Chris88,

    Welcome to the HP Support forums.  I appreciate that you try to configure the ePrint on your Deskjet 3520 printer feature.

    If you have the inkjet printer Deskjet 3520 with a C8994 product number this printer does not have the ePrint service.  The Deskjet 3520 printer only has USB connection and ePrint to function the printer must have an independent internet connection through a wireless or a wired ethernet network.  I've included the specifications of the printer for your reference.

    If you have the e-all-in-one printer Deskjet 3520 then we obtain the claim code.  You can request the information sheet of web services from the front panel of the printer, and there the claim code printed in blue. Instructions on how to get it can be found in the section titled "to print a document using ePrint' in your on page 15 user's guide.  Please follow the instructions in step 1.

    HP Deskjet 3520 inkjet printer specifications

    User's Guide e-All-in-One Series HP Deskjet 3520

  • Impossible to activate the web services photosmart7515

    On the web services on my printer I get

    e-mail connection error

    ePrint connection error

    Web services connection error

    What can I do?

    Hi Catjoy36,

    Thanks for the reply.  It seems that we have to take steps more.  Follow the steps below, and once you complete the steps, then you can follow the steps above.

    1. go in the front panel of your printer.

    2. Select the icon wireless on your printer.

    3. Select settings.

    4. highlight and select restore default network settings.

    5. click OK to restore default values.

    6. now, select Wireless and go through the wireless configuration wizard.

    Let me know how it goes.

  • Unable to connect to the web services server

    Unable to connect to the web services server.  It is a common error that you might see if you try to enable web services.  If you receive this message, try the following steps.

    For Officejet printers

    1. open the internet browser type printer IP address.

    2 should bring you to the status of the printer page.

    3. Select the tab network at the top.

    4. left side select IPv4 under wireless.

    5. under DNS address Configuration select manual DNS server.

    6. for favorite enter 8.8.8.8

    7. for alternate enter 8.8.4.4

    8. Select apply. You can get a warning saying that this could break the connection which is very good.

    9. turn the printer off for about 30 seconds and then try to enable web services.

    For Photosmart printers

    1. Enter the printer's IP address in a browser.

    2 Select the network at the top of the page.

    3. on the left, select network.

    4. Select Network (IP) address

    5. select manual DNS server

    a. manual Preferred DNS should read 8.8.8.8

    b. alternate DNS server should read. 8.8.4.4

    6. Select apply you could get a fair warning select OK

    I hope this helps!

Maybe you are looking for

  • I'm moving from PC to iMac. I think that I have brought successfully my profile. My work id of addressbook, but no mail received file is obvious.

    I'm moving from PC to iMac. I think that I have brought successfully my profile. My work id of addressbook, but no mail received file is obvious. The Mail subfolder in the profile of 'new' - "Mail" - is about the same size - 1.6 GB - as it was on the

  • Sensor screen Droid Ultra

    Other Ultra users having a problem with their dark screen was an active call? What happened to almost every make/receive call. I took the case off and performed a soft reset.

  • opening a computer laptop dv7-3080us

    I have a Pavilion laptop dv7-3080us.  I need to open the hard drive bays to install a new drive.  I also need to open the whole, to blow clean the fans, that the unit is prone to overheating, these days. The problems are: (1) when I try to open the B

  • DVD not recognized writers more - please help!

    I have a Dell Studio 1555 laptop that came with a DVD - RW drive. A year ago, my husband did a single DVD for a few friends, using the Windows DVD Maker program. It worked! Unfortunately, it worked only once. The next time we tried, the DVD - RW driv

  • How can I make an exe. ?

    My girlfriend downloaded by mistake MY company files on his computer at home bosses. I was hoping that there was a wizard or a gadget to create an executable on a zip that could: collect these files; erase them; Wait for automatic backup restore and