I followed the example mentioned in this link : http://www.oracle-base.com/articles/10g/utl_dbws-10g.php . and compared it with other examples in other links.
after much researching i was able to load the required JAR files with no errors. I also created the UTL_DBWS in my database correctly. Also, I created the 'add_numbers' function with no errors.
However, In the mentioned example, and in all other examples i tried with utl_dbws , I'm always getting an error in the line that is calling the 'create_service' method.
the error is :
- Code: Select all
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.IllegalAccessException: java.lang.NoSuchMethodError
ORA-06512: at "SCOTT.UTL_DBWS", line 169
ORA-06512: at "SCOTT.UTL_DBWS", line 167
ORA-06512: at "SCOTT.ADD_NUMBERS", line 21
After checking the method in the utl_dbws package I'm finding that this method refers a JAVA class oracle.jpub.runtime.dbws.DbwsProxy.createService :
- Code: Select all
function create_service(wsdl_Document_Location URITYPE, service_Name QNAME)
RETURN SERVICE IS
BEGIN
RETURN create_service_proxy(wsdl_Document_Location.GETURL(), service_Name);
END create_service;
-----------------------------------------------------------------------------------------------------------
function create_service_proxy(wsdl_Document_Location VARCHAR2, service_Name VARCHAR2) return SERVICE
as language java
name 'oracle.jpub.runtime.dbws.DbwsProxy.createService(java.lang.String,java.lang.String) return long';;
and when i search for this JAVA class in my db, i cant find it. Furthermore, when i try to look for the class in the dbws-callout-utility-10131.zip file attached in the example, its not there either, And its not in any of the included JAR files.
Where can i find this class?
if it was an installation error, I would have at least found the class manually inside one of the JAR files.
Im using Oracle database 11g.
thanks in advance.