Skip to Main Content

LiveLabs & Workshops

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Query regarding apex_web_service.generate_request_body

User_VC17RApr 23 2021

Hi ,

Thanks for your prompt help and very greatful.
But I have query, how I can pass 'l_request_blob' generated from below codes:
l_request_blob := apex_web_service.generate_request_body (
              p_multipart  => l_multipart ); 
to below procedure ' apex_web_service.make_rest_request' , that is,in which parameter of this procedure.
I am confused as l_request_blob in BLOB type

APEX_WEB_SERVICE.MAKE_REST_REQUEST(
    p_url                  IN VARCHAR2,
    p_http_method          IN VARCHAR2,
    p_username             IN VARCHAR2 DEFAULT NULL,
    p_password             IN VARCHAR2 DEFAULT NULL,
    p_scheme               IN VARCHAR2 DEFAULT 'Basic',
    p_proxy_override       IN VARCHAR2 DEFAULT NULL,
    p_transfer_timeout     IN NUMBER   DEFAULT 180,
    p_body                 IN CLOB DEFAULT EMPTY_CLOB(),
    p_body_blob            IN BLOB DEFAULT EMPTY_BLOB(),
    p_parm_name            IN apex_application_global.VC_ARR2 DEFAULT empty_vc_arr,
    p_parm_value           IN apex_application_global.VC_ARR2 DEFAULT empty_vc_arr,
    p_wallet_path          IN VARCHAR2 DEFAULT NULL,
    p_wallet_pwd           IN VARCHAR2 DEFAULT NULL,
    p_https_host           IN VARCHAR2 DEFAULT NULL,
    p_credential_static_id IN VARCHAR2 DEFAULT NULL,
    p_token_url            IN VARCHAR2 DEFAULT NULL )  
RETURN CLOB;

Note : l_multipart is combination of json and attachment
Thanks in advance for your support
Regards,
Ritu

Comments

798692
JRE may not be enabled in your browser. Check whether it is enabled or not?

You can verify that from 'Tools -> Internet Options -> Advanced -> Java (sun)'
User_64CKJ
880537 wrote:
..However, when I view the page in IE8, the applet displays an error message (which I can't seem to decipher).
I'm having trouble deciphering that message as well. ..Mostly because you did not copy/paste it.
883540
my bad...the error looks like this:

java.lang.UnsupportedClassVersionError: HelloWeb : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.UnsupportedClassVersionError: HelloWeb : Unsupported major.minor version 51.0
EJP
The JVM being used by the browser is earlier than the version of javac you compiled the applet with.

So update the browser's JVM or use the -target switch of javac.

If you get a message you can't 'decipher', post it. Just saying you can't decipher it only wastes time.
883540
I'm running Java SE 7, which should be the latest version of Java available. Does this mean I need to update my compiler?

Sorry that I keep asking these questions but I want to make sure my applets will run properly in the future.
Kayaman
Answer
880537 wrote:
I'm running Java SE 7, which should be the latest version of Java available. Does this mean I need to update my compiler?
No, it means that your browser isn't running Java 7, but has an older plugin.
Sorry that I keep asking these questions but I want to make sure my applets will run properly in the future.
Then maybe use the target flag when compiling so it's compatible with 1.5. Version 1.6 tops. Unless you really need to use all the new features.
Marked as Answer by 883540 · Sep 27 2020
1 - 6

Post Details

Added on Apr 23 2021
0 comments
188 views