Apex app - Web service

Can we create a web service using APex application.
I have tried calling other web services from apex, but was just curious to know if we can create a web service that other applications can call from their apps?

knut,
The 11g Native Web Services is a nice option.
If your application's logic is contained in stored procedures or packages,
then you can expose it as web services without writing any extra code.
It's good re-use. Call the procedures directly in Apex, or as web services from other environments.
Doug

Similar Messages

  • Fusion Apps web service call fails with error access denied (oracle.wsm.security.WSFunctionPermission)

    Hello Guru,
    I am trying to call a supplier service from SOA/OSB.
    But while calling the service it is failing with the below error message
    access denied (oracle.wsm.security.WSFunctionPermission http://xmlns.oracle.com/apps/prc/poz/suppliers/supplierService/SupplierService#getSupplierVO invoke)
    As per OER cookbook i have attached the "oracle/wss_username_token_client_policy" to the Fusion  apps web service.
    I am trying to pass security credentials to the service by using all the methods... through composite ..through bpel through wsse header but in all cases i am getting similar error.
    Please let me know if some one has called the fusion apps web service to create a supplier of solution to my problem  as mentioned above.

    Hi Sai,
        Thanks for the quick and correct response. Yes, after doing the research, I'm also came to same conclusion. But what stops me here is that where exactly I need to check for this permission.
    I mean the theory what I built on this Authorization/Permission is that:
       For the resource - WebService (SupplierService), there is an assigned application role for which the Entitlement/Permission is provided.
    Pls. help me in the below items:
    a. What is the application role(in role hierarchy) assigned to this resource(Webservice). Which page I need to check(navigation) this and the required credentials..
    b. What is the Entitlement provided for this application role for this operation (getSupplierVO) invoke.. Which page I need to check(navigation) this and the required credentials..
    Thanks in Advance.
    Thanks & Regards
    Madhu

  • Apex and web services

    Hello everyone,
    I've started looking into SOAP and web services, and have used Tyler Muth's tutorial to email and FTP BI publisher reports using APEX.
    I was wondering if it is possible to create an on-screen report (i.e. an interactive report) using a web service?
    I've managed to return values to form fields using web services...I was always under the impression, from before I looked at web services, that creating an on-screen report using data from a web service was one of the main things you could do....
    Please could someone let me know if this is possible, and roughly how you'd go about doing it?
    Thank you in advance.
    Robin

    Hi Robin,
    I think I have implemented the same thing which you are trying to do
    The followinf is the response of a web service from BI Publisher. You can check the response using the statement
    select clob001 from wwv_flow_collections where where collection_name = <name_of_the_collection_u_specified_while_sending_the web_service_request>
    <getScheduledReportInfoResponse xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService">
    <getScheduledReportInfoReturn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:JobInfo" xmlns:ns1="http://xmlns.oracle.com/oxp/service/PublicReportService">
    <ns1:burstingOption>false</ns1:burstingOption>
    <ns1:createdDate>2009-11-23T06:03:10.000Z</ns1:createdDate>
    <ns1:deliveryDescription xsi:nil="true"/>
    <ns1:deliveryParameters xsi:nil="true"/>
    <ns1:endDate xsi:nil="true"/>
    <ns1:jobGroup>administrator</ns1:jobGroup>
    <ns1:jobID>366</ns1:jobID>
    <ns1:jobName>603219960-ADMIN-Smaller result set</ns1:jobName>
    <ns1:locale>en_GB</ns1:locale>
    <ns1:reportName>Adhoc report</ns1:reportName>
    <ns1:reportParameters xsi:type="ns1:ParamNameValue">
    <ns1:multiValuesAllowed>false</ns1:multiValuesAllowed>
    <ns1:name>SORT_COLUMN_ADHOC</ns1:name>
    <ns1:values>
    <ns1:item>09-NOV-2009 07:02:00|11-NOV-2009 07:02:00|2077927020;;;;;;;;;;;;;;;;;;;;|;;;;;;;;;;;;;;;;;;;;|;;;;;;;;;;;;;;;;;;;;||||||S|B</ns1:item>
    </ns1:values>
    </ns1:reportParameters>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportParameters xsi:nil="true"/>
    <ns1:reportSet>false</ns1:reportSet>
    <ns1:reportURL>/Navada/Normal/Adhoc report/Adhoc report.xdo</ns1:reportURL>
    <ns1:runType>Run Once Only</ns1:runType>
    <ns1:scheduleDescription xsi:nil="true"/>
    <ns1:scheduleParameters xsi:nil="true"/>
    <ns1:startDate>2009-11-23T06:03:10.000Z</ns1:startDate>
    <ns1:status>Unknown</ns1:status>
    <ns1:username>administrator</ns1:username>
    </getScheduledReportInfoReturn>
    <getScheduledReportInfoReturn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:JobInfo" xmlns:ns2="http://xmlns.oracle.com/oxp/service/PublicReportService">
    <ns2:burstingOption>false</ns2:burstingOption>
    <ns2:createdDate>2009-11-20T13:00:44.000Z</ns2:createdDate>
    <ns2:deliveryDescription xsi:nil="true"/>
    <ns2:deliveryParameters xsi:nil="true"/>
    <ns2:endDate xsi:nil="true"/>
    <ns2:jobGroup>administrator</ns2:jobGroup>
    <ns2:jobID>365</ns2:jobID>
    <ns2:jobName>603219960-ADMIN-test again</ns2:jobName>
    <ns2:locale>en_GB</ns2:locale>
    <ns2:reportName>Adhoc report</ns2:reportName>
    <ns2:reportParameters xsi:type="ns2:ParamNameValue">
    <ns2:multiValuesAllowed>false</ns2:multiValuesAllowed>
    <ns2:name>SORT_COLUMN_ADHOC</ns2:name>
    <ns2:values>
    <ns2:item>20-SEP-2009 13:55:00|20-NOV-2009 13:55:00|01*;;;;;;;;;;;;;;;;;;;;|;;;;;;;;;;;;;;;;;;;;|;;;;;;;;;;;;;;;;;;;;||||||S|B</ns2:item>
    </ns2:values>
    </ns2:reportParameters>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportParameters xsi:nil="true"/>
    <ns2:reportSet>false</ns2:reportSet>
    <ns2:reportURL>/Navada/Normal/Adhoc report/Adhoc report.xdo</ns2:reportURL>
    <ns2:runType>Run Once Only</ns2:runType>
    <ns2:scheduleDescription xsi:nil="true"/>
    <ns2:scheduleParameters xsi:nil="true"/>
    <ns2:startDate>2009-11-20T13:00:44.000Z</ns2:startDate>
    <ns2:status>Unknown</ns2:status>
    <ns2:username>administrator</ns2:username>
    </getScheduledReportInfoReturn>
    </getScheduledReportInfoResponse>
    I use the following query to show a report in top of this response
    select extractValue(value(t),'/*/burstingOption','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') "burstingOption"
    , replace(trim(trailing 'Z' from extractValue(value(t),'/*/createdDate','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"')),'T',' ') "createdDate"
    , extractValue(value(t),'/*/deliveryDescription','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') "deliveryDescription"
    , replace(trim(trailing 'Z' from extractValue(value(t),'/*/endDate','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"')),'T',' ') "endDate"
    ,replace(replace(substr(extractValue(value(t),'/*/endDate','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') ,1,(instr(extractValue(value(t),'/*/endDate','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') ,'.')-1)),'T',' '),':','-') "endDate1"
    , extractValue(value(t),'/*/jobGroup','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') "jobGroup"
    , to_number(extractValue(value(t),'/*/jobID','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"')) "jobID"
    , extractValue(value(t),'/*/jobName','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') "jobName"
    , substr(extractValue(value(t),'/*/jobName','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') ,(instr(extractValue(value(t),'/*/jobName','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') ,'-')+1)) "jobName1"
    , extractValue(value(t),'/*/locale','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') "locale"
    , extractValue(value(t),'/*/reportName','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') "reportName"
    , extractValue(value(t),'/*/reportSet','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') "reportSet"
    , extractValue(value(t),'/*/reportURL','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') "reportURL"
    , extractValue(value(t),'/*/runType','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') "runType"
    , extractValue(value(t),'/*/scheduleDescription','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') "scheduleDescription"
    , extractValue(value(t),'/*/scheduleParameters','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') "scheduleParameters"
    , replace(trim(trailing 'Z' from extractValue(value(t),'/*/startDate','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"')),'T',' ') "startDate"
    , extractValue(value(t),'/*/status','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') "status"
    , extractValue(value(t),'/*/username','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"') "username"
    from wwv_flow_collections c, table(xmlsequence(extract(xmltype.createxml(c.clob001),'//getScheduledReportInfoResponse/getScheduledReportInfoReturn','xmlns="http://xmlns.oracle.com/oxp/service/PublicReportService"'))) t
    where c.collection_name = 'SCHEDULED_JOB_REPORT'
    Regards,
    Vishal

  • APEX soap web service

    How do i get a response from a soap webservice and insert it into a DB

    How do i get a response from a soap webservice and insert it into a DB

  • MTOM Encoded Web Service Response

    Hi,
    I am trying to call from APEX some web services that are MTOM encoded and the calls are failing.
    Does APEX support MTOM encoding? I am using the apex_web_service.make_request function.
    Below is a comparison of 2 service raw responses from soapUI, one that works with APEX and one that doesn’t.
    Service 1 Raw Response:
    HTTP/1.1 500 Internal Server Error
    Date: Fri, 05 Jul 2013 17:06:41 GMT
    Server: Apache-Coyote/1.1
    X-Powered-By: None
    Content-Type: application/soap+xml;charset=UTF-8
    Content-Length: 734
    Access-Control-Allow-Origin: *
    Connection: close
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Body>.................</soap:Body></soap:Envelope>
    Service 2 Raw Response:
    HTTP/1.1 500 Internal Server Error
    Date: Fri, 05 Jul 2013 17:05:14 GMT
    Server: Apache-Coyote/1.1
    X-Powered-By: None
    Content-Type: multipart/related; type="application/xop+xml";boundary="uuid:2505d950-8e95-4cd7-a350-a73962f5b748";start="<[email protected]>";start-info="application/soap+xml"
    Content-Length: 1175
    Access-Control-Allow-Origin: *
    Connection: close
    --uuid:2505d950-8e95-4cd7-a350-a73962f5b748
    Content-Type:application/xop+xml; charset=UTF-8; type="application/soap+xml";
    Content-Transfer-Encoding: binary
    Content-ID: <[email protected]>
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Body>.............</soap:Body></soap:Envelope>
    --uuid:2505d950-8e95-4cd7-a350-a73962f5b748—
    Service 1 works with APEX, it has a standard “application/soap+xml” content type and XML follows immediately after the header, which APEX expects and is able to parse.
    Service 2 does not work with APEX, it has the specific MTOM “multipart/related;type="application/xop+xml"” content type and after the header the uuid reference for the multipart response.
    Any idea on how to handle these types of web service calls from APEX?
    Thanks!

    Hi
    Have you found the workaround?
    Sorry for refreshing topic. Flag mustUnderstand ='1' in response is unussual thing.
    BR

  • APEX post restful service inserts null value

    Oracle APEX 4.2.5
    Oracle Rest Data Service 2.0.7
    Apache Tomcat 7
    Oracle database 11.2.0.4
    Oracle APEX PUT web service inserts null value into column. This is either a bug or the documentation does not properly cover how to correctly set PUT restful services. 
    GET web services works fine. 
    I have granted the role of apex_rest_public_user to both apex_public_user and the schema owner. 
    The payload is a small xml document, but even a text document will yield the same result. 
    I am using the Oracle REST Data Service 2.0.5
    Web service code: 
    RESTful Service Module: software_details/
    URI Template: xml_parser
    Method: POST
    Source Type: PL/SQL
    MIME: Types Allowed: application/xml
    Requires Secure Access: NO
    Source :
    begin
    insert into clob_test (x)
    values (blob_to_clob(:body)); ## according to some online post,  :body is where APEX places any data being transferred through a web service. I have yet to find any official  ##documentation on it. 
    commit:
    end;
    ##Blob_to_clob function code
    CREATE OR REPLACE FUNCTION blob_to_clob (blob_in IN BLOB)
    RETURN CLOB
    AS
          v_clob    CLOB;
          v_varchar VARCHAR2(32767);
          v_start      PLS_INTEGER := 1;
          v_buffer  PLS_INTEGER := 32767;
    BEGIN
          DBMS_LOB.CREATETEMPORARY(v_clob, TRUE);
          FOR i IN 1..CEIL(DBMS_LOB.GETLENGTH(blob_in) / v_buffer)
          LOOP
             v_varchar := UTL_RAW.CAST_TO_VARCHAR2(DBMS_LOB.SUBSTR(blob_in, v_buffer, v_start));
                DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_varchar), v_varchar);
               v_start := v_start + v_buffer;
          END LOOP;
        RETURN v_clob;
    END blob_to_clob;
    #Table code 
    create table clob_test(
    x clob));
    Thank you,

    I am experiencing the same issue.
    I implemented the 'chunked file loading' example from Kris Rice's blog at Kris' blog: August 2013 in y workspace at the Oracle hosted APEX site and everything works fine.
    However, I get a null value for 'data' when I implement the same example at my work site.
    Work Site config is
    Apache Tomcat 7
    Oracle REST Data Services version : 2.0.6.27.18.06
    Application Express 4.2.2.00.11
    Oracle RDBMS 11.2.0.3
    I am NOT using SSL at my work site. However this does not seem to affect a POST with form values.
    Varad.

  • FusionApps web service call fails with error access denied (oracle.wsm.security.WSFunctionPermission)

    Hi Gurus,
    I started test this webservice from EM (Test Web Service)
    But while calling the service it is failing with the below error message
    access denied (oracle.wsm.security.WSFunctionPermission http://xmlns.oracle.com/apps/prc/poz/suppliers/supplierService/SupplierService#getSupplierVO invoke)
    As per OER cookbook i have attached the "oracle/wss_username_token_client_policy" to the Fusion  apps web service.
    I am trying to pass security credentials to the service by using all the methods... through composite ..through bpel through wsse header but in all cases i am getting similar error.
    Please let me know if some one has called the fusion apps web service to create a supplier of solution to my problem  as mentioned above.
    Is it any policy error or the authorization error ...
    Are there any navigation steps I can check the existed permission on this resource etc..,
    Thanks in Advance

    Hi Sai,
        Thanks for the quick and correct response. Yes, after doing the research, I'm also came to same conclusion. But what stops me here is that where exactly I need to check for this permission.
    I mean the theory what I built on this Authorization/Permission is that:
       For the resource - WebService (SupplierService), there is an assigned application role for which the Entitlement/Permission is provided.
    Pls. help me in the below items:
    a. What is the application role(in role hierarchy) assigned to this resource(Webservice). Which page I need to check(navigation) this and the required credentials..
    b. What is the Entitlement provided for this application role for this operation (getSupplierVO) invoke.. Which page I need to check(navigation) this and the required credentials..
    Thanks in Advance.
    Thanks & Regards
    Madhu

  • Restful Web Services - First Party Authentication with custom authentication schemes

    Hi
    I've successfully enabled security using first party authentication on our Restful web services however these only work with the built in Apex accounts and not other authentication schemes.
    Ideally I'd like to authenticate against LDAP, however when I enable this authentication scheme the restful services don't work as they only support the Apex accounts. 
    Has anyone implemented LDAP authentication for Apex restful web services, either directly or using Glassfish ? Does anyone know if support for custom authentication schemes on the feature roadmap for a future Listener release ?
    I attempted to configure the glassfish application against LDAP but am still working on it.. glassfish never challenged the client to authenticate (it's only to be for the web service endpoints and nothing else), so any pointers on how to set that up for Apex would be appreciated.
    Thanks
    Kes

    Hi Gemma,
    unfortunately at the moment you are caught between a rock and a hard place:
    - As you point out there is no way in APEX for a user to self-register themselves, short of developing your own table to store users and configuring APEX custom auth to authenticate against that table
    - Listener can only authenticate against the the APEX user repository, it cannot integrate with custom APEX authentication.
    There may be other options though, by leveraging the authentication capabilities in the JRE and/or WebLogic/GlassFish application servers. We're interested in addressing this use case, so if you wish to investigate further please send me an email ( colm <dot> divilly <at> oracle <dot> com).
    Thanks,
    Colm Divilly

  • Cannot connect to web services HP 7525 printer

    It used to work fine. Now I jsut get the message "unable to connect to web services......" I've chcked and the printer is connected to wifi. I tried the solution posted " put IP address in a browser etc...... but when I do that in Exploer all I get is jiberish, no web page with the network buttons.

    Hello @JACKUSHNER,
    Welcome to the HP Forums!
    I understand you're receiving a message stating "unable to connect to web services" using the Photosmart 7520. I will do my best to assist you! I would start off by following this entire HP document on A Network Connected Printer Cannot Access Print Apps, Web Services, or ePrint.
    Please post your results, as I will be looking forward to hearing from you. Have a great night!
    I worked on behalf of HP.

  • MFA Server - User portal and mobile app web server should be installed where?

    Hi. We are in the process of testing the Multi-Factor Auth server and are currently using it for two-factor authentication to RDS for a couple of users. At the moment we are only using the phone call/text options but I'd like to get the mobile app portion
    working to test.  Also still need to implement the user self-service portal for testing.
    Currently I have a vm that was dedicated to MFA where the Multi-Factor Authentication Server software was installed.  Now though I'm a bit confused as to if its safe to install the user portal and mobile app web service portion on this same machine
    or if they should go on a different server(s)?  Currently the box is internal but I'm guessing if it has also act as the web server we would stick it behind the TMG for external inbound access.  Is external access to the primary MFA server ok? 
    What's the best practice for separation of the MFA roles; or is there none and its fine to just put it altogether? 
    Thanks.

    Hello Col. Forbin,
    Thanks for posting here!
    You have a dedicated MFA server and if you install User Portal on the same server as the MFA Server, it uses RPC to communicate with the MultiFactorAuth service locally.
    If the User Portal is installed on a different server, it must connect via the Web Service SDK. You can use either a username/password of a service account that is a member of the PhoneFactor
    Admins security group, or you can configure client certificates. If using the username/password, you can encrypt the appSettings section of the web.config file if desired.
    Under Inetpub\wwwroot\MultiFactorAuth when you edit the web.config file you need to make sure these values are set.
    USE_WEB_SERVICE_SDK:
    true
    WEB_SERVICE_SDK_AUTHENTICATION_USERNAME: domain\user
    WEB_SERVICE_SDK_AUTHENTICATION_PASSWORD:
    password
    OVERRIDE_PHONE_APP_WEB_SERVICE_URL: 
    You might want to refer this thread link:
    https://social.msdn.microsoft.com/Forums/en-US/ad1f6fc1-ab3f-482d-a435-e4fd6665f640/mfa-user-portal-issue?forum=windowsazureactiveauthentication
    Additional reference links:
    https://technet.microsoft.com/en-us/library/dn376347.aspx#multifactor
    https://pfweb.phonefactor.net/install/6.2.1.16387/release_notes.txt
    Let me know if you have any further questions!
    Regards,
    Sadiqh Ahmed

  • Consuming RESTful web service in Apex app

    Hi,
    I have created a RESTful Web service through an Apex application (4.0) and published as a public web service. Can someone point me to an example of how to then consume that service in another Apex app? The output is straightforward XML that I can retrieve just by pointing the browser to the URL of the service created, but when I go to create the REST Web Reference for the receiving application, I am not sure what to put for the Response Xpath or Response Namespace. The service is meant to just return report records that were created in the REStful Web service with no input required.
    The service XML looks like this:
    <ROWSET>
    <ROW>
    <PROJ_ID>132</PROJ_ID>
    <PSL_NETID>xxxxxxxx</PSL_NETID>
    <PROJECT_TITLE>11g- Oracle Upgrade to RAC 11g</PROJECT_TITLE>
    <CUSTOMER>OIT</CUSTOMER>
    <DIVISION>EIS</DIVISION>
    </ROW>
    <ROW>
    <PROJ_ID>132</PROJ_ID>
    <PSL_NETID>xxxxxx</PSL_NETID>
    <PROJECT_TITLE>11g- Oracle Upgrade to RAC 11g</PROJECT_TITLE>
    <CUSTOMER>OIT</CUSTOMER>
    <DIVISION>CSS</DIVISION>
    Any help would be appreciated.
    Thanks,
    Pat
    Edited by: patfmnd on Dec 7, 2012 3:04 AM

    Hi,
    I have made progress in this. I created the RESTful report service in an Apex 4.1 application. (previous attempt was with 4.0 version of Apex)
    I then created a separate application and created a RESTful web service reference that I tested and it was successful in bringing up XML. However in Apex 4.1, when I create a report following the Wizard for creating a report based on that Web service reference I get the error: ORA-31013: Invalid XPATH expression Which I don't know how to get past. The Xpath provided in the Web service reference test gave output below and brought back a result. There was no where during the Report creation to provide an Xpath. Am I missing something or is 4.1 not quite Web service ready??
    This is what I get from the test of the Web service reference in the Apex App from which I want to create a report: (I see in this XML the data I was expecting from the test of the RESTful web service but it looks like the output I get from the Web service test is more like the Report xml itself.)
    <!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:htmldb="http://htmldb.oracle.com" xmlns:apex="http://apex.oracle.com"> <head> <title>Author</title>
    <!--[if IE]><link rel="stylesheet" href="/i/css/apex_ie_4_1.css" type="text/css" /><![endif]--> <script type="text/javascript">
    //<![CDATA[
    var apex_img_dir = "/i/", htmldb_Img_Dir = apex_img_dir;
    //]]>
    </script>
    <script src="/i/javascript/apex_4_1.min.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    //<![CDATA[
    apex.security.framebreaker("D");
    //]]>
    </script>
    <!--[if IE]><link rel="stylesheet" href="/i/themes/theme_2/css/theme_4_0_ie.css" type="text/css" /><![endif]--><!--[if IE 6]><link rel="stylesheet" href="/i/themes/theme_2/css/theme_4_0_ie6.css" type="text/css" /><![endif]--><!--[if IE 7]><link rel="stylesheet" href="/i/themes/theme_2/css/theme_4_0_ie7.css" type="text/css" /><![endif]--><!--[if lte IE 6]><div id="outdated-browser">You are using an outdated web browser. For a list of supported browsers, please reference the Oracle Application Express Installation Guide.</div><![endif]-->
    <form action="wwv_flow.accept" method="post" name="wwv_flow" id="wwvFlowForm"><input type="hidden" name="p_flow_id" value="140" id="pFlowId" /><input type="hidden" name="p_flow_step_id" value="1" id="pFlowStepId" /><input type="hidden" name="p_instance" value="6146802068150520" id="pInstance" /><input type="hidden" name="p_page_submission_id" value="1940235134399423" id="pPageSubmissionId" /><input type="hidden" name="p_request" value="" id="pRequest" />
    <div id="header">
    <div id="app-logo"><a href="f?p=140:1:0"></a></div>
    <div id="navbar">
    <div class="navbar-entry">Logout</div>
    </div>
    </div>
    <div id="tabs">
    <div class="frame">
    <div class="bg">
    <div class="tab-holder">
    <div class="first-current">
    <div><span>Author</span></div>
    </div>
    </div>
    </div>
    </div>
    </div>
    <div id="topbar">
    <div class="breadcrumb-region" id="R170908223330421512">
    <div>
    <div id="breadcrumbs">
    <ul class="breadcrumb-list">
    <li class="current">Author</li>
    </ul>
    </div>
    </div>
    </div>
    </div>
    <div id="messages"></div>
    <div id="body">
    <table class="tbl-body" cellspacing="0" cellpadding="0" border="0" summary="">
    <tbody>
    <tr>
    <td class="tbl-main" width="100%">
    <div class="rounded-corner-region" id="books">
    <div class="rc-blue-top">
    <div class="rc-blue-top-r">
    <div class="rc-title">AUTHOR</div>
    <div class="rc-buttons"><button value="Reset" class="button-gray" type="button" id="B170907622885421490"><span>Reset</span></button></div>
    </div>
    </div>
    <div class="rc-body">
    <div class="rc-body-r">
    <div class="rc-content-main">
    <table id="apex_layout_170907030238421484" border="0" class="formlayout" summary="" role="presentation" datatable="0">
    <tr>
    <td align="right"><label for="P1_REPORT_SEARCH" tabindex="999"><a class="optional-w-help" href="javascript:popupFieldHelp('170907422375421487','6146802068150520')" tabindex="999">Search</a></label></td>
    <td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="170907422375421487" /><input type="text" id="P1_REPORT_SEARCH" name="p_t01" value="" size="30" maxlength="2000" class="text_field" /></td>
    <td align="right"><label for="P1_ROWS" tabindex="999"><a class="optional-w-help" href="javascript:popupFieldHelp('170907508375421490','6146802068150520')" tabindex="999">Display</a></label></td>
    <td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="170907508375421490" /><select name="p_t02" id="P1_ROWS" size="1" class="selectlist">
    <option value="10">10</option>
    <option value="15" selected="selected">15</option>
    <option value="20">20</option>
    <option value="30">30</option>
    <option value="50">50</option>
    <option value="100">100</option>
    <option value="200">200</option>
    <option value="500">500</option>
    <option value="1000">1000</option>
    <option value="5000">5000</option>
    </select></td>
    <td align="left"></td>
    <td colspan="1" rowspan="1" align="left"><button value="Go" class="button-gray" type="button" id="P1_GO"><span>Go</span></button></td>
    </tr>
    </table>
    <div id="report_170907030238421484_catch">
    <table cellpadding="0" border="0" cellspacing="0" summary="" id="report_books">
    <tr>
    <td></td>
    </tr>
    <tr>
    <td>
    <table cellpadding="0" border="0" cellspacing="0" summary="" class="report-standard">
    <tr>
    <th id="AUTHORID" class="header">
    <div class="rpt-sort">Authorid<img align="absmiddle" src="/i/arrow_up_gray_dark.gif" width="13" height="12" alt="Sort by this column" /></div>
    </th>
    <th id="LNAME" class="header">
    <div class="rpt-sort">Lname</div>
    </th>
    <th id="FNAME" class="header">
    <div class="rpt-sort">Fname</div>
    </th>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">A100</td>
    <td headers="LNAME" class="data">AUSTIN</td>
    <td headers="FNAME" class="data">JAMES</td>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">A105</td>
    <td headers="LNAME" class="data">ADAMS</td>
    <td headers="FNAME" class="data">JUAN</td>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">B100</td>
    <td headers="LNAME" class="data">BAKER</td>
    <td headers="FNAME" class="data">JACK</td>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">F100</td>
    <td headers="LNAME" class="data">FIELDS</td>
    <td headers="FNAME" class="data">OSCAR</td>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">J100</td>
    <td headers="LNAME" class="data">JONES</td>
    <td headers="FNAME" class="data">JANICE</td>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">K100</td>
    <td headers="LNAME" class="data">KZOCHSKY</td>
    <td headers="FNAME" class="data">TAMARA</td>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">M100</td>
    <td headers="LNAME" class="data">MARTINEZ</td>
    <td headers="FNAME" class="data">SHEILA</td>
    </tr>
    <tr class="highlight-row">
    <td headers="AUTHORID" class="data">P100</td>
    <td headers="LNAME" class="data">PORTER</td>
    <td headers="FNAME" cla
    Edited by: patfmnd on Dec 12, 2012 5:59 PM
    Edited by: patfmnd on Dec 12, 2012 6:07 PM

  • 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

  • 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.

  • 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

  • Issue in calling a web service from Apps instance

    Hi ,
    I have created a procedure to call a function which gives response by calling a web service URL.
    Requirement is,
    While calling this procedure , the response data has been stored in the table. This is working fine in the back end.
    Now , i call the same through concurrenet program . It is also getting stored but partially.. The exact data is missing ..other default tags are displayed in the column.
    PROCEUDRE:
    create or replace procedure cv_test_GetCityWeather_PROC(cityName in varchar2, country in varchar2 ,errbuf OUT nocopy VARCHAR2,retcode OUT nocopy VARCHAR2) is
    xmlResponse XmlType;
    begin
    xmlResponse := CV_Test_GetCityWeather(cityName,country);
    insert into xx_cv_test values(xmlResponse);
    fnd_file.put_line(fnd_file.log, 'hghghgh');
    EXCEPTION
    WHEN OTHERS THEN
    retcode := 'insert failed';
    fnd_file.put_line(fnd_file.log, 'response of the request is ' );
    --dbms_output.put_line('xmlResponse ' ||xmlResponse);
    end cv_test_getCityweather_proc;
    FUNCTION
    /*<TOAD_FILE_CHUNK>*/
    CREATE OR REPLACE function APPS.CV_Test_GetCityWeather( cityName varchar2, country varchar2 ) return XmlType is
    --// URL to call
    SOAP_URL constant varchar2(1000) := 'http://www.webservicex.net/globalweather.asmx';
    --// SOAP envelope template, containing $ substitution variables
    SOAP_ENVELOPE constant varchar2(32767) :=
    '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET">
    <soapenv:Header/>
    <soapenv:Body>
    <web:GetWeather>
    <web:CityName>$CITY</web:CityName>
    <web:CountryName>$COUNTRY</web:CountryName>
    </web:GetWeather>
    </soapenv:Body>
    </soapenv:Envelope>';
    --// we'll identify ourselves using an IE9/Windows7 generic browser signature
    C_USER_AGENT constant varchar2(4000) := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)';
    --// these variables need to be set if web access
    --// is via a proxy server
    proxyServer varchar2(20) default null;
    proxyUser varchar2(20) default null;
    proxyPass varchar2(20) default null;
    --// our local variables
    soapEnvelope varchar2(32767);
    proxyURL varchar2(4000);
    request utl_http.req;
    response utl_http.resp;
    buffer varchar2(32767);
    soapResponse clob;
    xmlResponse XmlType;
    eof boolean;
    begin
    --// create the SOAP envelope
    soapEnvelope := replace( SOAP_ENVELOPE, '$CITY', cityName );
    soapEnvelope := replace( soapEnvelope, '$COUNTRY', country );
    --// our "browser" settings
    utl_http.set_response_error_check( true );
    utl_http.set_detailed_excp_support( true );
    utl_http.set_cookie_support( true );
    utl_http.set_transfer_timeout( 10 );
    utl_http.set_follow_redirect( 3 );
    utl_http.set_persistent_conn_support( true );
    --// configure for web proxy access if applicable
    if proxyServer is not null then
    proxyURL := 'http://'||proxyServer;
    if (proxyUser is not null) and (proxyPass is not null) then
    proxyURL := Replace( proxyURL, 'http://', 'http://'||proxyUser||':'||proxyPass||'@' );
    end if;
    utl_http.set_proxy( proxyURL, null );
    end if;
    --// make the POST call to the web service
    request := utl_http.begin_request( SOAP_URL, 'POST', utl_http.HTTP_VERSION_1_1 );
    utl_http.set_header( request, 'User-Agent', C_USER_AGENT );
    utl_http.set_header( request, 'Content-Type', 'text/xml; charset=utf-8' );
    utl_http.set_header( request, 'Content-Length', length(soapEnvelope) );
    utl_http.set_header( request, 'SoapAction', 'http://www.webserviceX.NET/GetWeather' );
    utl_http.write_text( request, soapEnvelope );
    --// read the web service HTTP response
    response := utl_http.get_response( request );
    dbms_lob.CreateTemporary( soapResponse, true );
    eof := false;
    loop
    exit when eof;
    begin
    utl_http.read_line( response, buffer, true );
    if length(buffer) > 0 then
    dbms_lob.WriteAppend(
    soapResponse,
    length(buffer),
    buffer
    end if;
    exception when utl_http.END_OF_BODY then
    eof := true;
    end;
    end loop;
    utl_http.end_response( response );
    --// as the SOAP responds with XML, we convert
    --// the response to XML
    xmlResponse := XmlType( soapResponse );
    --dbms_lob.FreeTemporary( soapResponse );
    --insert into xx_cv_test values(xmlResponse);
    return( xmlResponse );
    exception when OTHERS then
    if soapResponse is not null then
    dbms_lob.FreeTemporary( soapResponse );
    end if;
    raise;
    end;
    EXECUTION:
    select cv_test_GetCityWeather( 'Cape Town', 'South Africa' ) from dual
    Result is,
    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <GetWeatherResponse xmlns="http://www.webserviceX.NET">
    <GetWeatherResult><?xml version="1.0" encoding="utf-16"?><CurrentWeather> <Location>Cape Town, Cape Town International Airport, South Africa (FACT) 33-59S 018-36E 0M</Location> <Time>May 28, 2013 - 03:00 AM EDT / 2013.05.28 0700 UTC</Time> <Wind> from the NNW (330 degrees) at 7 MPH (6 KT) (direction variable):0</Wind> <Visibility> 4 mile(s):0</Visibility> <SkyConditions> mostly cloudy</SkyConditions> <Temperature> 57 F (14 C)</Temperature> <DewPoint> 53 F (12 C)</DewPoint> <RelativeHumidity> 87%</RelativeHumidity> <Pressure> 30.03 in. Hg (1017 hPa)</Pressure> <Status>Success</Status></CurrentWeather></GetWeatherResult>
    </GetWeatherResponse>
    </soap:Body>
    </soap:Envelope>
    While running Concurrent Program, by providing PARAMETERS : Cape Town, South Africa,
    the result is ,
    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <GetWeatherResponse xmlns="http://www.webserviceX.NET">
    <GetWeatherResult>Data Not Found</GetWeatherResult>
    </GetWeatherResponse>
    </soap:Body>
    </soap:Envelope>
    Why the outputs are different for the same procedure..
    Anybody , Please help me to fix this issue.
    Thanks
    Winsky

    duplicate post
    Please see
    Calling webservice from PLSQL
    Please confirm are you the one who post the above thread
    ;) AppsMAsti :)
    sharing is Caring

