How to return an * optional * custom http header with a resource model?

Is it possible to return a http header custom optional with a resource of Apex (v1.1.4) earphone model?

Reading the documentation does not indicate how this works:
http://docs.Oracle.com/CD/E21611_01/ doc.11 /e21058/rest_api.htm#BGBDFBJF

A test, I set up a model of resource to try it. I use the handler method is POST, type is 'PLSQL Block', and my custom settings are:

Name: personnalisee01
Aliasing: x-personnalisee01
Source: header
Access: EXIT
Type: String

PL/SQL block:
BEGIN
  :custom01 := 'my string';
END;
And of course, I get a custom header in the response http like this:
x-custom01 : my string
Then, taking a hypothesis that the NULL value for the parameter may cause the listener to Apex do not send the custom header, I changed the PL/SQL this:
BEGIN
  :custom01 := NULL;
END;
This time, however, the url announcement causes Apex listener to return a 500 status and in the log file, I get:
INFO: null: Invalid column index
java.sql.SQLException: Invalid column index
In any case is to make my custom http header exist as an option? The most intuitive way to just return null to the variable binding, but of course, this does not work!

Thank you
Jack

Yes, to be clear, the issue is that binds through comments (- or / * /) are not handled correctly, I have not yet verified, but I think that the problem will occur in 2.0.x so.

Tags: Database

