Yeap those are my thoughts as well.
After reading you’re reply I did a test, drag and drop the webservice to the portlet and ran my custom action again (clicking the submit button). This time it worked. :shock:
To have access to this kind of beans they have to deployed on the portlet and hidden (I don’t want the user to see it)? Is this correct way to do it?
I thought the beans created on the initialisation with the binding and if you have it on Bindings window it would be available on CAF(java source), ok they are available but not populated (“instantiated”). I can see in the source you always have YourBeanType YourBean=null, but should this be populated at initialisation time.
A second alternative is to make the YourBean=getYourBean() and then manually populate each required field.
On the publishdoc.resfresh().
Tried this out but nothing is being written and thanks for the tip.
It’s a Command Button exiting the page not an ajax call. 
#webMethods-BPMS#webMethods#MWS-CAF-Task-Engine