How to invoke a Java based webscript from inside a Java based WS

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2014 01:59 AM
Hi,
Within a Alfresco(4.1) Java based Webscript, I need to invoke another Alfresco Java based Webscript(/alfresco/service/customservice?abc…).
I don't prefer making a Apache HttpClient call as its a bad practice for many obvious reasons . I did come across remote.connect approach but I guess its for calling a JS based WS.
Appreciate your help.
Thanks,
Somu
Within a Alfresco(4.1) Java based Webscript, I need to invoke another Alfresco Java based Webscript(/alfresco/service/customservice?abc…).
I don't prefer making a Apache HttpClient call as its a bad practice for many obvious reasons . I did come across remote.connect approach but I guess its for calling a JS based WS.
Appreciate your help.
Thanks,
Somu
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2014 10:27 PM
If you want to call alfresco webscript api from share,you can use
org.springframework.extensions.webscripts.ScriptRemote
class,use it like this ScriptRemote scriptRemote = serviceRegistry.getScriptRemote(); Response response = scriptRemote.connect().get(uri);
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2018 03:32 AM
Hi
How do we call alfresco webscript api from repo side in Java policy class, is ther any way?
Please suggest.
