Secure RestFul WebService call with basic authorization via https

Hello

is it possible to call a secure RestFul WebService with basic authorization via https to APEX?

Database: Oracle 11g XE
APEX: 4.2.1

I have a solution by calling the Java Web service, which was called from the database via a scheduled task (run).

As my hosting partner does not support Java, I'm looking for another option.

Concerning
Markus

Hello

Oracle XE can USE a wallet with utl_http without problem. Just create a portfolio from a version supporting the creation of the portfolio and copy this portfolio to your XE machine and use it. It really works.

---
Lavenu
MaxApex accommodation
http://www.maxapex.com

Published by: Richard on January 23, 2013 23:32

Tags: Database

Similar Questions

  • POST REST webservice call

    Hello

    I'm new to web services. I created a POST web service using the REST in APEX, which accepts 3 data variables and inserts them into a table.

    I don't know how to call this web service through java script POST to test works. My main question is how to send data to the web service POST.

    Hi Ally_p,

    Ally_p wrote:

    I'm new to web services. I created a POST web service using the REST in APEX, which accepts 3 data variables and inserts them into a table.

    I don't know how to call this web service through java script POST to test works. My main question is how to send data to the web service POST.

    Check out the following OBE tutorial: Creating and Using RESTful Web Service on-demand Express 5.0

    The illustrated tutorial how to create type GET/POST to web services in Oracle APEX 5.0, but unfortunately it gives example only how to consume GET kind of RESTful Services.

    For example how to use POST type of RESTful Web Service in Oracle APEX consult: https://www.youtube.com/watch?v=QnNtrxNlRgw

    Kind regards

    Kiran

  • Error when, with audio streaming via HTTP to the Simulator

    I use JDE 4.7 and 8900 Simulator.  I'm trying to listen to an MP3 via http to a blackberry app.  When you use the BufferedPlayBack example screen, I get the following error when the data source is trying to open the connection - "net.rim.device.cldc.io.dns.DNSException: error trying to solve.

    When I enter the same URL in the BlackBerry browser on the Simulator, I get the following error: "the selected server returned an error when you try to respond to your request.

    When I enter the same URL in my web browser in my PC, I am able to stream audio and play with QuickTime.

    Why I get this DNSException on the BB and not on my local PC?  The web engine runs also locally.  I know that the BB Simulator does not support rstp.  The Simulator also not does support streaming over http?

    This is the URL I used:

    http://myLocalMachine:8080/myMusic/anAudio.MP3;deviceside=true

    Thanks in advance!

    T

    I found a solution to the question in the thread below.  I increased the connection. MaxNumberOfKBytesToSend = 10240 in the... File MDS\config\rimpublic. Property and so was able to sucessfully stream mp3 to my request.

    http://supportforums.BlackBerry.com/T5/Java-development/increase-MDS-CS-limit-on-http-download-size/...

  • QNetworkRequest Basic authorization

    Hello

    I'm trying to REST the call with the base permission

      // Creates the network request and sets the destination URL.
        QNetworkRequest request = QNetworkRequest(QUrl(strURL));
        request.setRawHeader("Content-Type", "application/x-www-form-urlencoded");
        request.setRawHeader("Accept", "application/vnd.cpc.track+xml");
        request.setRawHeader("Accept-language", "en-CA");
        QString credential = QString(strCredential);
        QByteArray data = credential.toLocal8Bit().toBase64();
        QString authHeader = "Basic " + data;
        qDebug() << "Sending credential : " << authHeader;
        request.setRawHeader("Authorization", authHeader.toLocal8Bit());
    

    I tried to do that, but receive an unknown error. So when I use the customer remains to test the web call, it works, even when I tried to use the .NET code, it works too, I tried to send again the B64 .NET a coded BB10, string still does not work

                    HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
                    request.Method = method;
    
                    // Set Basic Authentication Header using username and password variables
                    string auth = "Basic " + Convert.ToBase64String(Encoding.Default.GetBytes(username + ":" + password));
                    request.Headers = new WebHeaderCollection();
                    request.Headers.Add("Authorization", auth);
                    request.Headers.Add("Accept-Language", "en-CA");
    

    Yes, it's useless, but I think still does not work at ios_developer, or?

    EDIT

    OK, I tested my example ios_developer here

    http://test.webdav.org/auth-basic/
    

    and works perfectly . Are you sure you don't have any error in the code?

  • How to call the REST Webservices via native J2ME app.

    Hi, can someone help me how to call REST Webservices via native J2ME app. I don't want to use the HTTP request. Is there a possible way to call via AJAX, if so how? I use only the RIM and the J2ME API. Thank you, joy

    JSON is just the format fo the data returned.  So all you do is make a standard HTTP call, get the data and analyze using JSON.  OS 6.0 includes JSON, but OS 5.0 doesn't work, then you will need to get a JSON library if you want to use in the 5.0 OS.

    You might find them useful:

    http://supportforums.BlackBerry.com/T5/Java-development/JSON-library/m-p/573687

    http://supportforums.BlackBerry.com/T5/Java-development/sample-code-implementing-JSON-in-your-applic...

  • Via HTTPS Web service call

    Hi all

    I use Weblogic 9.2 with the default configuration of the keystore & SSL. The Web service client is generated using the 'Clientgen' Ant task, I can invoke Web service using http without problems, but when you use https, it is always rejected, basically I know not what system for the customer properties, here is my last desperate attempt:
    System.setProperty("weblogic.webservice.verbose", "true");
    System.setProperty("java.protocol.handler.pkgs", "weblogic.net");
    System.setProperty("weblogic.security.SSL.trustedCAKeyStore", "config/DemoIdentity.jks");
    System.setProperty("weblogic.security.SSL.ignoreHostnameVerification", "true");
    System.setProperty("weblogic.security.SSL.TrustKeyStore", "DemoTrust");
    System.setProperty("weblogic.webservice.client.ssl.strictcertchecking", "false");
    System.setProperty("ssl.debug", "true");
    
    PaymentGateway service = new PaymentGateway_Impl();
    PaymentGatewayPort port = service.getPaymentGatewayPort();
    Stub.class.cast(port)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "https://192.168.56.3:7002/ws/PaymentGateway?WSDL");
    Stub.class.cast(port)._setProperty(Stub.USERNAME_PROPERTY, "weblogic");
    Stub.class.cast(port)._setProperty(Stub.PASSWORD_PROPERTY, "weblogic");
    
    ISODocument isoDoc = new ISODocument();
    isoDoc.setMti(new Integer(200));
    port.balanceInquery(isoDoc);
    And here is the exception that is thrown in the client:
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: SSL license found
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Not in server, Certicom SSL license found
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Ignoring not supported JCE Mac: SunJCE version 1.5 for algorithm HmacSHA1
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Will use default Mac for algorithm HmacSHA1
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Ignoring not supported JCE Mac: SunJCE version 1.5 for algorithm HmacMD5
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Will use default Mac for algorithm HmacMD5
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Ignoring not supported JCE KeyAgreement: SunJCE version 1.5 for algorithm DiffieHellman
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Will use default KeyAgreement for algorithm DiffieHellman
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Will use default KeyAgreement for algorithm ECDH
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Using JCE Cipher: SunJCE version 1.5 for algorithm DESede/CBC/NoPadding
    Apr 16, 2010 8:18:14 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Using JCE Cipher: SunJCE version 1.5 for algorithm DES/CBC/NoPadding
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Using JCE Cipher: SunJCE version 1.5 for algorithm AES/CBC/NoPadding
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Using JCE Cipher: SunJCE version 1.5 for algorithm RC4
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Using JCE Cipher: SunJCE version 1.5 for algorithm RSA
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Using JCE Cipher: SunJCE version 1.5 for algorithm RSA/ECB/NoPadding
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: SSL Session TTL :90000
    <!-------------------- REQUEST FROM CLIENT ---------------->
    URL        :  https://192.168.56.3:7002/ws/PaymentGateway?WSDL
    Headers    :
      Authorization: [Basic d2VibG9naWM6d2VibG9naWM=]
      SOAPAction: [""]
      Content-Type: [text/xml]
    
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><env:Header></env:Header><env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><m:balanceInquery xmlns:m="http://www.telkomsel.com/PaymentGateway"><iSODocument xmlns:n1="java:com.visitek.pgi.models" xsi:type="n1:ISODocument"><amount xsi:nil="true"></amount><audit_number href="#ID_2"></audit_number><bank_code xsi:type="xsd:string">000151</bank_code><currency_code href="#ID_2"></currency_code><data href="#ID_2"></data><encrypted_pin href="#ID_2"></encrypted_pin><expiration_date href="#ID_2"></expiration_date><institution_code href="#ID_2"></institution_code><institution_data xsi:type="xsd:string">62812006002616</institution_data><local_tracking_id xsi:type="xsd:string">080722163229082127.0.0.1:9595</local_tracking_id><mti xsi:type="xsd:int">200</mti><network_information_code xsi:type="xsd:short">0</network_information_code><original_data_element href="#ID_2"></original_data_element><pan_null_true xsi:type="xsd:string">yes</pan_null_true><pos_entry href="#ID_2"></pos_entry><primary_acc_number xsi:nil="true"></primary_acc_number><response_code href="#ID_2"></response_code><response_terminal_number href="#ID_2"></response_terminal_number><service_code xsi:type="xsd:int">6016</service_code><settlement_date href="#ID_2"></settlement_date><terminal_number href="#ID_2"></terminal_number><transaction_code xsi:type="xsd:int">380000</transaction_code><transaction_data href="#ID_2"></transaction_data><transaction_date href="#ID_2"></transaction_date><transaction_sequence href="#ID_2"></transaction_sequence><transaction_time href="#ID_2"></transaction_time><transaction_timestamp href="#ID_2"></transaction_timestamp></iSODocument></m:balanceInquery><xsd:string xsi:type="xsd:string" id="ID_2"></xsd:string></env:Body></env:Envelope>
    <!-------------------- END REQUEST FROM CLIENT ------------>
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Trusted CA keystore: config/DemoIdentity.jks
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Filtering JSSE SSLSocket
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: SSLIOContextTable.addContext(ctx): 24864323
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: SSLSocket will NOT be Muxing
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: write SSL_20_RECORD
    Apr 16, 2010 8:18:15 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: isMuxerActivated: false
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: 25567987 SSL3/TLS MAC
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: 25567987 received HANDSHAKE
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: HANDSHAKEMESSAGE: ServerHello
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: isMuxerActivated: false
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: 25567987 SSL3/TLS MAC
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: 25567987 received HANDSHAKE
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: HANDSHAKEMESSAGE: Certificate
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Cannot complete the certificate chain: No trusted cert found
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: Validating certificate 0 in the chain: Serial number: -151503846264256045339669576782538934945
    Issuer:C=US, ST=MyState, L=MyTown, O=MyOrganization, OU=FOR TESTING ONLY, CN=CertGenCAB
    Subject:C=US, ST=MyState, L=MyTown, O=MyOrganization, OU=FOR TESTING ONLY, CN=paymentd
    Not Valid Before:Wed Mar 12 15:39:27 GMT+07:00 2008
    Not Valid After:Mon Mar 13 15:39:27 GMT+07:00 2023
    Signature Algorithm:MD5withRSA
    
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE: validationCallback: validateErr = 16
    Apr 16, 2010 8:18:16 PM weblogic.diagnostics.debug.DebugLogger debug
    FINE:   cert[0] = Serial number: -151503846264256045339669576782538934945
    Issuer:C=US, ST=MyState, L=MyTown, O=MyOrganization, OU=FOR TESTING ONLY, CN=CertGenCAB
    Subject:C=US, ST=MyState, L=MyTown, O=MyOrganization, OU=FOR TESTING ONLY, CN=paymentd
    Not Valid Before:Wed Mar 12 15:39:27 GMT+07:00 2008
    Not Valid After:Mon Mar 13 15:39:27 GMT+07:00 2023
    Signature Algorithm:MD5withRSA
    
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Warning> <Security> <BEA-090542> <Certificate chain received from 192.168.56.3 - 192.168.56.3 was not trusted causing SSL handshake failure. Check the certificate chain to determine if it should be trusted or not. If it should be trusted, then update the client trusted CA configuration to trust the CA certificate that signed the peer certificate chain. If you are connecting to a WLS server that is using demo certificates (the default WLS server behavior), and you want this client to trust demo certificates, then specify -Dweblogic.security.TrustKeyStore=DemoTrust on the command line for this client.> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <Validation error = 16> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <Certificate chain is untrusted> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <SSLTrustValidator returns: 16> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <Trust status (16):  CERT_CHAIN_UNTRUSTED> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <NEW ALERT with Severity: FATAL, Type: 42
    java.lang.Exception: New alert stack
         at com.certicom.tls.record.alert.Alert.<init>(Unknown Source)
         at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown Source)
         at com.certicom.tls.record.handshake.ClientStateReceivedServerHello.handle(Unknown Source)
         at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown Source)
         at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown Source)
         at com.certicom.tls.record.MessageInterpreter.interpretContent(Unknown Source)
         at com.certicom.tls.record.MessageInterpreter.decryptMessage(Unknown Source)
         at com.certicom.tls.record.ReadHandler.processRecord(Unknown Source)
         at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
         at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown Source)
         at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown Source)
         at com.certicom.tls.record.WriteHandler.write(Unknown Source)
         at com.certicom.io.OutputSSLIOStreamWrapper.write(Unknown Source)
         at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
         at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
         at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
         at weblogic.net.http.HttpURLConnection.writeRequests(HttpURLConnection.java:153)
         at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:367)
         at weblogic.net.http.SOAPHttpsURLConnection.getInputStream(SOAPHttpsURLConnection.java:37)
         at weblogic.net.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:705)
         at java.net.URLConnection.getContentType(URLConnection.java:479)
         at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Http11ClientBinding.java:230)
         at weblogic.webservice.core.handler.ClientHandler.handleResponse(ClientHandler.java:64)
         at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:238)
         at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:246)
         at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:147)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:473)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:459)
         at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:306)
         at com.visitek.pgi.client.PaymentGatewayPort_Stub.balanceInquery(PaymentGatewayPort_Stub.java:48)
         at com.visitek.test.pg.TestPGWebservice.testWebserviceSSLInvocation(TestPGWebservice.java:70)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at junit.framework.TestCase.runTest(TestCase.java:164)
         at junit.framework.TestCase.runBare(TestCase.java:130)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:120)
         at junit.framework.TestSuite.runTest(TestSuite.java:230)
         at junit.framework.TestSuite.run(TestSuite.java:225)
         at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    >
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <write ALERT, offset = 0, length = 2> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <close(): 19097823> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <19097823 read(offset=0, length=8192)> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <19097823 read returns -1> 
    <!-------------------- RESPONSE TO CLIENT --------------->
    URL           : https://192.168.56.3:7002/ws/PaymentGateway?WSDL
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <19097823 read(offset=0, length=8192)> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <19097823 read returns -1> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <19097823 read(offset=0, length=8192)> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Debug> <SecuritySSL> <000000> <19097823 read returns -1> 
    <Apr 16, 2010 8:18:16 PM GMT+07:00> <Info> <WebService> <BEA-220025> <Handler weblogic.webservice.core.handler.ClientHandler threw an exception from its handleResponse method. The exception was:
    javax.xml.rpc.JAXRPCException: java.io.EOFException: Response contained no data.> 
    I'm completely extraneous to this thing HTTPS & SSL & I googled around only to find partial responses. My plan is to use a custom identity, but I first want to make sure that the use of the default work.

    Any help would be greatly appreciated.


    Kind regards

    Setya

    Hello

    To call your web service via the SSL protocol, the simplest is to use only the following code snippet:
    You used the threshold:
    System.setProperty ("weblogic.security.SSL.trustedCAKeyStore", "* config/DemoIdentity.jks" *);

    instead of DemoIdentity.jks, you provide the full path and the file name of the DemoTrust.jks file as below:

    System.setProperty ("weblogic.security.SSL.trustedCAKeyStore", "* D:/wls103/wlserver_10.3/server/lib/DemoTrust.jks*");

    Hope this will solve the problem.

    Thank you
    Sandeep

  • RESTful Webservice - Page not found

    Using web services in the SQL Studio wizard, I created a simple Restful web service with a query GET the resource Type of media. The SQL statement Gets the mime_type and a blob value in a table via a parameter ID. The code works fine in my standalone environment (apex 4.2 listener 2.1) but on the cloud, when I bind the variable: ID and press the test button, it always returns "Page not found". Even when I call the ws via APEX_WEB_SERVICE. MAKE_REST_REQUEST, it returns, "Page not found".

    The test screen creates the following URL: https://database-xxxxxx.us1.oraclecloudapps.com/apex/export/get/1

    If I run the present in the browser, it also returns "Page not found". By looking at the URL, it seems wrong. Usually, the workspace is also a part of the url (after the/apex/piece). Here it is absent. However, even when I add, the error is "Page not found". I checked that the workspace has enabled Restful web services and I connect with the admin user who has all three SQL Dev granted permissions.

    Anyone seen this before? I have I have some missing permission or something wrong?

    Thank you

    Steve

    Hi Steve,.

    + > The code works fine in my standalone environment (apex 4.2 listener 2.1) +.
    Just to clarify things, which I assume is the version that you have installed locally, Oracle Application Express Listener 2.0.1 is the latest available listener and is running on the cloud. Oracle Application listener 2.0 adds support for connecting to multiple databases and includes support for a number of different strategies for routing requests to the appropriate database, each of which is described in the earphone Installation and Configuration Guide (see http://docs.oracle.com/cd/E37099_01/doc/doc.20/e25066/config.htm#CBDCHGDF). All the strategies are based on the review of the request URI and choose the database based on some sort of football game against the URL and according to the chosen strategy, the URL will be different.

    + >... when I bind the variable: ID and press the test button, it always returns "Page not found"... The test screen creates the following URL: https://database-xxxxxx.us1.oraclecloudapps.com/apex/export/get/1+
    To help identify the cause of the error you see, could you please confirm if the following details correspond to your RESTful service:

    * URI model: get / {id}
    * Resource Manager method: GET
    * Type of resource manager Source: Media resources
    * Requires secure access: No.
    * Source (corresponding to the following syntax): select mime_type, tbl_nameSET from table_name where none =: id

    NOTE: If you define a variable binding for a parameter, then the 'Set Bind Variables' option should be used instead of 'Test '.

    + > Usually, the workspace is also a part of the url (after the/apex/piece). +
    In your local environment, requests are routed through the prefix setting of path to the URL of the RESTful Service (see http://docs.oracle.com/cd/E37099_01/doc/doc.20/e25066/config.htm#CBDJIEGH). On your local instance, navigate to Administration > manage, set preferences for Workspace, and in the region for SQL Workshop, you will find the item Path Prefix. The default access path prefix is the short name of the workspace, which is what you see in your URL locally. However, another method of routing is used on the cloud, then you will not see the path of the prefix used it.

    Could you test the "oracle.example.hr" sample RESTful Service in your workspace and let me know if you encounter any problems by running one of the examples?

    Kind regards
    Hilary

  • Secure Web Service call

    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - production
    PL/SQL Release 10.2.0.2.0 - Production

    Hello
    Is it possible to contact a secure Web service (ws-security) with pl/sql code?
    I can communicate with a https without problem, but I don't see how I can do for the ws-security header.

    Thanks in advance.

    Unfortunately, WS-Security is not supported with the Oracle DBWS utility legend, right now. However, we have a very high improvement gravity request filed for this internallt - so it's probably in one of the upcoming releases soon.

    In the meantime, you may want to consider going back to using UTL_HTTP for it where you can create your own custom SOAP (WS-Security headers in this case) headers-, but keep in mind that UTL_HTTP can be used with types only very basic of Web Services with simple data types, methods, etc. Another and a better solution would be to have a 'bridge' Web Service (via the SSL protocol, perhaps) who speaks to your main Web Service using WS-Security. This WS bridge can then be invoked by your database using the utility DBWS legend.

    HTH,
    Yogesh

  • File extension registry BB10 to call with your app

    Hi guys,.

    I've read enough about Invoke framework but I didn't know how yo to register your application to call with any file extension.

    How to do this?

    I mean, I want to leave BB10 users to open files ".xyz" with my about how to do? How to allow other developers to know my application can handle .xyz files?

    It was mentioned to JAM that RIM will host a page where patterns of basic applications are defined so that allow third parties to display their application interfaces. I don't think that has been done yet.

  • The Post of Restful Webservice method using

    Hi all

    I use jdev 12.1.3

    I'm new to the MAF.

    I want to use the Post of Restful webservice to MAF method. I have a variable defined in the service binding Restful web and if I use it with a HTTP client works not very well.

    Please let me know how to use the Post of service Restful MAF method.

    I made a data control to the Get method with json respose. Can I use the same data control with a different method for the position.

    Kind regards

    KP

    It depends on what awaits your REST webservice as input.

    You can try passing param1 = 123 & param2 = abc & param3 = load useful s bat

    The first feature film in references of function in the file application.xml - MAF is displayed by default.

  • REST api call for the properties of the object in the html bridge provides resource not found (404) error.

    Hello

    I added a bridge Html summary view to our existing plugin (which is in Flex). The html page is displayed in the Summary tab with static data like images and titles. But the .gestJSON of the REST api call fails with the error ' could not load resources: the server responded with a 404 (Not Found) status.

    I followed the bridge Html sample chassisB (chassis - summary.js and html) to create the new page.

    Web.XML of the user interface of the plugin is configured to map/rest / *. bean dataAccessController is defined in the bundle context.

    Java package has the DataAccessController same class as the DataAccessController chassisB class

    This is the URL that I see in the javascript debugger and call API is a failure for this url.  There is no error in the virgo.log.

    https:// /vsphere-client/webui_ui_ns/rest/data/properties/323de5b9-4D2E-4dd7-ae32-98277dd44e90%252Fmf8k-h38?properties=name,model,version < vcenter ip >

    webui_ui_ns-client/vSphere is the value of Web-ContextPath in the plugin MANIFESTO. MF

    I spent a lot of time to understand the issue, but no luck. What I'm doing wrong here? Any help is appreciated.

    version of vCenter server appliance 6.0.0

    SDK - vSphere SDK Web 5.5.0

    1.7.0_79 64-bit JDK

    Thank you

    Deepa

    It was a configuration problem. I missed the tag in the bundle context of spring.

    After you add the 2 lines, it worked.

    Thanks for your time.

  • OneWay webservice called synchrnously instead of asynchronously

    Hello

    I have a webservice and BPEL processes deployed on the server of SOA. The Webservice is a POJO method annotated with @Oneway. BPEL process is webservice call. I noticed that the BPEL is waiting for the webservice finish before proceeding to next process/activity in the BPEL.

    Given that the operation was called as oneway, I expected the BPEL process to invoke the process and continue with other activities without waiting for the webservice finish. Isn't he supposed to submit the application and move forward with other activities without waiting for the Web service call ends?

    Here is the excerpt of the Audit trails which shows that the BPEL process waited 5 minutes before scoring the invocation as complete:

    invokeSlowResponder
    April 12, 2013 * 11: 37:01 * PM Started invocation of the operation "testSleep" the partner "SlowResponder".
    April 12, 2013 * 11: 42:01 * PM Invoked 1 channel operation "testSleep" the partner "SlowResponder".
    payload of <>
    < invokeSlowResponder_testSleep_InputVariable >
    < name of part = 'Settings' >
    < testSleep >
    < > 300000 arg0 < / arg0 >
    < / testSleep >
    < / part >
    < / invokeSlowResponder_testSleep_InputVariable >

    Why the BPEL process waits until the Web service process is completed in a Oneway operation?

    With the help of 11G (11.1.1.6), Weblogic 10.3.6.0

    Thanks in advance,
    Khalil

    Hi khadija.

    We are facing a similar problem here on my business.

    Please, take a look at Metalink note @ONEWAY Web Service method does not immediately return [1500032.1 ID].

    There is a patch for Weblogic server:

    Patch 14644893: SU [JJ1I] Patch: ONEWAY WS METHOD DOES NOT RETURN DIRECTLY

    We have yet to test this patch, but I hope that this information can be useful for you.

    Kind regards

    Luis Fernando Heckler

  • How the webservice call (two way ssl) from a composite?

    How the webservice call (two way ssl) from a composite? What configuration of weblogic, I put?

    Problem with one of the managed server while activating SSL. _ issue Resovled

    Certificate is not correct according to standarad for its use.

    Kind regards
    Anuj

  • Web Service - Call with URL and SOAP in return?

    Hello

    Is it possible to call a WebService for Coldfusion with a URL like http://site/component.CFC?method=doSomething & parm = 1 and send the response returned as SOAP? Seems that I get a response from wddx when I do it this way. I know that I can create a web service object and call from Coldfusion, which is really nice because we can use the SOAP response as a query object. Is it possible to do this "invocation" from a http call?

    Thank you!

    I used this approach for interacting with SWC to an Ajax call on the client, return JSON or XML of the CFC, but don't think that this approach would be ideal to return a SOAP response.

    Technically, you can use this method to return a SOAP response, however, this means that your method of CFCS should generate and return the XML SOAP itself. CF automatically will do that for you as it does when you call a CFC as a Web Service.

    You can call a web service to CFHTTP, but I think it's a lot more work than using CFINVOKE. There is a post of nice blog on this approach:

    http://www.jamesnetherton.com/blog/2007/01/14/invoking-a-WebService-using-cfhttp/

  • WebService call ends in error check during after decoding (after update to Flex builder 3 /Flex builder 2.01 hotfix 3)

    Hi all

    I would like to ask if anyone has ever get or hear about this error (or can help me to discuss how would be the best way to fix it). Also, please note that the error occure didn t when I used Flexbuilder 2.01 Hotfix 2 and Flashplayer 9.0.47.

    The error occurred just to myapp when I make a Web service call what response message includes a parameter array.
    There is a work around in the WSDL of the parameters definition, cause the WSDL contains at this place a tag < choice >, which is only partially supported by FLEX. Workaround for this is to use an own wsdl for the flex client where it including tags using attributes minOccurs = "0" maxOccurs = "1".

    The console window of FB3 Watch (under some entries of hundreds of battery), the following error:
    VerifyError: Error #1068: iwp.myapp.searchform.MySearchForm and iwp.myapp.searchform.MySearchForm cannot be reconciled.

    at iwp.myapp.searchform::MySearchForm/getSearchFormResultHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    to mx.rpc::AbstractOperation / http://www.adobe.com/2006/flex/mx/internal:dispatchRpcEvent () [E:\dev\flex\sdk\frameworks\ projects\rpc\src\mx\rpc\AbstractOperation.as:196 ]
    to mx.rpc::AbstractInvoker / http://www.adobe.com/2006/flex/mx/internal:resultHandler () [E:\dev\flex\sdk\frameworks\pro jects\rpc\src\mx\rpc\AbstractInvoker.as:198 ]
    at mx.rpc::Responder/result() [E:\dev\flex\sdk\frameworks\projects\rpc\src\mx\rpc\Responder.a s:48]
    at mx.rpc::AsyncRequest/acknowledge() [E:\dev\flex\sdk\frameworks\projects\rpc\src\mx\rpc\Asy ncRequest.as:81]
    to DirectHTTPMessageResponder / completeHandler ([E:\dev\flex\sdk\frameworks\projects\rpc\src\ mx\messaging\channels\DirectHTTPChannel.as:387])
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()


    I really appreciated if somone could help me with this or have any idea how I can go on.
    (a Question is there a way to get the source "open source" code before FB3 came out?)

    Best regards
    Kcell

    Hi all

    today I found the reason of the accident, that occure when my application calls him Web service works in the new Flash Player 9.0.115).

    The reason is that in the function ResultHandler the webservice call it were nested terms "switch" used and missed in two branches "case" a "pause." So the problem could be fixed easily, but I just want to inform people if you have a similar problem, they should try to start the issue with Manager of result/fault 'empty '.
    (the old version (9.0.47) seems to be more robust against a 'pause' missing; but for sure to have other leaks and, of course, features)

    kepp both on bending ;)

    Best regards
    Kcell

Maybe you are looking for

  • Apple Watch guided visits

    I have recently bought a Apple Watch and when you click on the guided tours, keep is taken to the marketing page for the new version of the watch. How can I find guided tours?

  • Miracast on the PX30T-A-14 Qosmio t

    Just tried to use a display on my AIO and when MS wireless adapter trying to 'project' in the peripherals section it tells me 'Your PC can't project to another screen'. This version of the PX30T has just the on-board Intel Graphics adapter, I was won

  • Access is not restored

    Nice day. I can not connect my Skype account. Wrote that not good user name or password. Tried to update Skype, delete the profile from a computer restores the password. Nothing helps. I am on this day deposited Skype account. After that, I was in a

  • i335 issues with deleting messages

    My i335 won't erase messages. I have tried to use the remove all option, remove the multiple option and the removal of an individual message. Some messages here and there will retire, but most of them won't. Some messages have even no message in them

  • Scrolling the mouse

    HelloI recently installed a wireless keyboard and mouse. (Microsoft Natural Wireless 7000 ergonomic keyboard and mouse Microsoft Natural Wireless Laser Mouse 7000) I installed the drive so the mouse has functions to perform a zoom go back to pages an