cancel
Showing results for 
Search instead for 
Did you mean: 

webscripts

sudhakar
Champ in-the-making
Champ in-the-making
Hi ..
I am new to this forum as well as web scipts, I tried upload example that have been given in the website. I have uploaded the files(upload.post.desc.xml, upload.post.html.ftl, upload.post.js)under below mentioned  directory in alfresco.

The directory:
Company Home > Data Dictionary > Web Scripts > org > alfresco > sample ..

I am not able to access upload thru browser..

It shows the below mentioned error while accessing..(http://localhost:8080/alfresco/service/sample/upload)

e method specified in the Request-Line is not allowed for the resource identified by the Request-URI. 
  
Message: Script url /sample/upload does not support the method GET 
  
Exception: org.alfresco.web.scripts.WebScriptException - Script url /sample/upload does not support the method GET 
   
org.alfresco.web.scripts.WebScriptRuntime.executeScript(WebScriptRuntime.java:121) 
org.alfresco.web.scripts.WebScriptServlet.service(WebScriptServlet.java:109) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) 
java.lang.Thread.run(Thread.java:595) 
   
Server: Alfresco Community Network v2.1.0 (482) schema 64 

could anybody help me on this?

Thanks in advance..,

R.Sudhakar.
3 REPLIES 3

dinger
Champ in-the-making
Champ in-the-making
Are you typing that URL directly into the browser?

If so it won't work because your browser will be calling GET on the URL, not post, for which you set up your script.

Rob

alfresco_gopesh
Champ in-the-making
Champ in-the-making
Please check your service index…


if the entry for the webscript is there or not…

if not check the log might the webscript wasn't added successfully.

u can check your index of webscript using localhost:<port>/alfresco/service/index/


if entry is there for update then the webscript was ok…but problem with the url u passing…

here you dont have included the upload.get…and url refering to get so server will not able to find the same instead post is there..so also included all get.js,desc and ftl and then try to run

sudhakar
Champ in-the-making
Champ in-the-making
hi..
     Thanks for the valuble replies..

wiht help of this forum ..I have got over all idea abouth the web scits and DMS in Alfresco..once again thanks to all..

How to integrate my CMS(like open CMS) with alfresco DMS part using webscripts..?

Means that..DMS API need to accessed and also documents need to uploaded from using Alfreco DMS from My CMS..

…How to proceed for this?..

and what are all prelimeneries need to be done ..?

could anybody help me on this?



Thanks in Advance

By,
R.Sudhakar