Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

New B question

Thread view: 
g - 05 Jul 2006 16:45 GMT
I have to connect and call an api on apache sever
I have the api code but have not got a clue where to start
my experience is in vb and oracle database
I would like to call the api from PL/SQL but i don't know where to start any
ideas
G
Chris Smith - 05 Jul 2006 17:02 GMT
> I have to connect and call an api on apache sever
> I have the api code but have not got a clue where to start
> my experience is in vb and oracle database
> I would like to call the api from PL/SQL but i don't know where to start any
> ideas

If you want to do this from PL/SQL, then you're in the wrong place.  If
you want to do it from Java, then you'll need to provide more
information.  For example, what kind of API is it?  SOAP?

Signature

Chris Smith - Lead Software Developer / Technical Trainer
MindIQ Corporation

Jan Schaefer - 06 Jul 2006 07:32 GMT
> I would like to call the api from PL/SQL but i don't know where to start any
> ideas

Since Oracle 9i you can implement Java classes directly in the database
with:

create or replace and compile java source named foobar as
package foo.bar;

public class FooBar {

 String getFooBar(String foo) {

   return foo + "bar";
 }
}

To call the methods of your class from PL/SQL you have to write wrapper
procedures and functions like this:

function get_foobar(foo in varchar2)
 return varchar2
 as language java name
   'foo.bar.FooBar(java.lang.String) return oracle.sql.VARCHAR2';

Warning: All code is untested.

Have also a look at the Java Developer Guide from Oracle:

http://download-west.oracle.com/docs/cd/B14117_01/java.101/b12021/toc.htm

Hope that helps.

Cheers,

Jan


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.