Hi Denis, No this is not the expected behavior, this works properly in the standalone product, and as Azeez mentioned this has to be a Stratos specific issue, maybe the LB is not letting these type of requests through? ..
Cheers, Anjana. On Sat, Mar 24, 2012 at 11:20 PM, Denis Weerasiri <[email protected]> wrote: > Hi, > I used HTTP DELETE to delete a resource in wso2 stratos-live data services. > And my configurations are > > <resource path="product/{productCode}" method="DELETE"> > <call-query href="productDeleteQuery"> > <with-param name="productCode" query-param="productCode" /> > > </call-query> > </resource> > > But "405 Method Not Allowed" is received. Is this the expected behavior? > > My request and response are > > curl -v -X DELETE > http://data.stratoslive.wso2.com/services/t/ddweerasiri.org/ddweerasiri_ds.HTTPEndpoint/product/S10_1678 > > * About to connect() to data.stratoslive.wso2.com port 80 (#0) > * Trying 209.126.198.125... connected > * Connected to data.stratoslive.wso2.com (209.126.198.125) port 80 (#0) > > DELETE /services/t/ > ddweerasiri.org/ddweerasiri_ds.HTTPEndpoint/product/S10_1678 HTTP/1.1 > > User-Agent: curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 > OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15 > > Host: data.stratoslive.wso2.com > > Accept: */* > > > < HTTP/1.1 405 Method Not Allowed > < Content-Type: text/html; charset=UTF-8 > < Content-Length: 222 > < > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <html> > <head> > <title>405</title> > <meta http-equiv="Cache-Control" content="no-cache"/> > </head> > <body> > <p> > Method Not Allowed > </p> > </body> > </html> > * Connection #0 to host data.stratoslive.wso2.com left intact > * Closing connection #0 > > -- > Thanks, > Denis > ---------------------------------------------------------- > *Denis Weerasiri* > Software Engineer > Integration Technologies Team, WSO2 Inc.; http://wso2.com, > *email: denis <http://goog_277208233/>** [AT] wso2.com <http://wso2.com/>* > *phone: +94117639629 > * > *site: > **https://sites.google.com/site/ddweerasiri/*<https://sites.google.com/site/ddweerasiri/> > *blog: **http://ddweerasiri.blogspot.com*<http://ddweerasiri.blogspot.com/> > * > twitter: **http://twitter.com/ddweerasiri*<http://twitter.com/ddweerasiri> > * > linked-in: > **http://lk.linkedin.com/in/ddweerasiri*<http://lk.linkedin.com/in/ddweerasiri> > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Anjana Fernando* Senior Software Engineer WSO2 Inc. | http://wso2.com lean . enterprise . middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
