RESTful service with POST, GET, PUT and DELETE

I'm implementing a RESTful service, but mod_plsql only gives me GET, POST and HEAD commands.
However, if I try to use the PUT command, the response is:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>501 Method Not Implemented</TITLE>
</HEAD><BODY>
<H1>Method Not Implemented</H1>
PUT to *** not supported.<P>
mod_plsql: request method not supported<P>
<HR>
<ADDRESS>Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server Server at *** Port 80</ADDRESS>
</BODY></HTML>Is it possible to add support for PUT and DELETE in mod_plsql?
I've search all packages and code, but I haven't found anything that specifies the valid HTTP commands or the source for generating the above error message.

AIR supports all the specified HTTP methods, but there seems to be a bug in the HTTPService class. Instead you should use URLLoader and URLRequest. If you change to that you won't even need to use the Method Override header.
Read more here : http://spy6.blogspot.com/2009/06/adobe-air-put-delete-head-http-methods.html .

Similar Messages

  • How to call rest service with POST Http method in SMP2.3 HWC?

    Hi Experts,
       I am doing a sample for Rest Service in smp.
    http://192.168.1.119:8086/Test/services/Products
    I am calling the above service in the smp it is pulling the data from the service with GET Http Method.
    Now i want to call this service for login functionality.
    http://192.168.1.119:8086/Test/services/auth?uname=:uname&pass=:pass
    here :uname &:pass values are argument values for the uname & pass.
    the output of the service is
    http://192.168.1.119:8086/Test/services/auth?uname=sravanya.k&pass=sravanya
    <?xml version="1.0" encoding="UTF-8"?>
    <details>
    <responsecode>200</responsecode>
    <profile>
    <firstname>sravanya</firstname>
    <lastname>k</lastname>
    <email>[email protected]</email>
    <chart_type>North</chart_type>
    <location>MACHILIPATNAM</location>
    <language>English</language>
    </profile>
    </details>
    How can i do this?
    Thanks & Regards,
    Sravanya K

    Create a uriTemplate like this
    /auth?uname={uname}&pass={pass}
    use GET method only.
    generate the personalization keys.

  • HTTP - GET, POST, PUT and DELETE

    Which of these are implemented and supported by Flex 4 and which from AiR 2 ?
    Are there any libraries or other workarounds for non supported ones?

    I've spent many hours on this and here is the deal as I understand it.
    1) HttpService and HttpMultiService claim to support PUT and DELETE in the docs, but that only applies via a server proxy even in AIR
    2) flash.net.URLRequest supports PUT and DELETE from AIR without a proxy, but not in the browser. I understand FlashPlayer works through the browsers network connection, so cannot support PUT and DELETE when the browser doesn't
    3) as3httpclientlib has been working fine for me for development in AIR on MacOS with HTTPS Basic Authentication, but failing with an encryption issue in my iPad app. I haven't solved this, and am switching to URLRequest. There was a showstopping limitation (bug FP-6) in FlashPlayer that prevented as3httpclientlib from reliably doing large uploads. The limitation has been addressed in recent versions of AIR and Flashplayer, but as3httpclientlib hasn't been updated to take advantage of it
    4) Checkout as3awss3lib - it does PUT and DELETE with URLRequest
    Cheers,
    Gary
    blog.buzzware.com.au

  • There are text messages that I'm having trouble deleting.  With some of my text messages, I can swipe to the left and delete ... or press and hold, get more and delete to trash can icon. But there are some where neither will work. Can't delete. Help!

    There are text messages that I'm having trouble deleting.  With some of my text messages, I can swipe to the left and delete ... or press and hold, get more and delete to trash can icon. But there are some where neither will work. Can't delete. Help!

    But once again, I do not want to lose my other texts, app progress, and photos. I could sync the photos but i would still lose the app progress and texts. I would only restore if it was the only option left, but the other space, as already stated, isnt the main concern. The main concern is those 'deleted' texts. If they go, then a good size chunk of the other space goes. I know you CAN delete texts for good. It worked fine before. All i want to know is why its not working for me now, and how to fix it.
    I also know that when you delete texts on your iphone, they get marked for deletion, however they stay on your device (thats why they show up when you search for them.) then when you sync your device with itunes, the texts marked for deletion should disappear. When i synced they didnt disappear. Thats what i need an explanation/solution for. Why the texts marked for deletion didnt get fully deleted after the sync.

  • Disable PUT and DELETE HTTP methods in Sun ONE Web Server 6.1

    Hello ,
    i want disable PUT and DELETE methods in SunOne 6.1 , i don't find the solution ...
    Thnaks to help me .
    telnet www.mywebsite.com 80
    Trying 145.248.193.13...
    Connected to www.mywebsite.com.
    Escape character is '^]'.
    OPTIONS * HTTP/1.0
    HTTP/1.1 200 OK
    Server: Sun-ONE-Web-Server/6.1
    Date: Wed, 18 Jan 2006 08:07:41 GMT
    Content-length: 0
    Allow: HEAD, GET, PUT, POST, DELETE, TRACE, OPTIONS, MOVE, INDEX, MKDIR, RMDIR
    Connection: close

    are you sure that it isn't a vulnerability ? if i understand you , OPTIONS * HTTP/1.0 list all the possible methods but they are not actived ?
    i have test with OPTIONS / HTTP/1.0 , is that the those possible methods : HEAD , GET ??
    thanks
    telnet www.mywebsite.com 80
    Trying 145.248.193.13...
    Connected to www.mywebsite.com.
    Escape character is '^]'.
    OPTIONS / HTTP/1.0
    HTTP/1.1 200 OK
    Server: Sun-ONE-Web-Server/6.1
    Date: Wed, 18 Jan 2006 11:11:07 GMT
    Content-length: 0
    Allow: HEAD, GET
    Connection: close

  • Spry with DW insert, modify and delete behaviors

    I posted this question before and didn't get a response. I'm
    wondering if there is any documentation available for using Spry
    with DW insert, modify and delete behaviors? I'd like to be able to
    perform these functions without having to go from list to master to
    detail page as in traditional ASP etc. According to Alex July at
    Linecraft this is one of "many hidden features" in Spry.
    http://www.linecraft.com/b2/index.php?p=28&c=1

    "LAGooner10" <[email protected]> wrote in
    message
    news:fk71ad$5c7$[email protected]..
    >I posted this question before and didn't get a response.
    I'm wondering if
    > there is any documentation available for using Spry with
    DW insert, modify
    > and
    > delete behaviors? I'd like to be able to perform these
    functions without
    > having to go from list to master to detail page as in
    traditional ASP etc.
    Here you can find an article that covers data update:
    http://www.adobe.com/devnet/dreamweaver/articles/edit_data_in_ajax.html
    The server-side code is CFML, but the concept is the same.
    A more complete demo, with search, insert, update and delete
    is available
    here (code only, no article):
    http://www.massimocorner.com/spry/dynamic_spry.zip
    Massimo Foti, web-programmer for hire
    Tools for ColdFusion and Dreamweaver developers:
    http://www.massimocorner.com

  • How do I search for lines with a particular pattern and delete them when a match occurs

    How do I search for lines with a particular patter and delete them when a match occurs? For example delete lines containing SUB_NAME = "?" where ? is any string. 

    How do I search for lines with a particular patter and delete them when a match occurs? For example delete lines containing SUB_NAME = "?" where ? is any string. 
    Lines in what? And what language are you using to develop with?
    Are the lines in a text file? A RichTextBox? A TextBox? Some other control? A List(Of String)?
    Is there some expectation by you that by providing what you wrote in your question post that the knowledge in your mind about what you are thinking about will mysteriously emanate to anybody reading your post so all of the sudden your knowledge will
    become their knowledge and they will be able to provide you with an answer as they will suddenly understand what you are trying to do? Because that's probably impossible. Most people try providing enough information in a question so anybody, even stupid people
    like me, can understand what they want. Maybe you should try that. As well as selecting an appropriate forum for your question in the future. Usually a question like this is related to programming in a particular language therefore a language forum may be
    a good choice. Or not.
    La vida loca

  • My wife sign in her iphone with my icloud id and deleted my contacts form her phone, while deleted them form the cloud, can I recovered them

    my wife sign in her iphone with my icloud id and deleted my contacts form her phone, while deleted them form the cloud, can I recovered them

    Yes if you backed up your iPhone with iTunes to your Mac.  You can restore your phone to the last backup:
    Or with a iPhone backup viewer/restorer application like iPhone Backup Viewer or Mac iPhone Data Recovery. But the phone has to have been backed up with iTunes to the Mac.
    Other possible applications can be found at MacUpdate.com by searching for iPhone recovery or iPhone backup, etc.
    Change your Apple ID password so you wife can't log into your iCloud again and do the same thing.

  • Anyone.know.how.to.get.spacebar.and.delete.button.to.work??

    anyone.know.how.to.get.spacebar.and.delete.button.to.work??

    I think you are asking this in the wrong forum.  This is for TBD issues.

  • [svn:bz-trunk] 7494: Add testcaseses for http put and delete methods.

    Revision: 7494
    Author:   [email protected]
    Date:     2009-06-02 13:13:33 -0700 (Tue, 02 Jun 2009)
    Log Message:
    Add testcaseses for http put and delete methods. Proxy should return endpoint's content instead of empty body
    Added Paths:
        blazeds/trunk/qa/apps/qa-regress/remote/testMethods.jsp
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/proxyService/httpservice/bugs/Pu tAndDeleteMethodTests.mxml

    found it - here: http://discussions.apple.com/thread.jspa?threadID=2323131&tstart=30
    I set the Realm to Location instead of Folder. Now I'm prompted for my credentials at the /svn/ URL.

  • HttpService Put and Delete methods support

    Hello,
    HttpService doesn't seem to be supporting PUT and DELETE methods. The trick of using "X-HTTP-Method-Override" did send the request as PUT/DELETE request. But the server side code is unable to detect it as PUT/DELETE request. The server side code is in PHP and uses FuelPHP Framework. 
    Can anyone please suggest a way by which the request can be sent as PUT/DELETE such that it can be identified as same PUT/Delete request.
    Thanks

    Q 1 and 2 : http://blogs.sun.com/meena/entry/disabling_trace_in_sun_java
    About Q 3 ciphers which version of WebServer are you using?

  • Charger that came with Ipad gets hot and only charges for a short time or not at all

    charger that came with Ipad gets hot and only charges for a short time or not at all

    Stop using it and Return it to the Place of Purchase and get it checked... ASAP...

  • RESTful service with EJB 3.1 endpoint cannot be found (404)

    Hi,
    I have a Resource configured as a EJB 3.1 Stateless Bean. I also have an overridden Application class to customize the context root. However, the client just cannot seem to find the Resource. What am I doing wrong? The Resource is packaged and deployed as a war.
    Cross posted: http://www.coderanch.com/t/546565/java-Web-Services-SCDJWS/certification/RESTful-service-EJB-endpoint-cannot#2480046
    Tests in error:
      testSendRequestAndGetGreeting(name.app.abhi.helloworld.ejb.restful.client.HelloWorldEjbRestfulClientTest): GET http://localhost:9090/practice/helloworld?name=Duke returned a response status of 404 Not Found
    Resource:
    @Path("helloworld")
    @Stateless
    public class HelloWorldBean {
        @GET
        @Produces("text/plain")
        public String getQuintessentialGreeting(@QueryParam("name") String name) {
         if (name == null) {
             throw new WebApplicationException(Response.Status.BAD_REQUEST);
         return "Say hello to the world, " + name;
    Application class:
    @ApplicationPath("practice")
    public class ApplicationConfig extends Application {
        @Override
        public Set<Class<?>> getClasses() {
         Set<Class<?>> clazzez = super.getClasses();
         if (clazzez == null) {
             clazzez = new HashSet<Class<?>>();
         clazzez.add(name.app.abhi.helloworld.ejb.restful.service.HelloWorldBean.class);
         return clazzez;
    Client:
    public class HelloWorldEjbRestfulClient {
        private final static String ENDPOINT_URI = "http://localhost:9090/"
             + "practice/helloworld";
        public String sendRequestAndGetGreeting(String name) {
         Client client = Client.create();
         WebResource webResource = client.resource(ENDPOINT_URI);
         webResource.accept(MediaType.TEXT_PLAIN);
         return webResource.queryParam("name", name).get(java.lang.String.class);
    }Edited by: asarkar on Jul 24, 2011 12:20 PM

    I figured this out...the context root is NOT the one specified in the @ApplicationPath annotation. The context root has to be specificed in the vendor-specific dd, glassfish-web.xml for example, or the default needs to be accepted.
    The endpoint URI is of the form http://hostname:port/contextRoot/applicationPath/path, where applicationPath is specific with @ApplicationPath and path with @Path.
    Edited by: asarkar on Jul 24, 2011 2:45 PM

  • PUT and DELETE in Flash AS3

    I am working on the Google Calendar API which has been built for Flex/AIR. In the API, for performing a Delete or Update operation, it uses DELETE or PUT methods in the URLRequest. But I think these being REST based calls are supported in AIR.
    I am using this API in a Flash/AS3 application and have successfully implemented the Update functionality by using X-HTTP-Method-Override method for PUT and instead using POST, which is supported in Flash. But when I try to do the same thing for Delete method, I get a 401 error in the API call.
    Any idea how this problem could be solved?

    AIR supports all the specified HTTP methods, but there seems to be a bug in the HTTPService class. Instead you should use URLLoader and URLRequest. If you change to that you won't even need to use the Method Override header.
    Read more here : http://spy6.blogspot.com/2009/06/adobe-air-put-delete-head-http-methods.html .

  • Issues deploying a cloud service with two endpoints (HTTP and HTTPS)

    I ran into an issue this week in the azure portal when I tried to deploy a cloud service with two endpoints.  (I am using the azure sdk 2.2).  I deployed the cloud service to production with the following endpoints in the ServiceDefinition.csdef:
    <WebRole name="NameChanged.Web" vmsize="Small">
    <Sites>
    <Site name="Web">
    <Bindings>
    <Binding name="HttpsIn" endpointName="HttpsIn" />
    <Binding name="HttpIn" endpointName="HttpIn" />
    </Bindings>
    </Site>
    </Sites>
    <Endpoints>
    <InputEndpoint name="HttpIn" protocol="http" port="80" />
    <InputEndpoint name="HttpsIn" protocol="https" port="443" certificate="NameChangedCertificate" />
    </Endpoints>
    <Imports>
    <Import moduleName="Diagnostics" />
    </Imports>
    <Certificates>
    <Certificate name="NameChangedCertificate" storeLocation="LocalMachine" storeName="My" />
    </Certificates>
    </WebRole>
    I followed the directions here (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-configure-ssl-certificate/)
    in Step 3 for deploying the cloud service to the azure portal.  And HTTP worked just fine, but the HTTPS endpoint didn't work, we would get a 502 error whenever we tried to access the service via HTTPS.
    We spent a lot of time to debug and see why HTTPS wasn't working, but everything we tried resulted in the same result:  502 error code when accessing the site
    via HTTPS.
    The only way that we were able to get HTTPS working for the cloud service in azure, was to completely delete our instance in the azure portal, and then do a two step deployment:
    Step 1 - Remove the HTTP endpoint from our ServiceDefinition.csdef, like so:
    <Site name="Web">
    <Bindings>
    <Binding name="HttpsIn"
    </Bindings>
    </Site>
    </Sites>
    <Endpoints>
    <InputEndpoint name="HttpsIn" protocol="https" port="443" certificate="staging" />
    </Endpoints>
    </WebRole>
    We then deployed the service to the azure portal.  AND THE SERVICE WORKED WITH HTTPS!!!
    Step 2 - We added the HTTP endpoint back into the ServiceDefinition.csdef, redeployed and both HTTP and HTTPS worked on the site.
    I wanted to post this to help others that may have the same issue, and to see if anyone else has experienced this same thing?  Is this an issue in the azure 2.2 SDK?  This seems like a work around for getting both HTTP and HTTPS endpoints for a
    cloud service, and it seems "wrong".  Does anyone have a better way to do this?
    Tim

    Hi Tim;
    This seems to be an very useful workaround thanks for sharing it. Hopefully this will come in handy for many of us.
    Warm Regards
    Prasant

Maybe you are looking for

  • SSIS SharePointListAdapter fails while exporting a SharePoint List from SharePoint 2007

    Greetings, I'm trying to export List from SharePoint 2007 into SQL Server table, using SSIS  SharePointListSource component (installed from https://sqlsrvintegrationsrv.codeplex.com/releases/view/17652) But in component editor I'm getting this error

  • Connection problems with my MBA from Nov. 2011. It doesn't connect to home wi-fi. How do I fix this?

    I have a MBA that I bought in Nov 2011 and have had serious problems with its wi-fi connection to my home router for the past 3 months. Initially it worked fine. The router works perfectly, as other PCs and devices connect to it without any problem..

  • Db_hotbackup segfaults with -D option

    Running db_hotbackup with the -D option, along with a DB_CONFIG that does not contain a set_lg_dir command gives a segmentation fault. The script below tells the tale. This is with BDB 4.8.30. There's a simple workaround, so we're not stuck. $ ./ex_t

  • Rejected Sales order reuse.

    Dear Friends, I have rejected a Sales order by maintaining reason for Rejection at Document Level and the order is completely rejected. Now system still allows me to reuse the rejected sales order by clearing the "Reason for rejection at Item level".

  • Rendering the timeline, error. iMac

    It´s rendering for a while but then this error message is coming up. The machine is not chrashing or anything. Except from that the machine is not able to complete the rendering.