Expose Table as Webservice

I am trying to create a internal web service that will return a recordset based on filter.
Platform JDev 10g
1. Made Database connection.
2. Created new application. (JSP, Struts, EJB)
3. Created Model Diagram. (Which Diagram should I create.)
If I choose web service Diagram I cannot drop my table view onto diagram.
4. ? using When I drag the Table onto the Diagram. Do I create a EJB or Java Class. I ask this because only Java Classes can be made into WS.
What steps do I need to take to expose a table as a webservice???

Eric,
You can't publish a table as a web service directly,
You'll need some code that access the table and then you'll publish this code as a Web service.
The code can be a simple Java class doing JDBC calls, a BC4J component, and EJB or even a PL/SQL stored procedure that you publish as a web service.
Here are some tutorials that might help:
For PL/SQL
http://otn.oracle.com/tech/webservices/htdocs/series/plsql/index.html
For BC4J
http://otn.oracle.com/tech/webservices/htdocs/series/pattern/
for EJB
http://otn.oracle.com/tech/java/oc4j/1003/how_to/how-to-ws-ejb21.html
More on http://otn.oracle.com/tech/webservices

Similar Messages

  • Expose IDoc as Webservice

    Hi,
    <i>"RFC-enabled function modules, function groups that contain an RFC-enabled function module, BAPIs, and XI message interfaces can be made available as Web services without any additional programming."</i>
    http://help.sap.com/saphelp_nw04/helpdata/en/e5/a68d10f4eb894087fc9c1c3f9ae433/content.htm
    I like to know if IDoc's can also be exposed as a Webservice..? If Yes, How.
    Cheers,
    Siva Maranani.
    Message was edited by: siva  maranani

    Hi siva,
    Have you achieved this thing?
    Have you succeeded to expose IDoc as webservice?
    If yes then how you have done it?
    Thanks in Advance,
    Bhavik

  • Expose IDoc as Webservice without PI/XI

    Is it possible to expose an IDoc as an webservice without PI/XI?
    I noticed there is a port called XML-HTTP. Does it use SOAP? Can i use this port for webservices.
    Thanks.

    Hi,
    Precisely.
    Idoc is not a program but structure. You can create RFC which interact with this Idoc or related structure and then expose this RFC as webservice.
    Regards,
    Gourav

  • Exposing ejb3 as webservices

    hi java folks,
    I am exposing my existing ejb3 components as web servieces.
    cleint tries to access webservice using JNDI lookup,but i am getting following error,
    javax.naming.NameNotFoundException: service not bound
    could anybody tell me does it requires any deploy descriptor files.As i am using ejb3 its full of annotation.No deployment descriptor file is required.But to bind jndi name with webservice do i require any additional descripor files?
    please help me..
    thanks in advance.

    Thanks Timo !
    Found out to be an issue with Oracle Fusion Middleware control (http://<hostname>:<port>/em ) validating for required Inputs, but when tested with SOAP UI or Web logic Test Client (http://<hostname>:<port>/wls_utc) it works as expected. Reported the issue to Oracle Support and the problem has been reproduced there.
    Regards,
    Prashanth

  • Exposing IDoc as Webservice

    Hello Everybody,
    I want to find the way how can i expose the IDoc as webservice.
    First of all is it possible? If yes then how can we achieve this?
    Thanks In advance,
    Bhavik

    Hi Bhavik,
       There is a basic difference between web service and IDOC. Web service is a call based interface, where you use request and response mechanism to call a functionality, these are mostly synchronous. IDOC is document based interface, these are mostly assynchronous.
       Coming to your problem, since you want to use IDOC's you can not expect to get a response synchronously(Processing of IDOC depends on partner profile) and I am quite sure you are talking about an inbound scenario because for outbound scenario you will consume web service rather than exposing web service.
       If my assumption is correct then from WAS 6.20 onwards you can use FM IDOC_PROCESS_ASYNCHRONOUS (I can't recall the exact name of the FM but it sounds like this) and create a WSDL for this using BSP application 'WEBSERVICEBROWSER'.
    Regards,
    Sanjeev

  • Tables and webservices

    I have created a webdynpro application based on a webservice. This webservice creates a quotation in a legacy system. The quotation/webservices has one header line and several item lines.
    I imported the WS in the NW Dev Studio 2.0.9 and have the structures and methods available to read and create a quotation.
    Reading was simple with the NW Dev templates for “Form”, “Table” and “Action Button” I created the view and it works fine. ( I also have a quotation list view and from that view I can navigate on row selection to the quotation view.)
    Now I want to create a new quotation. The view looks almost the same but I don’t know how to add, modify and delete items to the table. The CarRental example looks the same but it adds the items to the table via the WS. I want to compose the complete set of header and item data first and then call the WS.
    I can’t figure out how to use the wdContext object to do this. There is hardly any documentation about this.
    Does anyone know of a good sample how to do this?
    Thanks a lot in advance!
    Jacco

    Hello Jacco,
    Have you checked out the tutorial "How to implement context programming and data binding"
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/web dynpro tutorial and sample applications.faq#q-18
    Hope that helps!
    Best regards,
    Karin

  • Exposing Constants in WebServices

    In web service is it possible to expose the Constants used in the application. Let say for my web serice I need to pass value for Operation, possible values for this are (add, delete, update). Is it possible expose these constant values(add, delete, update) visible to client application accesssing the web service.
    Server Side: public static String[] OPERATIONS={"ADD", "DELETE", "UPDATE"};
    client Side: mywebsericeport.setOperation( mywebservicePort.ADD );
    thanks
    Manju

    Check V_T511K , V_T511P also
    yes it is important for some of the indian specific things like PF and ESI we maintain the constants here
    check PF bas in table 511P where u will maintian the which ever is less i mean 6500
    Edited by: Sikindar on Dec 30, 2008 9:29 AM

  • How to check exposed table or class etc in SAP_BASIS 700

    Hi Colleague ,
                         I want to check whether a table or a class is exposed by SAP for customer use ,in SAP BASIS 700 . Can anyone help me how to do that . For 710 or higher i know there is a package interface where they are defined but  how is it done in 700.
    Someone told me to check RODIR but that is for Function module only , could not use for data base tables.
    Thanks in advance.
    With Regards,
    Saurabh Kumar Pandey

    Hi Sateesh,
    SAP_ABA 701 0007
    SAP_BASIS 701 0007
    PI_BASIS 701 0007
    ST-PI 2008_1_700 0003
    SAP_BS_FND 701 0008
    SAP_BW 701 0007
    SAP_AP 700 0021
    WEBCUIF 700 0008
    SAP_APPL 604 0008
    Based on the component information provided by you, I can conclude that your system is ECC 6.0 EHP4.
    EHP4 is derived from your component SAP_APPL 604.
    In addition to this your EHP4 system has NW stack on NW 7.0 EHP1.
    Hence your system is ECC 6.0 EHP4 with NW 7.0 EHP1.
    Hope this answers your query.
    Regards,
    Deepak Kori

  • How to populate the table using webservice

    Hi,
    i have created the web service from function module and  integrated this web service in interactive form using New data connection.
    I have drag and drop all field into the form table and test the form,but its not populate table.
    if any script need for this,
    Kindly explain in detail or give the sample code.
    Thanks in advance
    Parthasarathi

    Dear folks
    M about to create a midlet
    application in which i need to populate my table
    with the current stock exchange values. Since these
    values get changed dynamically , I planned to use
    streaming. Since m new to streaming ,pls someone
    come up to guide me in right path. M using Canvas
    application. I appreciate all the repliesthats fine and funny....
    let me tell you something, in GCF everything you fetch through GPRS is bound to come as an inputstream and whatever request you send is passed as outputstream. so if you have worked with GCF, you have worked with streaming already. isn't it.
    SD

  • Few business scenario for exposing Schema as webservice in biztalk

    Can anyone give me few business scenario when we need to publish Schema as webservice in biztalk
    Regards
    Suresh

    A lot of people prefer to publish schemas as a service as opposed to publishing the orchestration as a service. This (to list a few)..
    disassociates the orchestration version from the service definition and for every change in the orchestration you do not have to republish the web service.
    allows you to create an orchestration using direct bound ports. This provides you with a flexibility to invoke the orchestration across two-way (request-response) or one-way ports. This permits service virtualization where the same service can be invoked
    through multiple protocols, etc.
    In a large project you may be required to publish the Service Definitions (WSDL) well in advance for others to start their portion of the work, in which case having decided on the schemas, this is a easy way to publish service contracts while you work on
    building them.
    Regards.

  • Table to webservices conversion

    Hi,
    I need to convert Table data into wizdull files(wsdl format), please let me know how this can be achieved
    Env : ODI 11.1.1.5, Oracle DB(11g R2), OS : Solaris
    Regards,
    M

    You can use create data service in ODI to make your table data accessible through web services interface. Please see Working with Data Services - 11g Release 1 (11.1.1)

  • Exposing complete data structure in webservice

    Hello Experts,
      I have a scenario where a Bapi functionality(server proxy) is exposed as a webservice .
    So scenario will be SOAP -> XI -> Proxy (calls a BAPI)
    In our BAPI (proxy, target structure) we are having 100+ fields. Currently the WS consumer - application making SOAP call to our webservice will send only 20 (minimum required) fields. But in near future it will be updated to send all 100 fields.
    Is it OK to include all 100 fields in source data type even though we will receive only 20 fields. (If i mark all of them as optional i.e. occurance 0..1) Or will it result in error?
    Thanks in Advance,
    XI Queries.

    Hi,
    >>Is it OK to include all 100 fields in source data type even though we will receive only 20 fields. (If i mark all of them as optional i.e. occurance 0..1) Or will it result in error?
    yes it is ok to have all 100 fields in source even if you use only 20 fields. But later when you make them as mandatory or anything, you need to regenerate the wsdl
    Regards
    Suraj

  • Exposing OIM APIs as webservice

    Hi,
    I wanted to know if i can expose OIM APIs as webservice?
    As per my reqmnt, i need to implement forgot password and change password functionality for OIM users from a portal application.
    So wanted to know if I can use OIM APIs say getChallengeValuesForSelf , compareChallengeValuesForSelf, changePasswordForSelf and then expose them as webservice?

    Can I do this...
    Create a WebService using NetBeans Editor...
    In it add a web method, which basically is using OIM API say getChallengeValuesForUser to fetch some value and then returning it as output of this web method?
    I'll be setting all the system properties required for calling OIM API here itself and also would make the connection to OIM here.
    I tried doing so, but getting an exception while I try to deploy the webservice,
    com.sun.xml.ws.model.RuntimeModelerException: The web service defined by the class weblogic.wsee.async.AsyncResponseBeanSoap12 does not contain any valid WebMethods.
    Kindly suggest.

  • Can I expose existing java applications as webservices

    I have some java based applications doing functions such as datamining, visualization ... Can I expose these as webservices? How to do that? Can I directly expose it as webservices? What tools should I use? Please explain.
    Thanks

    basically, if you have a java application doing stuff, you can create a webservice by writing JSP pages and beans and/or servlets. very simple example:
    - write a jsp page for data input that access your bean
    - write a bean that routes the request/response to/from your application classes
    all you need for doing this is a webserver and a servlet container (e.g. tomcat).
    however, if youre application is doing some graphical output, you could split your application in two: a client application for the visualization, which is communication with a servlet or a full blown J2EE server (http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/WCC.html).

  • Sending Email from EJB exposed as Webservice

    Hi,
    I have created a EJB, which i have wrapped in an EAR & exposed as a WebService.
    <b>I want the code to send an email from the EJB</b>
    I know there is a code to send email, but that code is to send an email from WebDynpro. I am not sure if that will work with the EJB.
    Any ideas??
    Regards,
    Hanoz

    Hi,
    Thanx for the prompt response.
    I went through that blog. Its good, but it requires me to install additional plugins, which is dont want to do.
    Here is the code to send email from WebDynpro:
    String l_str_to = "<destination email id>";
                   String l_str_from = "sender";
                   String p_subject = "U've got mail!!! ";
    //               String p_l_request_id = "1" ;
                   // SUBSTITUTE YOUR ISP'S MAIL SERVER HERE!!!
                   String host = "<SMTP SERver ip>";
                   // Create properties, get Session
                   Properties props = new Properties();
                   // If using static Transport.send(),
                   // need to specify which host to send it to
                   props.setProperty("mail.smtp.host", host);
                   // To see what is going on behind the scene
                   //props.put("mail.debug", "true");
                   Session session = Session.getInstance(props);
                   try {
                        // Instantiatee a message
                        Message msg = new MimeMessage(session);
                        //Set message attributes
                             msg.setFrom(new InternetAddress(l_str_from));
                             InternetAddress[] address = { new InternetAddress(l_str_to)};
                             msg.setRecipients(Message.RecipientType.TO, address);
                             msg.setSubject(p_subject);
                             //msg.setSentDate(new Date());
                        java.util.Date dt = new java.util.Date();
                        msg.setSentDate(dt);
                        // Set message content
                        msg.setText("This is a test email");                         
                        //Send the message
                        Transport.send(msg);
                   catch (Exception mex)
                        // Prints all nested (chained) exceptions as well
                        mex.printStackTrace();
    <b>i want a similar code, which can be executed from the EJB!!!!</b>

Maybe you are looking for