PORTAL Error

I was experimenting with Oracle Portal and will i was registering PL/SQL provider, i hit this error

 

An error occurred when attempting to call the providers register function. (WWC-43134)
An unexpected error occurred: User-Defined Exception (WWC-43000)
An unexpected error occurred: ORA-06550: line 1, column 19:
PLS-00302: component 'REGISTER_PROVIDER' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored (WWC-43000)
 

Solution

You must a procedure called "register_provider" , even if it contains NULL

create or replace package ammar is
procedure hello ;
procedure register_provider (id number);
end;
/

create or replace package body ammar is
procedure hello is
htp.print ('hello');
end hello;
procedure register_provider (id number) is
null;