Response options for POST method in Restufl services?

I am using the Restful services for the Oracle Cloud Database and I am trying to see what my options are for returning responses from my POST calls but haven't had any luck. It doesnt seem that using dbms_output.put_line() is respected for returning information in the body of the response and I havent had any luck with OUT parameters. Obviously GETs work fine returning the selected dataset, but I can't figure out what to do for POSTs. Can someone give me a quick simple, PL/SQL hello world example of returning data (body or header, either is fine) for the REST APIs?
Edited by: 1003431 on Apr 30, 2013 3:56 PM

user588066 wrote:
Thank you for your response,
I constructed HTML data in different ways, but in all cases I am getting 200(OK) response. But nothing is happening As I mentioned, you must not construct HTML for a POST.
A POST consists of two basic parts. A header part. A data part.
The POST that you need to create, should look something as follows:
POST /servlet/servlet.WebToLead HTTP/1.1
Host: www.salesforce.com
User-Agent: Mozilla/4.0
Content-Length: <number>
Content-Type: application/x-www-form-urlencoded
oid=00D400000008XSQ&first_name=Scott&last_name=Tiger&email=[email protected] header part contains the standard HTTP header information - such as the size, content type and so on.
The data part contains what a query string for a GET command typically would contain. Name-value pairs, separated by the ampersand character, and control characters encoded where needed.
I suggest that you use your favourite search engine and research the topic of what the content and structure is for a http POST - and once you understand that, put some PL/SQL code together to create such a structure. And make that simplistic first so it is easy to debug and test - before tackling a more complex POST using https in addition too.

