Hi Abhishek, I was able to duplicate this by trying to deploy an extension to an HTTP server that was not set up for the MarkLogic REST API. Please check these two settings on your HTTP app server config:
* url rewriter: should be /MarkLogic/rest-api/rewriter.xqy * rewrite resolves globally: should be true Dave. -- Dave Cassel Developer Community Manager MarkLogic Corporation<http://www.marklogic.com/> Cell: +1-484-798-8720 From: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Tuesday, September 30, 2014 at 8:22 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [MarkLogic Dev General] REST URL Exception Hi All, I am trying to register REST URL using curl command and getting 405 Method not allowed exception. Let me know if there is any thought. $curl --anyauth --user username -X PUT -H "Content-type: application/xquery" -d@"./xquery.xqy" "http://host:8005/v1/config/resources/process?method=put&put:param=xs:string"http://host:8005/v1/config/resources/process?method=put&put:param=xs:string Exception: 405 Method not found Thanks Abhishek This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
