Hi,
We have an existing oracle package function to decrypt password. The function name is decrypstring which used the dbms_obfuscation_toolkit. My problem occur when I tried to access the function in Powerbuilder.
I created global external function in Powerbuilder as follows:
public long function decryptstring(string input_str, ref string output_str, ref string sqlmsg) RPCFUNC ALIAS for "packagename.decryptstring"
I invoke the function by:
long ll_rtn
string ls_output
string ls_msg
string ls_input
ls_output = space(500)
ls_msg = space(500)
ls_input = 'inputword'
ll_rtn = SQLCA.decryptstring(ls_input, ls_output, ls_msg)
....
When I tried to save the code in PB, I got an error msg "unknown function name."
Not quite sure where I miss something. Or is there any other way where I can invoke the package function with return value?
Can anybody please help? Thanks.
Nepoh
We have an existing oracle package function to decrypt password. The function name is decrypstring which used the dbms_obfuscation_toolkit. My problem occur when I tried to access the function in Powerbuilder.
I created global external function in Powerbuilder as follows:
public long function decryptstring(string input_str, ref string output_str, ref string sqlmsg) RPCFUNC ALIAS for "packagename.decryptstring"
I invoke the function by:
long ll_rtn
string ls_output
string ls_msg
string ls_input
ls_output = space(500)
ls_msg = space(500)
ls_input = 'inputword'
ll_rtn = SQLCA.decryptstring(ls_input, ls_output, ls_msg)
....
When I tried to save the code in PB, I got an error msg "unknown function name."
Not quite sure where I miss something. Or is there any other way where I can invoke the package function with return value?
Can anybody please help? Thanks.
Nepoh