cancel
Showing results for 
Search instead for 
Did you mean: 

Call post webscript from alfresco portlet IBM

frm85
Champ in-the-making
Champ in-the-making
Hi all,

I've installed Websphere Portal 6.1 and Alfresco 3.4d.

I have a problem when i try to call a post webscript from websphere portal 6.1 with alfresco portlet.

When i try this in alfresco service, it works. I have these webscript fileUpload.get and fileUpload.post.
The first contains a post form with action ${url.service} (call itself).

But when i try this in alfresco portlet always call get webscript.  :cry:

There's any way to call post??

Regards and thanks a lot.
1 REPLY 1

angello0571
Champ on-the-rise
Champ on-the-rise
I´m not sure if this could help you, is the way to call an alfresco's webscript using AJAX via POST method but it works for me:

Alfresco.util.Ajax.request(
         {
            method: "POST",
            url: "/alfresco/service/com/module/authenticate-sitemember",
            dataObj:
            {
               site:Alfresco.constants.SITE,
               userName:Alfresco.constants.USERNAME,
            },
             successCallback:
            {
                fn: function dlA_onActionDetails_refreshSuccess(response)
                    {
         var rawResponse = response.serverResponse.responseText+"";
         var obj = eval('(' + rawResponse + ')');
           }
         });