10g : database web services

Does JDeveloper 10g support web service deployment to the database?
Thanx
Andrus

Currently you need to carry out a few steps to deploy web services to the database from JDeveloper
1. Load the SOAP client stack (one-off load)
see http://otn.oracle.com/sample_code/tech/java/jsp/loadjars.html
2. Use the JDeveloper wizard to generate a stub to call your web service
3. Manually create a second stub class with a static method to call the generated stub. The database requires this. For instance (where MyWSStub is the stub and MyWSStaticStub holds the static call):
package model;
public class MyWSStaticStub
public MyWSStaticStub()
public static String callMyWS(String s)
MyWSStub new MyWSStub(s);
4. Create a database deployment profile (File-> New -> Deployment Profile -> Load Java and Stored Procedures) and select your stub and static stub as the classes to be deployed
5. Right Mouse menu of the deployment profile -> Add Stored Procedure and select the static method (callMyWS)
6. Deploy the profile and use the Stored Procedure (deployed with the profile) to call the service
In the future we hope to automate these steps
Hope this helps
regards
Susan
JDeveloper Web Services Team

Similar Messages

  • Database Web Services with Oracle 10g

    Forgive my lack of knowledge on this issue, but we are still researching our options and we have very little experience with these new technologies.
    We have been using Oracle Database server for years and we are looking now into integrating or applications to offer farther solutions to our customer as well as to implement a b2b solution.
    Our b2b solution consist of a relationship between Partners of our customer via a hub server that would reside on our quarters. In other words our customers servers would communicate with their partners via our server and vice versa.
    We are planning to use Fusion to implement our Hub server and my question is:
    "Should we deploy A J2EE container to our customer where 'client services' would run to maintain a runtime communication with our hub or can we skip the J2EE container by using Database Web Services?"
    And a related question:
    "What Oracle components are required for Database Web Services to work? How are they implemented?"
    Thank you!

    After farther reading about Database Web Services, it seems that you still need at least OC4J on the customer side to run Database Web Services. Is that correct?
    So if the best approach is to deploy OC4J to our customers, how difficult is to do so and how can I configure each one of my customers so my hub server can uniquely identify each one of them?

  • Database Web Service Installation

    Hi All,
    Using Oracle 10g. Trying for Oracle Web Service Installation(Database Web Service).
    Looking to implement 'Database Call-In' approach with 'Exposing a SQL Query or DML Statement as a Web Service' option.
    Gone through the Web Services Developer's Guide, but unable to grasp complete process from it.
    Can anyone help me in sharing, the complete requirements/Prerequisites that i should have for implementing this web service??
    Also how can i confirm whether my app server has OC4J JAX-RPC processing servlet, WebServicesAssembler in it??
    Dont have much clue regd this implementation. Want to know,learn more for doing this. Please let me know if any other info req for
    answering my questions.
    Thanks,
    Sandeep

    very helpful Rene..
    Sharing one which was found from Web Services Developer's Guide..
    http://download.oracle.com/docs/cd/B31017_01/web.1013/b28974/gettingstart.htm#BABHFFEG
    any other method available to develop Web service from SQL Query rather than using PL/SQL package??

  • Database Web Services and OC4J in Oracle Database Standard Edition

    Hi all,
    Oracle Database Standard Edition has database web services, which require OC4J if the database is to be used as web service provider. So, can OC4J be used in production with Oracle Database Standard Edition?
    Thank you for this clarification :)
    Mitko

    Yes. :)

  • Oracle Database Web Service Client using UTL_DBWS :: ORA-29532 Error

    Hi,
    I have the Oracle Database 10.2.0.1.0 :-
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - ProductionI have written a simple Web Services Client using the classes gfrom the UTL_DBWS package. I loaded the JAR file dbwsclient.jar in the SYS Schema and I am trying to use it in the USF Schema.
    However, I have hit this error & I ma unable to proceed :-
    SQL>  select get_stock_price from dual;
    select get_stock_price from dual
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.IllegalAccessException: javax.xml.rpc.ServiceException:
    java.security.AccessControlException: the Permission
    (java.lang.RuntimePermission getClassLoader) has not been granted to USF. The
    PL/SQL to grant this is dbms_java.grant_permission( 'USF',
    'SYS:java.lang.RuntimePermission', 'getClassLoader', '' )
    ORA-06512: at "USF.UTL_DBWS", line 193
    ORA-06512: at "USF.UTL_DBWS", line 190
    ORA-06512: at "USF.GET_STOCK_PRICE", line 17Can you please help me with this ?
    Regards,
    Sandeep

    Hi,
    The error message said
    the Permission(java.lang.RuntimePermission getClassLoader) has not been granted to USF.
    I'd follow the suggestion
    The PL/SQL to grant this is dbms_java.grant_permission( 'USF','SYS:java.lang.RuntimePermission', 'getClassLoader', '' )
    In case you have not done so, consult the Callout Users Guide @
    http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm
    Kuassi http://db360.blogspot.com

  • Deploying Database Web Services: Failed

    I have installed 10g database, 10g Developer & Started the database, enterprise manager, isqlplus.
    I went on to the tutorials & started working of purchase web application. I got the following error.
    =========================================================
    The demo has generated an error. Please check that you have followed the setup instructions in the Readme. If you have and are still encountering an error, please post a message on the OTN Discussion Forum currently located here. Thank you.
    Error: null java.lang.NullPointerException at oracle.otnsamples.wsclient.StoresBean.listProducts(StoresBean.java:64) at Products.jspService(Products.jsp:241) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)

    Yes. :)

  • Are you using JDev 10g for Web Services, service oriented development?

    An author from a magazine is interested in talking to JDeveloper 10g Preview users about Web Services, Service Oriented architecture and related developer-oriented issues.
    If you are currently using JDeveloper 10g and are willing to be interviewed for this article then I'd appreciate it if you could drop me a note at [email protected]
    Thanks,
    Arun

    You must use Network Shared Variables, or raw TCP at this point. However, you should keep your eye out for LV 2013, as significant enhancements have been made to the exact use case you have referred to.

  • NEED HELP WITH DATABASE WEB SERVICE INTEGRATION

    Hello everybody. I have created a web service with returns a list of records extracted from a database. It works, Apex references the web service and get the result when I test it, but I want to display results in a page type "Form and Report on Web Service" and when I associate the web service to the page and click on "Finish Button" I get this message:
    "This Web service does not have a result tree in its definition that is appropriate for a report. You may wish to run the Form on Web Service wizard instead.".
    It is correct, of course, but I do not have an example of how to do an appropriate definition for this kind of report.What kind of definition is it waiting for? What I do in the web service is to return a list of items (a resultset of a query such as "SELECT PRODUCTID, PRODUCTNAME, PRICE, IMAGEHREF FROM PRODUCTS") concatenated in a string (commas-separated values). What kind of output must the web service produce or how have I to structure the associated wsdl document in order to display the result with a "form and report on web service" page?
    Every help or example is welcome.
    Thanks a lot and have a nice day
    Stefano-ITALY

    i saw that it is giving this below error but not sure why ??
    org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method registerEmployee
    at org.apache.axis2.util.Utils.getInboundFaultFromMes sageContext(Utils.java:486)
    at org.apache.axis2.description.OutInAxisOperationCli ent.handleResponse(OutInAxisOperation.java:343)
    at org.apache.axis2.description.OutInAxisOperationCli ent.send(OutInAxisOperation.java:389)
    at org.apache.axis2.description.OutInAxisOperationCli ent.executeImpl(OutInAxisOperation.java:211)
    at org.apache.axis2.client.OperationClient.execute(Op erationClient.java:163)
    at webservice.EmployeeServiceStub.registerEmployee(Em ployeeServiceStub.java:488)
    at webservice.EmployeeClient.main(EmployeeClient.java :22)can anyone suggest why this might come ?
    thanks

  • JDeveloper and Database Web Service Connection

    Hi all,
    I'm trying to publish a Java class as a web service. However, I'm getting the following error for the sample code below. Please help me out pubish this class as a Web service.
    The error:
    No methods were selected. Select one or more methods to publish as a web service.
    My code is below:
    package hr;
    import java.sql.Connection;
    import java.sql.SQLException;
    import oracle.jdbc.pool.OracleDataSource;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import oracle.xml.sql.query.OracleXMLQuery;
    import oracle.xml.parser.v2.*;
    public class DataHandler {
    public DataHandler() {
    String jdbcUrl = "jdbc:oracle:thin:@127.0.0.1:1521:orcl";
    String userid = "hr";
    String password = "mohammed";
    Connection conn;
    Statement stmt;
    ResultSet rset;
    String query;
    String sqlString;
    public void getDBConnection() throws SQLException{
    OracleDataSource ds;
    ds = new OracleDataSource();
    ds.setURL(jdbcUrl);
    conn=ds.getConnection(userid,password);
    public ResultSet getAllEmployees() throws SQLException{
    getDBConnection();
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    query = "SELECT * FROM Employees ORDER BY employee_id";
    System.out.println("\nExecuting query: " + query);
    rset = stmt.executeQuery(query);
    return rset;
    }

    Dear dvohra16,
    Thank you for the great book you're recommended. It's really a powerful tool that makes things much better for me.
    I've noticed that you're the author of this book. I'm really honered to discuss with the problems I have and
    I'm so lucky to get your responses for my questions.
    My current question is based on this book. How do I orchestrate a web service that inserts into an oracle database table and a web service that reads
    the contents of that table?
    In other words, the first web service inserts some values into a table and the second should read these values.
    So, how does BPEL orchestrate these web service such that the output of the first one is the input of the second?
    Your assistance is truly appreciated.
    Thank you for your time.

  • Licensing question of OAS 10g with web services

    Does it cost anything extra to run/manage/secure web services built with jdeveloper 10g running on OAS 10.1.3?
    thanks,
    wes

    Hi Shay,
    I have followed exactly what the tutorial
    http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm
    explains. But at the end of the wizard , I cant select the methods for the web service to expose. When i click whynot ? button it says the the validity of the methods is not correct and there may be compilation errors. My JDeveloper is uptodate . When I selected Oracle service in the Web Service type selection of the wizard , it did everything and exposed methods, generated wsdl .. etc..
    Can you please tell where the problem is ?

  • JDeveloper 10g and Web Services

    Hello All,
    I am having a problem to generate a Web Services client with my JDev10g (9.0.5.1). It only generates a class with no web service methods to call.
    I tried to generate on JBuilder and it works!
    This is the WSDL I am trying to use:
    http://200.204.56.46/SmartCardWS/wsdl/SmartNetWebServiceService.wsdl
    I should use the SOAP protocol.
    Does anyone have any idea how to create the client?
    Thanks!

    Hello raghu,
    I thought the same as you about the WSDL, but, surprisingly JBuilder made it. In this WSDL it makes a reference (import) to another WSDL. I tried to use this one, and it did not work too.
    The company who deployed the Web Service told me that the Web Service is done with IBM WSAD.
    I am going to test the classes generated by JBuilder and see if they can solve my problem whether or not. It uses the Axis API. I am afraid it won´t work!
    Thanks anyway!

  • Cannot start Oracle 10g database console service

    Hello,
    I was given a machine with Oracle 10g standard edition already installed.
    I had problem with starting both the TNS and OrclDBConsole services.
    After modifying the HOST Name in both the tnsnames.ora file and the listner.ora file i was able to start the TNS service. But I am still having problem with starting the OrclDBConsole service.
    Any idea or suggestion what's wrong?
    Thanks for the help!
    Mitra

    The DBConsole may also be started as a service.
    The service for DBConsole is
    Oracle<oracle_home><SID>DBConsole

  • Database Web Services call-out with 9i

    I am trying to test the callout utillty with DB 9.2.0.5.
    I have downloaded the sample for 9i but having problems loading the java classes.
    I am not interested in using jPublisher, I just want to be able to call webservices from within the database.
    The instructions say that utl_dbws.jar is only used for jPublisher and just needs setting in the classpath. I have down this.
    When I run loadjava I get hundreds of classes unresolved, and when I look in the database lots of classes are uncompiled. I try and compile some of them and they often refere to classes that have not been installed.
    How can I resolve this?
    I have seen NOTE 338092.1 which refers to using an option -genmissing, does this work with the earlier releases of the DB?
    Has anyone ever got this sample code to load and work on a 9.2.0.5 database?
    Any help appreciated.
    Stuart

    I think at first you have to load some jars in the database. i.e the Oracle SOAP implementation for JDK 1.3.
    I tried this. I used the jars from an older OC4J. It was not easy. Oracle compiled 2 classes with the wrong target. I recompiled it in the database.
    I generated the Stub with Jdeveloper. (I don´t want to install JPublisher) and load in the database.
    All classes was compiled and valid.
    The stub still does not work in the database. I got an ClassNotFound Exception in the Aurora VM.
    I gues Oracle WS Client implementation for DB 9.2 is not perfect.

  • IPM 10g createPackages web service method

    Hi
    How to generate the RequestId needed by the packagesArray[] parameter of the createpackages method to be exposed for creation of packages programmatically in IPM 10g.
    This will be useful when integrating IPM with OFR without using filer.

    Hi
    How to generate the RequestId needed by the packagesArray[] parameter of the createpackages method to be exposed for creation of packages programmatically in IPM 10g.
    This will be useful when integrating IPM with OFR without using filer.

  • Calling Web Service from Database

    Hello,
    we want to call a Web Service from Database. What will we need or what must we install to do this. We're using a 10g Database.
    Best regards ,
    Goronja

    Hello,
    This feature is called "Database Web Services Call Out" and documented in:
    - Developing a Web Service Client in the Database
    Regards
    Tugdual Grall

Maybe you are looking for

  • Upload image into mysql database residing on  remote server is not working?

    hello to all, i need ur help,we hav online site . i have to upload image(which can b from any pc) into mysql database residing on remote server of which we (don't hav actual path of that server). the solution i'm using is working correctly on local b

  • Sharing an external hard drive

    I have 3 systems (2 minis running Tiger and 1 G4 running OS9) networked through a D-Link DI-524 router. I also have a LaCie 160GB external hdd on one of the minis. I would like to know how to configure things so that the external LaCie drive is visib

  • Change the owner of a project.

    I reinstalled my system. However, I changed my user name from jerry to home. Now I am unable to open any old iDVD projects. iDVD displays the message: Project locked by other user The project Belvin and Katrina # 1 is locked by the user jerry (user I

  • Fax document retrieved through ARCHIVOBJECT_GET_TABLE,added to mail and sent as attachment

    Hi Team,    The fax document with multiple pages is retreived through FM 'ARCHIVOBJECT_GET_TABLE' and inserted to the mail and sent as an attachemnt .    But the attachment has only one page .    if anyone has solved this type of issue.  Please provi

  • Please refund my Money!!!!

    Tried to buy a $500 vacuum from Best Buy online in Jan 2014- delivery was promised no later than 2-3-14.  UPS lost, broke, or did whatever to the vacuum, but failed to deliver it to me and have acknowledged to Best Buy the vacuum never left their Ont