Oracle Cursor as output


I am calling a Oracle function using JDBC StoredProcedureWithSignature adapter service that returns a Oracle REF Cursor. I see output field type is generated as ‘Document’. But when I run the service, I get empty output. Is there any step I am missing?

I can run this function from SQL clients and it just returns 1 string (XML). I do not know the column name that it will return.