Similar Messages

  • Select-options for OO Methods

    Hi all,
    How can I define select-options for a method in a global class.
    And how can I pass these select-options from a report.
    Thanks & Regards
    Eshwar

    Hi all,
    How can I define select-options for a method in a global class.
    And how can I pass these select-options from a report.
    Thanks & Regards
    Eshwar

  • Row-Based Only option for post processing operator

    Hi,
    Have a question on the role of the "Row-base Only" option for post processing operators. I am trying to understand how a post-processing operation can be done in a row-based mode. A coded PLSQL procedure in a post processing operator is expected to run only once. So I am not clear on how this option might affect the execution of the transformation. Any clarifications would be appreciated.
    Thanks,
    Mazen

    Hi Carsten,
    My question is more on what is the use of the "Row-based only" checkbox that shows up in the properties window for a post-processing operator. How does this checkbox affect the execution of the post-processing transformation?
    Regards,
    Mazen

  • Best option for Asynchronous method invocation? JMS or Pure Java Thread

    Hi,
    We've a swing based Client application which is supposed to run with a server in J2EE environment. Some process like Search etc are very time consuming. So we are going for asynchronous process.
    Now the question is to find a best option for this. Two possible candidates are
    1. JMS
    2. Java Thread.
    Can anybody suggest me which one is the best option in this context?

    Actually my thought was the issues with code maintainability.Maintainability is different issue, it is much related to OOAD and design pattern you might want to choose to avoid coupling (thus high reusability and maintainability - eg: for future enhancement, etc)..
    public interface SearchService {
         public static class DefaultFactory {
                 public SearchService getInstance() {
                          return HttpSearchService.getInstance();
         public void search (String[] keywords, Observer obs);
    public class HttpSearchService implements SearchService {
         public static HttpSearchService getInstance() {
                ... bla bla bla singleton ...
         public void search(final String [] keywords, final Observer obs) {
                     (new Thread() {
                              public void run() {
                                    .. do http request ...
                                    List result =  ... parse http response ...
                                    obs.update(list);
                     }).start();
    SearchService ss = SearchService.DefaultFactory.getInstance();
    ss.search( new String[] { "get", "me", "my" , "dukes" }, myTableModel );
    ...You can, in future, replace the default factory HttpSearchService with something faster, more appropriate SearchService, without changing many codes.
    rgds,
    Alex

  • Can we disable the 'Do not send a response' option for invitations?

    Our organization recently migrated to Outlook \Exchange 2010 from Lotus Notes\Domino R7.0.4. Users are getting frustrated with the many limitations, or hopefully our lack of understanding, related to calendaring in Outlook.
    Current Issue:
    Employees can select "Do Not Send a Response" to meeting invitations, but still accept the invitations for their personal calendars. This can be very frustrating to the invitee, who is attempting to orchestrate complex meetings, since they do not
    get updates for invitees who have accepted the meeting using this option.
    It is plausible that all invitees could accept a meeting, but choose not to send a response. The originator of the meeting may than cancel the meeting, thinking, "what's the point, no one accepted it". The originator or an Admin staff should have
    the ability to disable the "Do not Send a Response" option or at least have the option to require a response if desired.
    Additionally, when invitees do send a response, it would be nice to have an option not to see response in the form of an email, but simply as an update to the Calendar 'Attendees' status, to avoid inbox clutter.
    Lotus Notes had these functions at least 10 years ago, so I'm sure we are just overlooking a setting or configuration. Any guidance Microsoft support or readers can provide would be greatly appreciated.

    Hi,
    We can disable that option via GPO.
    Please refer to Disable user interface items and shortcut keys in Office 2010:
    http://technet.microsoft.com/en-us/library/cc179143(v=office.14).aspx
    After adding the Office 2010 GPO templates to the domain, in Group Policy Management go to:
    User Configuration / Polices / Administrative Templates / Microsoft Outlook 2010 / Disable Items in User Interface / Custom
    Add the following Policy ID's: 19987, 19995 and 19991.
    This will disable the three menu items "Do Not Send a Response" below the buttons Accept, Tentative and Decline. When the mouse pointer points to the disabled ("grayed out") menu item a message is shown telling the user that this menu is disabled by the
    administrator.
    If you are not used to the email response, simply create a rule to move all these responses to a single folder and clean them up periodically:
    http://office.microsoft.com/en-in/outlook-help/manage-email-messages-by-using-rules-HA010355682.aspx
    Regards.
    Melon Chen
    TechNet Community Support
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Would be useful if there was a monitor option for posts

    When you post a message to a forum it would be useful if there was an option for it to email you when your post has been replied to.
    Also when performing a search it would be useful to display the number of replies to the messages - ie there is no point looking at a message if it has had no reply.

    Hi Todd,
    thanks for the feedback. I will share this with the technical team.
    Thanks and kind regards,
    Claire

  • Options for deployment via Remote Desktop Services / Terminal Server

    Currently we have volume licenses for CS which is deployed via remote desktop services in a multi-server load balanced farm.
    When reaching out to support, they informed me that CC cannot be deployed via RDS/terminal services.
    Seeing that CS is discontinued, how does Adobe suggest deployment of their apps via RDS/Terminal services?
    The support rep really didn't have an answer for me.
    I find it hard to believe that Adobe's going to abandon deployment of their apps in the enterprise as things are moving towards thin clients rather than traditional desktops.
    We'd like to avoid needing to go VDI instead of RDS if possible.
    I'd imagine VDI would have the same licensing issues assuming you don't want to have a dedicated VM for each user rather than having a shared pool of VMs.
    Thank You.

    The only link I have is http://forums.adobe.com/community/download_install_setup/creative_suite_enterprise_deploym ent
    Otherwise, Adobe contact information - http://helpx.adobe.com/contact.html since this forum is about the "regular" Cloud

  • Best Option For Business Single User Cloud Service

    We have one marketing person that will be using Photoshop and Illustrator. We currently are running CS3 on Windows 7 Pro 64-bit and wish to upgrade to the cloud service. Which plan would be the best suited?

    Hi Unique_Screen_Name,
    Please refer the link: http://www.adobe.com/in/products/creativecloud/buying-guide.html.
    Regards,
    Romit Sinha

  • Options for post 1st time DVD is played?

    I remember reading somewhere that it's possible for DVD players to tell if a certain DVD was inserted previously, and behave differently. For example not playing certain Intro features.
    Is this in the DVD spec? Can DVDSP do this?

    No, there is nothing in the DVD specs for this, and there is nothing you can add to the disc to make this happen. This is entirely dependent on the actual DVD player to do this. The problem is that not all DVD players have this ability, and it is entirely up to the end user to utilize this if they even have this feature.

  • I have no none option for payment method. Why?

    I hate this. Take my account info off my iphone. I can't get updates or free apps. I have no none option

    Either redeem an iTunes gift or associate a credit card with your account. Those are your choices.

  • Upload Speed Boost Option for Cable Plans

    There have been multiple posts from other Bigpond users requesting higher upload speeds on their cable services on the Whirlpool Technology forums. It seems today with families sharing even a Telstra Ultimate Cable connection at home, doing various tasks such as uploading photographs and videos to social media, performing online backups, using cloud services, online gaming, video conferencing or any other upload intensive applications, it can quickly make an Ultimate cable connection quickly feel no so ultimate with only a 2.4 megabit upload speed. I'm suggesting the thought of providing another speed boost option for those with Telstra Cable services similar to what is already in place but with a higher upload speed (to align with Velocity?) and higher cost per month. This gives your customers the added flexibility of being able to pay for the option should it be needed and can be marketed to the customers appropriately also during signup. From a technological point of view the DOCSIS 3.0 technology used by the Telstra Cable network is more than capable of being up to the task of catering for higher upload speeds. See: http://en.wikipedia.org/wiki/DOCSIS I hope this suggestion is of use as I can see clear profitability gains for Telstra. Just by the introduction of a simple new product you will be able to keep more current customers happy and attract more in the process.

    +1 to increase it by any amount. But I would be happy to pay an extra $10 per month for at least 10Mbps up. Purely for the benefits of online cloud storage to backup photos etc - a process that is painfully slow with most of the U.S. based cloud backup solutions. I can understand that part of the reasoning might be to prevent users from hosting web or ftp sites and the like, but without a static IP - it is not that feasible anyway (yes I know you can have dynamic dns services etc. but Telstra wouldnt be making it any easier without static IP's). For example: August 21, 2014 - Cogeco Cable Canada Enhances its High Speed Internet Service : The Turbo 20, and Ultimate 55 High Speed Internet package upgrade includes an upload speed increase from up to 2 Mbps to up to 10 Mbps, at no additional cost. The newly launched Ultimate 120 High Speed Internet package offers download speeds of up to 120 Mbps and upload speeds of up to 10 Mbps, as well as a monthly data transfer capacity of 425 GB. (Just do a search and replace on a few words in the above paragraph and feel the potential happiness!) I'd like to hear a response from Telstra.

  • HT2534 Why isn't there a 'none' option for my payment information?

    I have a debit card on my iTunes account and I added it a while ago. Now it is saying that my security code isn't valid so I just want to get my debit card off of my iTunes account COMPLETELY. My problem is that I can't find the 'none' option for payment method information. HELP ME PLEAASE!! "/

    For the security code issue, try here >  iTunes Store: My credit card's security code or zip code does not match my bank's records
    The None option is available from the iTunes Edit Payment Information window.
    With iTunes open, from the menu bar top of your screen click Store > Sign In
    Now go back to the menu bar click Store > View My Account. Enter your password click View Account.
    Now click Edit to the right of Payment Type.
    Be aware, the None option is not available in all countries.

  • Calling https web service POST method from ABAP

    Hi all,
    I'm having some problems trying to call a credit card https web service from ABAP on 2004s SP11. I'm not using a proxy server and a call from a test https page on my local machine works fine. The page does not require a certificate.
    Do I need to do anything in particular to make https work ? I've done calls to http services without any problems. The only difference from a programming perspective as far as I know is the scheme 2 instead of 1, and the server protocol changed to HTTPS.
    All is fine until  I call method http_client->receive, at that point I get a return code of 1, http_communication_failure. 
    Your suggestions & contributions will be greatly appreciated.
    Cheers,
    Wouter.
    report zcreditcardtest .
    data: wf_user type string .
    data: wf_password type string .
    data: rlength type i,
          txlen type string  .
    data: http_client type ref to if_http_client .
    data: wf_string type string .
    data: wf_string1 type string .
    data: wf_proxy type string ,
          wf_port type string .
    selection-screen: begin of block a with frame .
    parameters: crcard(16) type c lower case default '4242424242424242',
                cvn(4)     type c lower case default '564',
                year(2)    type c lower case default '07',
                month(2)   type c lower case default '11',
                amount(10) type c lower case default '100.00',
                cukey(4)   type c lower case default 'AUD',
                order(10)  type c lower case default 'AB1322-refund'.
    selection-screen skip 1.
    parameters: user(50) lower case,
                password(50) lower case ,
                p_proxy(100) lower case default '' ,
                p_port(4) default ''.
    selection-screen: end of block a .
    at selection-screen output.
      loop at screen.
        if screen-name = 'PASSWORD'.
          screen-invisible = '1'.
          modify screen.
        endif.
      endloop.
    start-of-selection .
      clear wf_string .
      concatenate
      'order.type=capture&customer.username=SOMEUSER'
      '&customer.password=SOMEPASSWORD'
      '&customer.merchant=SOMEMERCHANT'
      '&card.PAN=' crcard
      '&card.CVN=' cvn
      '&card.expiryYear=' year
      '&card.expiryMonth=' month
      '&order.amount=' amount
      '&customer.orderNumber=' order
      '&card.currency=' cukey
      '&order.ECI=IVR'
      '&customer.captureOrderNumber=' order
      '&order.priority=1'
      '&message.end=null'
      into wf_string .
      break-point.
      clear :rlength , txlen .
      rlength = strlen( wf_string ) .
      move: rlength to txlen .
      clear: wf_proxy, wf_port .
      move: p_proxy to wf_proxy ,
            p_port to wf_port .
      call method cl_http_client=>create
        exporting
          host          = 'api.somewhere.com'
          service       = '80'
          scheme        = '2'                        "https
          proxy_host    = wf_proxy
          proxy_service = wf_port
        importing
          client        = http_client.
      http_client->propertytype_logon_popup = http_client->co_disabled.
      wf_user = user .
      wf_password = password .
    * proxy server authentication
      call method http_client->authenticate
        exporting
          proxy_authentication = 'X'
          username             = wf_user
          password             = wf_password.
      call method http_client->request->set_header_field
        exporting
          name  = '~request_method'
          value = 'POST'.
      call method http_client->request->set_header_field
        exporting
          name  = '~server_protocol'
          value = 'HTTPS/1.0'.
      call method http_client->request->set_header_field
        exporting
          name  = '~request_uri'
          value = '/post/CreditCardAPIReceiver'.
      call method http_client->request->set_header_field
        exporting
          name  = 'Content-Type'
          value = 'application/x-www-form-urlencoded; charset=UTF-8'.
      call method http_client->request->set_header_field
        exporting
          name  = 'Content-Length'
          value = txlen.
      call method http_client->request->set_header_field
        exporting
          name  = 'HOST'
          value = 'api.somewhere.com:80'.
      call method http_client->request->set_cdata
        exporting
          data   = wf_string
          offset = 0
          length = rlength.
      call method http_client->send
        exceptions
          http_communication_failure = 1
          http_invalid_state         = 2.
      call method http_client->receive
        exceptions
          http_communication_failure = 1
          http_invalid_state         = 2
          http_processing_failed     = 3.
      if sy-subrc <> 0.
        message e000(oo) with 'Processing failed !'.
      endif.
      clear wf_string1 .
      wf_string1 = http_client->response->get_cdata( ).
    * Further Processing of returned values would go here.

    Well, finally got this running !
    First of all I needed to download SAP Cryptographic Software and install it on the Web Application Server. Added some parameters to the profile, then set up some nodes in strust. Note 510007 describes the full process.
    I then installed the certifcate I needed by opening the website in internet explorer and exporting it to a CER file and then importing it into the SSL client (Anonymous). The blog from Thomas Yung, "BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP" describes the process of exporting and importing certificates.
    I then had to start the HTTPS service on my NW 2004s ABAP preview edition SP11. I set this up for port 443.
    /osmicm --> GOTO --> SERVICES --> SERVICE --> CREATE
    Then finally, the program needed a few changes :
      call method cl_http_client=>create
        exporting
          host          = 'api.somewhere.com'
          service       = '443'                       " <<-----  443 NOT 80
          scheme        = '2'                        "https
          ssl_id        = 'ANONYM'              " <<----- SSL_ID Added
          proxy_host    = wf_proxy
          proxy_service = wf_port
        importing
          client        = http_client.
    and further in the program (thanks Andrew !) :
      call method http_client->request->set_header_field
        exporting
    *   name  = '~server_protocol'             " <<<--- DELETE
          name  = '~request_protocol'         " <<<-- INSERT must be request
          value = 'HTTPS/1.0'.
    and presto, we can now consume a https webservice via a POST method from within an ABAP program ! Nice.... Can I give myself 10 points ?

  • Service Options for ES 5000

    What are my options to have an es5000 camcorder serviced? Thanks for a response
     I have used this since 1995 and NEVER had to have it service until now with a "stuck" ejector. To me its a Canon "Super Star"

    Hi bcuzz!
    Thank you for posting.
    Due to the age of the ES 5000, it can no longer be serviced by our Factory Service Center.  Replacement parts are no longer available. 
    However, you may qualify for the Canon Loyalty Program.  This program allows you to replace your current camera with another for a discounted fee.  The original non-functioning camera would then be returned to us for recycling using a prepaid shipping label we provide.  For more information, please contact our Sales Department at (800) OK-CANON, seven days a week, 8am to midnight.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Need JDeveloper Web Service with HTTP POST method

    Hello all,
    I am creating a Web Service from a java class using JDeveloper. The wsdl created uses a SOAP binding. When I test the web service, either through JDeveloper or by deploying to OAS, the HTTP request created uses the HTTP GET protocol. I am assuming that this would be the same for anybody doing this.
    I need to know how to change it to be an HTTP POST protocol instead.
    The reason that I need to try and use the POST method is that the xml needed by the service holds a lot of data and the http server is giving me a "URI too long" error. I have read and been told that using POST instead of GET would help this, but I can't figure out what to change to make this happen. I am not sure if I have to make a change in the generated wsdl or somewhere else. Or if it just won't work that way.
    Any help you can provide would be appreciated.
    Thanks,
    rob

    Hi Ayush,
    Please refer -
    http://biemond.blogspot.com/2010/08/http-basic-authentication-with-soa.html
    Regards,
    Anuj

Maybe you are looking for

  • Narrative Report with Iframe to dispay

    Hi, I have a Requirement for displaying activities of a contact on contact related information page in a calendar format, for this i've created report with calling calendar iframe in report and displaying it in the layout througjh webapplet but it sh

  • New MBPr when viewing safari in full screen mode it keeps switching to the desk top screen like I initiated a gesture

    Everytime I am using safari in full screen mode my MBPr always switches back to desk top view within a matter of seconds.  I can be typing a website or entering data in to a form and it still switches back.  This has become very annoying.  I have rei

  • Sap sd question

    PRICING WHAT  IS  THE  DIFFERENCE BETWEEN  CONDITION TYPES  EDI1 & EDI2  ? WHAT  IS  THE  DIFFERENCE BETWEEN  CONDITION TYPES  EK01 &  EK02  ? PLS  EXPLAIN WITH AN EXAMPLE.

  • Overlay calendar with more than 9 colors possible?

    Hello, I found in this forum a solution to customize the colors in the calendar overlay, but I have more than 9 calendars and looking for more colors. It this possible?

  • Selection program for HR Idocs

    Hi experts,      If we generate the Idocs for HR master data using PFAL, and configure the partner profile ( No message Control ), do we have any selection program or posting program for the generated idocs to be posted ?? Please clarify this. Thank