Maybe you are looking for

  • Highlight / Markup features in Windows 8.1 to help at my job

    I work in pharmaceutical regulatory affairs and just purchased a Thinkpad Yoga running Windows 8.1; my first touch screen device that is larger than a smart phone. The pen / stylus is aweseome. The features I would like in a PDF reader are as follows

  • IPod Touch 32 GB and iMac G4 800 Mhz

    Will an iPod Touch successfully connect and function properly with an iMac G4 800 Mhz. I need it to work with no problem. I know it requires a USB 2.0, but it only has 1.0 or 1.1 I believe. Thanks! Please only post with experience regarding this conf

  • No bootable device found- insert disk and press any key

    hi all, recently i have updated my macbook pro (mid 2012) from mavericks to yosemite now the problem is i cannot install windows 8.1 both by bootcamp and through direct booting when i go through bootcamp or by direct boot it says : NO BOOTABLE DEVICE

  • SNP - Lot Size Query

    Hi Experts, I have a typical scenario for lot size. For given product, Minimum lot size is 10000 qty. But the incremental qty is 100. i.e. I can product 10000, 10100, 10200, 10300 and so on.. Can anyone suggest settings required for this condition? T

  • How do I change the photo GPS location from DMS to D.ddd

    I get GPS location as part of the information along with a photo.  It shows in Degrees Minutes and seconds.  Is there a way to make it record as Degrees and fractional degree?