Similar Questions

  • Hello, I accidentally opened an old file Ircat... and now can't figure out how to return to my only current.  With the help of Mac Yosemite, Lightroom CC

    Hello, I accidentally opened an old file Ircat... and now can't figure out how to return to my only current.  With the help of Mac Yosemite, Lightroom CC

    Thank you!

    File-> open recent. Lists the catalogs you have opened and will allow you to choose one of the previous catalogues.

  • Satellite U400 - how to return to the format of partition with HDD Recovery

    Hello

    I bought a new notebook Satellite U400 with Vista Home preinstaled thereon.
    I went through the initial configuration and once it was done, I realized that making the partitions of HARD drive does not fit my needs.

    So I resised the partition of 'Vista' (acctually I shrunk it) and made the largest partition of 'Data'.
    I did not do anything with the hidden partition.

    Unfortunately, when I did this procedure I formatted the 'Data' partition.
    Now, when I want to make the backup with TOSHIBA Recovery Disc Creator DVD I got the error message saying that it is not possible because I formatted the 'Data' partition.

    Is there a suggestion how to fix this error?
    The system's fine, the only thing is that I'm not able to save and restore the operating system.

    Thanks Vecerka

    It wasn't good buddy. If you deleted the partition of HARD drive recovery, then you would not be able to restore it!

    Now, you need a new DVD of recovery!
    You can order using this Toshiba page:

    https://backupmedia.Toshiba.EU/landing.aspx

    It s a BACKUP TOSHIBA EUROPE MEDIA ONLINE STORE

  • How custom in the SOAP of APEX application HTTP header sent?

    Hello

    I need to send the values of username and password in the HTTP header with request to Webservice.
    It is possible to do with APEX?
    Or I have no choice and I have to use the PL/SQL, UTL_HTTP?


    Thank you
    Vitalijus

    Vitalijus salvation,

    Please take a look at "Setting Cookies and HTTP headers" - http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_web_service.htm#BABDFEJG
    I think that's what you're looking for.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Adding custom information in the HTTP header in a request out of GWWS

    Is it possible to send information to custom header with the webservice (HTTP post) request that arrives via a GWWS Server?

    All the methods that I've read about deal with management of the SOAP envelop that is sent.
    We are looking for ways that will enable us to custom information in the headers.

    I know there is something we can do by using the Plugins of salt.
    For example, we can write only an Out bound plugin that has a capacity to put the "Authentication: Basic...» "in the header.
    Then there is message conversion plugin which deals with the transformation of the message, which allows us to control the soap body.

    Is it possible to put information in the header of outgoing (from GWWS) request to a web service?

    Thank you and best wishes,
    Christelle

    It was enhanced salt11gR1 and addressed in edocs as below:

    http://docs.Oracle.com/CD/E18050_01/salt/docs11gr1/admin/config.html#wp1094154

  • How to set a list as a header item type?

    I use a QVariantListDataModel.

    QVariantMap map = QVariantMap();
        dataModel.clear();
        map["title"] = resultList.value(id).toMap().value("QUESTION").value();
        dataModel << map;
        map["title"] = resultList.value(id).toMap().value("CHOICE1").value();
        dataModel << map;
        map["title"] = resultList.value(id).toMap().value("CHOICE2").value();
        dataModel << map;
        map["title"] = resultList.value(id).toMap().value("CHOICE3").value();
        dataModel << map;
        map["title"] = resultList.value(id).toMap().value("CHOICE4").value();
        dataModel << map;
        map["title"] = resultList.value(id).toMap().value("CHOICE5").value();
        dataModel << map;
    
        RecipeItemFactory *recipeItemManager = new RecipeItemFactory();
        list->setListItemProvider(recipeItemManager);
    

    I show the data from the database. Subscription data contains resultList extracted from the database. How to make some of them as header? I learned that you must set the type of listItem as "header." But where I put it? I'm following the example of cascadescookbookcpp. They showed how do and I do not understand how. I can see how with qml. But I am using c ++.

    QVariantListDataModel returns itemType empty by default. To return a specific itemType, subclass of the model you are currently using:

    class MyDataModel: public QVariantListDataModel
    {
    public:
        virtual Q_INVOKABLE QString itemType (const QVariantList &indexPath);
    }
    
    QString MyDataModel::itemType(const QVariantList &indexPath)
    {
      if (...)
         return "header";
      return "item";
    }
    

    If you want to subclass the data model, another option is implemented in ListItemTypeMapper as described here:

    http://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__qlistdatamodel.html#function...

    To Configure ListView with failure, use the ListView setListItemTypeMapper function provides an instance of the subclass ListItemTypeMapper.

  • How to return to firefox before the change?

    I hate this change, I liked the old firefox and none of my Add ons to work. How to return to the preceding her 9.0.1? I like things in a very particular way and it takes me a long time to get used to new things and it's scaring me.

    Follow the suggestions mentioned in the following articles:

    Check and tell if its working.

    -> Update all of your Firefox Plugins

    • https://www.Mozilla.org/en-us/pluginCheck/
    • During the installation of the Plugins download files hotfix, remove the check mark to download any other software options with your Plugins (for example, toolbars, McAfee, Google Chrome, etc.)
    • Restart Firefox
  • change changed to better visual performance, don't like, how I return default

    I changed the Visual effects for best performance do not like the installer how to return to the default configuration

    Just go back in the performance Options and select "let Windows choose what's best for my computer.

    To join the performance Options with right-click on desktop and select properties then click on the Advanced tab and then click the parameters of Performance.

    If you had custom settings and if you have done no other major changes since you have changed the setting you can use system restore to return the unit to its previous settings.

    John

  • How to return to records... ?

    How to return to the folders that I am on windows 7-32 bit my computer made binders, folders, I think it was
    I did something but have no idea of what please help... !

    Do, or you have installed Chrome? It appears that an update of Chrome, (mid April 2013), is responsible for the loss of the option new folder. Even if Chrome has not been installed, here are two patches.
     
     
     
    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html
     
     
     
    If for any reason, the zip file doesn't work for you, check out the 'response' by Linda Yan in this thread.
    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/thread/97de8a2a-12f2-4381-A409-a78f4ae551cf/#99395761-56de-4a76-8C2A-eab498ad735a
     
     

    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.
     
     
  • I have just updated to windows 8 and I hate it. How to return windows 7?

    I have just updated to windows 8 and I hate it.  How to return windows 7?

    Hello

    Clean, install your Windows 7 Media 7 or restore the Windows 7 System Image that you did before upgrading Windows 8.

    If you don't have that:

    The only legal Windows 7 download available is now Microsoft, as Microsoft has stopped DigitalRiver Windows 7 ISO downloads.

    http://www.Microsoft.com/en-us/software-recovery

    But Microsoft only provides these downloads for Windows 7 keys to selling product at retail, not preinstalled OEM product keys (Dell, HP, etc.).

    If you have a Windows 7 license detail and are having trouble at the above Web site, contact Microsoft using the Support option.

    If you have a preinstalled OEM license (Dell, HP, etc.), contact the manufacturer of your computer to order recovery media that they need to provide for a fee.

    Or you can also borrow the same exact retail edition DVD of Windows 7 and use your product key to reinstall.

    See you soon.

  • Discount Windows 8.1 restored unique language to preinstalled Windows 8 unique language, how to return to Windows 8. 1

    I bought the laptop Acer Aspire E1-522 before one year. It has been preloaded with Windows 8 unique language.

    I upgraded to win 8.1 before 4 months.

    Now, I tried to install Ubuntu OS in this laptop and failed.

    Ever after I uninstalled Ubuntu from the Control Panel, the start screen appears with the option Windows and Ubuntu to select.

    Cannot remove this option and then the ubuntu I tried to refresh the whole Windows Operating System 8.1.

    When the update was complete, my system returned to Windows 8 again and I'm shocked.

    I do not know how to return to 8.1 upgrade of Windows. Please help me solve this problem.

    How to solve this problem?

    I want my Windows Update back 8.1 in my computer.

    Hi Vijay Kumar,

    Welcome to the Microsoft Community forums.

    Sorry for the inconvenience that you aren't able to recover Windows 8.1 during the updating of the computer.

    If I understand you tried to install the Ubuntu operating system, but the installation was not successful. Then you tried to update the computer and it turns off back to the Windows 8 operating system preinstalled.

    When you updating the computer, he returned to Windows 8 because it is the default operating system (OS preinstalled) and when refreshing, it uninstalled the updates of Windows 8.1 and restored to Windows 8

    I suggest you check the steps in the link to update Windows Windows 8.1 8

    http://Windows.Microsoft.com/en-us/Windows-8/update-from-Windows-8-tutorial

    You can also read the following steps to upgrade your computer to windows 8.1.

    1. press the key Windows + X, and then click Control Panel.

    2. in the Control Panel, select Windows Update.

    3. install all the recommended and optional updates available.

    4 restart the computer, updated as needs rebooting the system to settle.

    5. click on the start menu, then click on the app store.

    6. from the app store, download and install the Windows 8.1 update.

    I hope this helps. If you have any other questions, we will be happy to help you.

  • Adds an HTTP header

    The following header must be added to the HTTP response:


    X-FRAME-OPTIONS: SAMEORIGIN


    I'm looking for an easy way set up the HTTP headers in WebLogic 11 g.


    Thanks for your help!

    Take a look at this post, he changes a http header. You can try to do the same thing in the filter.

    Jonas de Graaff weblog: how to run your application of 11.1.x ADF under IE 11: workaround

    Kind regards

    Ruben

  • HOW TO DISABLE THE OPTION IN THE WEB CONSOLE BI PUBLISHER PAGE.

    Hello

    In my app opens BI PUBLISHER REPORT IN INTERACTIVE display MODE (page) for the customer.
    This page opens. But I want to do client cannot access all the options in the Web poster (Like Home page,
    Catalog, new, open, Administration, research).

    So, how can I disable all option in the web page. And the customer can access only interactive repot.
    If anyone knows pls guide me.

    Thank you.

    Maybe you should try
    the 'Report sharing link' option and select Header No.

    Kind regards.

  • How to increase the size of the header bar so that I can view the topic more clearly?

    I can not clearly see and enjoy the themes that I download as the header area is very low. How can I increase my header with objects area less covering the bottom?

    You need to activate the toolbars to make them visible.
    You can have an extra available with the extension toolbar Classic theme restaurateur.

    To see more of the Persona, you can set a minimum height for the navigator - Toolbox with the code in the file userChrome.css or using the Stylish extension.

    Add code to the file userChrome.css below default @namespace.

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    #navigator-toolbox { min-height:200px !important; box-shadow:ThreeDShadow 0 -1px inset; }
    

    The file userChrome.css (UI) customization and userContent.css (Web sites) are located in the folder of chrome in the Firefox profile folder.

  • My most important module does not work with the update. How to return to the old version of firefox so I can get it back?

    How to return to the old firefox since it doesn't seem to have the capacity to run Add-ons I need? What is an update, if not LESS?

    You must install the add-on (restored) to get working ForecastFox extension bar.

    Note that you must install ForecastFox immediately after a new installation of the bar of the add-on (restored)

    You can download the last ForecasterFox below

Maybe you are looking for

  • Should what battery I buy for Satellite C660?

    I find a lot of batteries online, but my main concern is that. My laptop is Satellite C660 - 1 M 0 (ps1ge-02901fgs). I find that the batteries that claim is for c660 but they reffer to as (PA3634U-1BAS), some reffer to as c660d and some reffer to as

  • How do you define the amplitude of the pulse train?

  • SMC for windows 7 anyone?

    I found most of my applications work well on windows 7, but doesn't seem the Sansa Media Converter works quite right.  It does not convert a file, and when I try to convert directly to my rocket, it just hangs for hours unless I have stop, and he nev

  • Office keyboard has disappeared.

    Have always used the keyboard from office for bank details etc, hoping that it helps to defeat keyloggers typo, but for no known reason that it disappeared and I should be grateful if you would help to restore.

  • Zip in Windows Vista Home Premium SP1 files

    I no longer get an option to compress or decompress files in Vista.  How to restore this function?  I don't know how I have it turned off. Thank you LAHugh