Develop Web Services in APEX

Hi,
I'm just getting started and i need to know what is the best way to develop an web service in apex ou expose functionality as such. Is this possible or do i have to buy some product to do this? If so, which one?
Thanks in advance.
Best Regards,
Pedro

Hello Pedro,
If you want to develop a web service, APEX is not the first choice. You should better go for JDeveloper (also free).
APEX is perfect for consuming web services though...
Greetings,
Roel
http://roelhartman.blogspot.com/
http://www.bloggingaboutoracle.org/
http://www.logica.com/
You can award this reply to your question by marking it as either Helpful or Correct ;-)

Similar Messages

  • Publish XDB web service on apex application

    Could any one please help me out to use native oracle XML DB web service on apex application.
    In apex application, basically i need to have a report that displays all PO requests with links to each request # to drill down to the form page where the vendor are allowed to submit some corresponding data to th PO request.
    All i need is to know how do i use the native oracle XML DB web service to show the report to the vendors with drill down links and capture the data, the vendor submits through the form.
    Thanks in advance!!
    Regards,
    Rame

    I think you might be on the wrong track. Web services don't "show" anything really. They take in either XML in the case of SOAP-style web services or an HTTP request in the case of restful web services. They typically return XML, but can return JSON or other machine readable formats. Web services don't have forms and reports. More information here: http://en.wikipedia.org/wiki/Web_service . To have a human interact with a web service, you typically have a UI layer. For instance, in APEX you can build a form or a report on a web service (the same is true for most popular web technologies).
    In APEX 4.0+ you can expose a report as a restful web service, but I really don't think that is what you want to do. There's no way that I can think of to use the XDB web services to expose any component of APEX.
    In short, people interact with web applications, such as APEX apps. Machines, such as databases or application servers, interact with web services.
    So, do you need to expose some component of your application as an API (web service) that vendors can call programmatically from some other technology such as Java or PHP? Or do you want to build a web application that people can interact with?
    Tyler Muth
    http://tylermuth.wordpress.com
    "Applied Oracle Security: Developing Secure Database and Middleware Environments": http://sn.im/aos.book

  • The Best Java Web Services Technology for Developing Web Services

    Hi,
    I am new to Web services world.
    I read the java web services page . there are more than 6 technologies.
    JAX-WS,
    JAX-RPC,
    JAXB,
    SAAJ,
    JAXP,
    WSIT,
    XWS-Security
    I went through several documents on web services.
    I could not get a clear idea of which technolgy to use.
    Which Java web service technology will be the best to develop web services independant of language, platform.
    or is there any 3rd party implemetations available ? for rapid development of web services.
    Could anyone help me !.
    Thanks in advance.
    Message was edited by:
    Siva.Prakash

    Which Java web service technology will be the best
    to develop web services independant of language,
    platform.
    Java by nature is a cross-platform language, so if your focus is on the need for portability, the choisce of WS should not be a problem. However, each WS is best suited for paricular uses.
    SAAJ, a low-level level API, offers much simplicity, but is not the first choice for programmers, as SOAP (Simple Object Access Protocol)messages need to be constructed piece by piece, making it a quite arduous code to program.
    If you are not familiar with XML, your best bet would be to use JAX-RPC (Java API for XML-Remote Procedure Calls), as it hides the underlying detail from the programmer, in terms of SOAP and XML. The shortcoming with RPC-based WS is that it is "restricted to the local programming experience". Another failing is that assumes there is a network path- a reliability concern.
    If your program will be contacting other services during downtimes, unlike JAX-RPC, JAXM is quite useful. However, your listing did not mention it, so I wont cover it.
    JAXR is a client-side only API that acts as an interface between registries (not referring to JAXP)
    I am not famiiar with JAXB, JAXP, WSIT or XWS-Security..
    or is there any 3rd party implemetations available ?It depends on what platform you are used to. Assuming you are familiarized with the J2EE platform (now changed to Java EE SDK), the NetBeans IDE (either 5.5, 5.5.1 or the latest editiion) is quite useful. I am using 5.5.1, but have found that it is quite buggy, especially when adding WS operations, a core requirement of a WS. if you will be using to devlop a service for an immediate need, you may find the learning curve to be a bit high, in terms of getting to grips with how to use it. (Download link:
    http://www.netbeans.info/downloads/index.php)
    The IBM Autonomic IDE (or AIDE), based on the WSDM standard, includes 3 sub-tools, icluding the IBM Manageability Endpoint Builder which, according to their website, allows individuals to build endpoints to allow manageability interface exposure; Manageable Resource Browser and the IBM Manageability Endpoint Simulator. However, I'm not familiar with this IDE. (Download link: http://www.alphaworks.ibm.com/tech/aide/download)
    The .NET Framework uses the Visual Studio IDE. For an unbiased comparison of J2EE and the .NET Framework in terms of WS, see http://www.webservicesarchitect.com/content/articles/hanson01.asp.
    Apache Axis2, Geronimo and JiBX allows fast development of WS, or so the creators profess.
    The PHP environment- you could try NuSPHERE PHPed. According to one website, with it you can develop a web service in under an hour.
    I hope this was useful to you.
    [Based partly on Topley, K. (2003) [i]Java TM Web Services in a Nutshell: A desktop Quick Reference. 1st ed. California: O�Reilly & Associates, Inc]

  • What is the best practice for developing web service?

    Hi All,
    I'm a newbee to web services...
    I was wondering what would be the best approach in developing a web service,
    using tools or programmatic approach?
    If I use WebLogic Workshop, am I tied to a vendor?
    Is it possible for me to develop web services using workshop and deploy in
    another app server..?
    I would appreciate if somebody could give me a pointer to start.
    I have already referred BEA's docs.
    I'm still confused on a good starting point on the best approach to develop
    protable web services.
    Thanks in advance for any inputs.
    K K

    K K-
    You have a very valid point on the simplify or complicate matters. If you are
    going for clean and not-so-time-centric code, then there are several different
    programs and packages out there you can choose from.
    Since you are specialized in J2EE, than the Sun package may be what you are looking
    for. BEA's classes simplify much of the work you will be doing, but you could
    emulate their classes or extend yours above the functions provided in theirs.
    It all boils down to how much work are you willing to do.
    If you are asking for more detailed, coding 'Design Patterns' to utilize, I would
    wait for a few more posts from other folks as my work often requires me to utilize
    the tools provided.
    Sincerely,
    Eric Ballou
    "K K" <[email protected]> wrote:
    Eric,
    Thanks for the response.
    I was also looking at Sun's WSDP 1.1, which is more programmatic approach.
    Some how, I feel being a J2EE developer, I should go on the direction
    of the
    programmatic approach.
    Using the tools could simplify or complicate things. Also, the Workshop
    samples import all weblogic specific packages.
    My code looks so dirty with many vendor specific packages being imported.
    Could you give me your suggestions for a clean and neat approach?
    I would personally prefer to avoid the quick and dirty approach.
    Thanks again.
    "Eric Ballou" <[email protected]> wrote in message
    news:[email protected]...
    K K-
    The best approach in developing portable web services is knowing whatyou
    are
    planning on using them for as well as how much is willing to be spent,etc.
    BEA's Workshop is portable to other frameworks, but the ease ofintegrating a
    developed client or a developed server can very greatly. Even moreof an
    issue
    is migration from one framework to another. If you choose to developin
    Workshop
    and your company later deploys .Net solutions, some of your work mayhave
    to be
    redone unless the company is willing to keep portions of the 'old'system
    around
    until new versions of the service are available. However, Workshophas
    several
    ant tools available that would assist you in deploying to other appservers or
    even a stand-alone application should you need cross framework abilities.
    If you are just starting out in web services, http://www.webservices.org
    is a
    good place to start checking out vendors in the space.
    Sincerely,
    Eric Ballou
    "K K" <[email protected]> wrote:
    Hi All,
    I'm a newbee to web services...
    I was wondering what would be the best approach in developing a web
    service,
    using tools or programmatic approach?
    If I use WebLogic Workshop, am I tied to a vendor?
    Is it possible for me to develop web services using workshop and deploy
    in
    another app server..?
    I would appreciate if somebody could give me a pointer to start.
    I have already referred BEA's docs.
    I'm still confused on a good starting point on the best approach todevelop
    protable web services.
    Thanks in advance for any inputs.
    K K

  • Web Service in Apex

    Hi
    I'm using APEX 2.1.0, OracleXE 10.2, Oracle SOA 10.1.3, Jdev 10.1.3.3
    I've created a webservice in jdeveloper based upon a plsql package it has 3 input parameters and return a parameter
    I've deployed the webservice to my SOA apps server and tested it satisfactorily
    I've then created the web service reference in APEX using the shared components utility and it appears to create the reference ok (based upon the WSDL without searching UDDI), this correctly shows the operation and input and output parameters whilst it is created via the wizard
    I've then tried to create a form based upon the web service in APEX, it shows the operation but it does not show the input parameters it gives the mesage "no data found"
    has anyone else had this problem?
    has anyone got any suggestions?
    thanks
    Andrew

    Jason
    Thanks for this, I've tried to upgrade my APEX to 3.01 using the instructions identified it ran for 9hrs before I killed it I assume that there are some things I need to do on my XE database or my machine is not powerful enough, or something else is awry (not found any other posts on the forum indicating anyone else having a problem with the upgrade so I assume its me!)
    However I have now managed to access another oracle 10g instance that does have Apex 3.01 and I have now successfully built my application on the web services generated in Jdeveloper
    again thanks
    Andrew

  • Web Service in APEX - read from SYS_REFCURSOR -

    Hi,
    I created a package in the database 10g to give a result with multiple lines:
    PACKAGE BODY "PKEMPLOYEES" AS
    function getEmployees(p_dept_id number) return SYS_REFCURSOR
    as
    p_return_cur SYS_REFCURSOR;
    BEGIN
    OPEN p_return_cur FOR
    'Select first_name from employees where department_id=' || p_dept_id;
    return p_return_cur;
    end getEmployees;
    END;
    Then, with the JDeveloper (10.1.3), I have deployed the package as a web service in OC4J Standalone and I used Jpublisher:
    jpub -user hr/hr -sysuser sys/orclbd
    -proxywsdl=http://144.22.197.113:8888/appEmp-ProjEmp-context-root/MyWSEmpSoapHttpPort?WSDL
    -proxyopts=tabfun -httpproxy=(removed proxy - on our hosted instance, you cannot use web services)
    -endpoint=http://144.22.197.113:8888/appEmp-ProjEmp-context-root/MyWSEmpSoapHttpPort
    -plsqlpackage=pkWSEmp -dir=wsEmp
    And, in APEX 2.2, I have tried to use the web service but there is an error:
    ORA-20001: env:Clientcaught exception while handling request: unexpected element name: expected={http://hr/MyWSEmp.wsdl/types/}getemployeesXMLRowSetElement, actual={http://hr/MyWSEmp.wsdl}getemployeesXMLR
    I think that the APEX don't recognize the SYS_REFCURSOR, but I don't know the way to resolve this.
    Any ideas??
    Thank you all,
    Carla Diogo
    Message was edited by:
    sbkenned

    Hi,
    What I really pretend is to have a web service that give me the result of a query. The result is multiple lines of a table. I want to call it from APEX to view the result.
    What I don't know how to do is the best way to have multiple line result from a web service, in APEX 2.2.
    I need to call the web service from the database and then call the procedure in APEX? There is any type (with multiple line) that I can use on the web service that is recognized by APEX?
    I'm new in this...
    Thank you

  • Which is best web service framework for developing web services in Java?

    Hi Friends,
    I want to develop web services using Java 1.5.
    But I am in confusion with different frameworks provides to develop WS.
    Like
    1) Apache axis
    2) Java Web Service dev. Pack
    3) JSON-RPC-Java
    4) Web Ser. Invocation Pack
    5) XFire
    Can some one guide which framework should I use?
    OR where will i get useful comparison between this frameworks?

    Hi,
    Personally I have used:
    1. XFire
    2. Apache Axis
    3. Java Web Service Pack
    My personal opinion / .02 cents?
    1. XFire is awesome and very easy to set up and get running. They also have a great community / mailing lists. We use it in some production systems and it runs great.
    2. Apache AXIS 1/2 made me want to dive out the window and go splat just short of the double yellow line on the road. Pain in the butt to set up and get running. Way too complex. Really bad docs / tutorials / support.
    3. Java Web Service Pack - I really prefer NetBeans 5.5 and the JWSP. Easy to build services, cohesive enviroment. You can get the job done.
    That's my two cents.
    M Goodell

  • What is needed to develop web services with DI Server using C #?

    Hi,
    What is needed to develop web service using DI Service ad C#?
    Does anyone have any examples?
    thanks,
    Willian

    Login C# sample
    u2018 Create Service WebReference
    LoginWebRef.LoginService loginService = new LoginWebRef.LoginService();
    // service command login call
    string sessionID = login.Login(
    "localhost",
    "COM_OBS_AUT_TEST",
    LoginWebRef.LoginDatabaseType.dst_MSSQL2005, true,
    "sa", "xx",
    "manager", "manager",
    LoginWebRef.LoginLanguage.ln_English, true,
    "localhost:30000");
    Business Partners add C# sample.
    // Create Service WebReference
    BPWebRef.BusinessPartnersService bpsService = new
    BPWebRef.BusinessPartnersService();
    // MsgHeader class
    BPWebRef.MsgHeader msgheader = new BPWebRef.MsgHeader();
    msgheader.SessionID = DIServerSessionID;
    msgheader.ServiceName = MsgHeaderServiceName.BusinessPartnersService;
    msgheader.ServiceNameSpecified = true;
    bpsService.MsgHeaderValue = msgHeader;
    // fill business partner class
    BPWebRef.BusinessPartner bp = new BPWebRef.BusinessPartner();
    bp.CardCode = "MyBPCardCode";
    u2026
    // service command call
    BPWebRef.BusinessPartnerParams bpParams = bpsService.Add(bp);

  • How to develop web service using Intellij Idea 6.0

    How to develop web services using Intellij Idea 6.x. A sample web service and service client is needed with full procedure. Thanx in advance.

    Web service is technology not a tools that bundle with IDE.
    For example you can't say how can I develope object orented program with Eclipse.
    1- You should get some general info about SOAP, WSDL and Web sevice usage
    2- Start to implmenet a simple Hello world web service and deploy it on application(web service) server
    3- Write Client code and test it.
    for step 2,3 Apache Axis(2) could be a good solution for developement or you can use JAX-WS for sun

  • Developing web services for interoperability

    Hello,
    I often read that the correct way in terms of interoperability to develop web services is to start from the wsdl towards java classes, not the other way round. I find this puzzling since I was sure that jaxrp compliant toolkists were able to only generate ws-i basic profile compliant web services. So, is it really an interoperability issue or is there some other problem with the java to wsdl approach ?
    Thanks

    If you want to develope intoperable web services you should probably use JAX-WS to start with. You can read about JAX-WS at http://jax-ws.dev.java.net and you can download it with JWSDP 2.0 (http://java.sun.com/webservices/downloads/webservicespack.html).
    JAX-RPC's databinding is somewhat limited and its interop is also limited.
    During the development of JAX-WS we have been working with Microsoft to make sure that JAX-WS will interop with WCF (Indigo).

  • Please give me your opinion... about tools for develop web service

    If you would like to choose the tool for develop web service.
    what is the most important feature that you will consider,
    Please help me to order these topic from the most to the least
    a. creating web service
    b. creating web service client
    c. searching web service to UDDI registry
    d. publish web service to UDDI registry
    e. connecting to database management systems.
    f. license fee
    g.system requirements
    h. Installation procedures
    thank you very much for your opinion. I will keep your information for my research....
    :)

    Hi Fangnaka,
    You can use JWDSP2.0 + Tomcat 5.X +Jdk1.5 to develop and deploy webservice.
    Better IDEA are Intellij or Eclipse for webservice code development.
    Cheers
    Rajesh R

  • Can I deploy web service on APEX server

    I have APEX 3.1.2 on 11g database.
    I need to pull data from other oracle 9i databases into APEX application. I have created web service on my pl/sql package to pull data from 9i databases and deployed service on my local oc4j instance (within jdeveloper). My APEX app pull data from multiple oracle 9i database. Now I need to move my web service to my dev/test environment.
    Can I deploy web service on APEX server? or do I need to deploy on another web server?
    I know I can easily pull the data from other oracle 9i databases using DB link. I want to explore Web services option to just to see is it possible to pull data from multiple sources into APEX app using web service running from APEX server?.
    Any help on this will be appreciated.
    RK Shah
    Edited by: RK Shah on Apr 7, 2009 7:27 PM

    I am in the same situation. Consuming a web service is easy with APEX. But publishing one needs a web server that is more complex than the one that comes with APEX for free.
    I am exploring the possibility of building the web service in Jdeveloper as you have. Then I will make a WAR file that I will publish to an apache tomcat J2EE server that another department runs. I believe it will work since all the components required should be in the WAR file.
    I am new at this. I will let you know how it works out.
    The other possibility is to upgrade the appserver to the full Oracle Fusion server (maybe). This may be expensive and be too much for just a simple web service. But then the publish to application server from jdeveloper is super easy.

  • Developing Web Services: Three Easy Steps tutorial error

    I'm following the tutorial Developing Web Services: Three Easy Steps, the first lab. I created the GetDates POJO, no problems. Then I went on to step 4 and am creating the WS for the java class. I get to step 5 where I've gone through the wizard for the web service and at step 5 in the wizard the tutorial says to click finish. When I click finish I get a popup saying
    Validation Error
    Files at the following URLs cannot be modified:
    file:/C:/jdevhome/jdev/.....GetDates/public_html/WEB-INF/webservices.xml
    and the same path but oracle-webservices.xml
    Anyone else experience this when going through the tutorial? I'm not sure where the tutorial is on OTN or if it's on OTN yet. It's a tutorial I did in a session at OpenWorld and now i'm going through it locally now that we have the latest SOA suite installed.
    Any thoughts?
    Thanks, Rob

    Just checked and it's not running. It's preventing the web service from being created, none of the directories are getting created since it's erroring.
    I tried closing out and opening JDev up again and it's my C drive so I don't have anything set to read only.
    JDev Studio Edition Version 10.1.3.1.0.3914
    Rob

  • Accessing Restful Web Services in APEX?

    Hi I am new to this forum so I hope you will bear with me. I have been looking at how to create RESTful web services through the SQL Workshop Resful Services wizard but every single article I look at refers to a test button which I cannot see anywhere (I am using APEX 4.2) so how do I test the service?
    Also, how can I get the URL of the service so I can call it from another application?
    Thanks in advance
    Malcolm

    Oracle® Application Express
    SQL Workshop Guide
    Release 4.2
    RESTful Service Requirements
    In order for the RESTful Service utility to be available and function properly, the
    following requirements must be met:
    ■ The instance administrator must enable RESTful Services for this Application
       Express instance. See Oracle Application Express Administration Guide.
    ■ The Oracle Application Express Listener version 2.0 or higher must be used. The
      Oracle XML DB HTTP Server with the embedded PL/SQL gateway and Oracle
      HTTP Server with mod_plsql do not support this functionality. See Oracle
      Application Express Listener Installation and Developer Guide.
    Regards
    Zack

  • Doubts developing web services on JDev 10.1.3.0.4

    Hi,
    I was trying to follow this guide
    http://www.oracle.com/technology/oramag/webcolumns/2003/techarticles/balusamy.html
    in order to develop this web service on Jdev 10.1.3.0.4.
    But the menus are different from the version used on the tutorial. I´m having some difficulties with the selections that i have to make in the menus. Also, after trying several options, the files generated are different from the ones that appear on this tutorial.
    Does anyone know how to reproduce this tutorial on this version of jdev ?
    Thanks.

    Hi,
    The guide you were refering was pointing to 10.1.2 wizards.
    For the latest 10.1.3 tutorial, please follow the below tutorial link :
    http://www.oracle.com/technology/products/jdev/101/tutorials/WS/WSandAScontrol.htm
    Hope this helps,
    Sunil..

Maybe you are looking for