How to Expose SOA component as Rest Service

Hi,
Is there a example to show how to expose SOA component as Rest Service using Http Binding adapter ?
or
How to call Rest Service from BPEL/Composite application ?
Thanks,
Naveen
Edited by: 975104 on Dec 21, 2012 1:57 AM

Please refer Real Web Services with REST and ICF for creation of rest services in sap. The BAPI will have to be called in your handler class.
I think your best bet would be to transfer the data in the body of the http request and use simple transformation(with multiple roots) to convert the xml data to sap formats. GZIP can also be used to compress the data that is being sent. We have done this successfully in one of our projects.
However this approach(RESTful Service) would involve more work when compared to the approach suggested by Vikram. If SOAP based services are ok, then you should go ahead with Vikram's approach.

Similar Messages

  • How to POST the data though Rest services though composite object.

    I am new to REST services.
    I need to write REST Serivices to post(Update) the data using Composite object.
    I created the structure to pass the composite object from jquery to the REST services.
    How can i handle that composite object in REST Services URITemplate and interface methods.
    can i have sample code to handle the composite object in REST Services?
    Thanks in advance.

    Did you check this post?
    http://sharepoint.stackexchange.com/questions/25222/posting-json-to-a-rest-wcf-endpoint-in-sharepoint-using-cksdev
    --Cheers

  • How to expose a bapi as Rest webservice to consume in web applications

    Hello experts , i now seriously need your suggestion here. Is there a way to expose a BAPI as a rest webservice which can be consumed by a web application in the end.
    What is ICF ( Internet Communication Framework) ? Does this help in generating web service from BAPI ?
    Netweaver Gateway might help to generate services but may not be recommended here in our scenario.

    Please refer Real Web Services with REST and ICF for creation of rest services in sap. The BAPI will have to be called in your handler class.
    I think your best bet would be to transfer the data in the body of the http request and use simple transformation(with multiple roots) to convert the xml data to sap formats. GZIP can also be used to compress the data that is being sent. We have done this successfully in one of our projects.
    However this approach(RESTful Service) would involve more work when compared to the approach suggested by Vikram. If SOAP based services are ok, then you should go ahead with Vikram's approach.

  • How to authenticate with Sharepoint using rest service and jquery

    Hi ,
    I have a requirement where i need to authenticate with  sharepoint from ios and android app using rest services and jquery.
    Can anyone help me in this .
    Thanks in Advance.
    Regards,
    Srinath 

    Hi,
    According to your post, my understanding is that you want to access SharePoint data from IOS and Android app.
    The following materials for your reference:
    How can I authenticate SharePoint REST calls from Android App?
    http://stackoverflow.com/questions/24673373/how-can-i-authenticate-sharepoint-rest-calls-from-android-app
    Calling RESTful services from your Android app
    http://www.techrepublic.com/blog/software-engineer/calling-restful-services-from-your-android-app/
    SharePoint 2013 REST API in iOS
    http://omicron-llama.co.uk/2012/12/13/sharepoint-2013-rest-api-in-ios/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • BODI: How to extract data from a RESTful service

    Hi,
    Is there a way tot extract data from a REST service using Data Integrator (12.1.1.0)?
    I have to import data (in batch and with filters) from  several  webservices using  urls  like https://customer.productservice.net/connect/products.xml
    The service fills the xml file once you call the url.
    To calll the service, you need a username/password.
    Any ideas?
    Thanks!
    Robert.
    Edited by: Robert van den Berg on May 11, 2010 5:09 PM

    Hi,
      I got my answer, goto RS02 to create a datasource to link to this Infoset.

  • Is exposing ADF BC as RESTFul service supported by current JDev?

    According to the presentation at http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/adf-service-integ/adf-service-integ.html, Frank mentioned that Jdev will support RESTFul services for ADF BC in future. Is it available now? If no then is there any tentative version number when it might be available?

    Hi Frank
    Is this why the "ADF Model RESTful WebService Project" option in the New Gallery is greyed out in the 12.1.2c version of JDev.
    Eddie

  • How to Authenticate with sharepoint using rest services

    I have a requirement where i need to authenticate with  sharepoint from ios and android app using rest services and jquery.
    Can anyone help me in this .

    You can use OAuth for authentication.
    http://msdn.microsoft.com/en-us/library/office/fp142382%28v=office.15%29.aspx

  • How to update and delete using rest services in SharePoint 2013..

    I am looking to create,update and delete data in SharePoint list where i am using below code for creating data..I should be performing three operations on single button click how can i achieve this.Below is the code i am using for creating data to list and
    displaying in CEWP.
    <html>
    <head>
    <style type="text/css">
    #mytable{
    border : 1px solid;
    </style>
    <script type="text/javascript" src="https://sharepointapp28.sharepoint.com/sites/Dev2013/SiteAssets/Scripts/jquery-1.11.1.min.js" ></script>
    <script type="text/javascript">
    var ListName;
    var webUrl;
    $(document).ready(function(){
     SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady);//Doubt
    function sharePointReady() {
    webUrl = _spPageContextInfo.siteAbsoluteUrl;
    ListName = "test"; 
    $('#btnSub').click(function () {
    updateItem();
    function updateItem() {
    var name = $('#txtName').val();
    var Desc = $('#txtDesc').val();
    var city = $('#txtCity').val();
        var itemType = GetItemTypeForListName(ListName);
        var item;
            item = {
                '__metadata': { "type": itemType },
                'Name': name,
                'Description': Desc,
                'City': city
        var xmethod = 'POST';
        jQuery.ajax({
            url: webUrl + "/_api/web/lists/getbytitle('" + ListName + "')/items",
            type: "POST",
            data: JSON.stringify(item),
            contentType: "application/json;odata=verbose",
            headers: {
                "Accept": "application/json;odata=verbose",
                "X-RequestDigest": $("#__REQUESTDIGEST").val()
            success: onUpdateMSOPProcessSuccess,
            error: onUpdateMSOPProcesFail
        function onUpdateMSOPProcessSuccess(data) {
    alert('successfully updated to MyList!!!')
        function onUpdateMSOPProcesFail(data) {
            alert(data.d.err);
    function GetItemTypeForListName(name) {
        return "SP.Data." + name + "ListItem";
    </script>
    </head>
    <body>
    <table style="width:500px" id="mytable">
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr><th colspan="3">Rest API</th></tr>
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr><th>Name</th> <td> : </td> <td> <input type="text" id="txtName" /> </td></tr>
    <tr><th>Description</th> <td> : </td> <td> <input type="text" id="txtDesc" /> </td></tr>
    <tr><th>City</th> <td> : </td> <td> <input type="text" id="txtCity" /> </td></tr>
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr><th></th><td colspan="2" align="left"><input type="button" value="submit" id="btnSub" /></th></tr>
    <tr><td colspan="3">&nbsp;</td></tr>
    </table>
    </body>
    </html>

    Hello,
    With one button you want to perform 3(Create, Update and Delete) operation
    To create:
    First check whether the data exist with full combination of Name,Desc and City.
    If not exist you can execute the create function.
    If exist, get confirmation to delete the item by pop up. Using item ID you can perform Delete operation
    To Update:
    How you want to update the item, by keeping unique value or combination of columns?
    based on that you can perform the update operation.
    Whenever you see a reply and if you think is helpful, click "Alternate TextVote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "Alternate TextMark As Answer

  • How pass collection of POJO to RESTful Service

    Hi all
    I have to pass a lot of data to APEX service. This data contains some common data and unlimited list of plain objects of same type. How can I process this data with PL/SQL? I didn't find any examples to parse POST request.
    One solution is to separate request into series of requests and use GET request to report each item but may be you know more elegant way
    Thanks,
    Denis

    The OCI (Oracle Call Interface) supports collections as objects aka ADTs (Advance Data Types).
    The details are in the OCI manual.
    However, you are likely (like most Oracle developers) not dealing directly with the OCI, but using some kind of class or wrapper of sorts in the client language that in turns does the OCI calls for you.
    What client language are you using?
    A client can make a PL/SQL or SQL that dynamically constructs a collection. E.g. the client constructs the following dynamic and anonymous PL/SQL block:
    begin
      AddRows(
         TTable( TRow(1,2), TRow(1,3), TRow(2,1), TRow(3,2) )
    end;
    The problem with this approach is that each time the client constructs such a block it will not be a sharable PL/SQL & SQL block. This approach can thus severely fragment the Oracle shared pool and cause a huge performance knock.
    An alternate approach can be used if OCI object calls are not supported or too complex on the client side. Create a PL/SQL package with a static session collection variable.
    The client calls the AddRow() procedure in the package. This procedure extends the static collection variable and adds the row to it. No INSERT yet.
    When the client has made n number of AddRow() calls, the procedure "flushes" the contents of the static collection to disk using a bulk FORALL INSERT statement, after which it resets the static collection variable to zero/null.
    The potential problem with approach is PGA - making sure that the size of the static collection variable in PL/SQL does not get out of hand.
    The prime consideration is however to write sharable SQL.

  • Expose REST service in PI

    Hi all,
    I kindly ask if it's possible to expose a REST web service with PI to be called from an external application.
    I've created many scenarios in wich I created a SOAP service (from service interface) in PI and I was able to call the service from an external application (e.g. SOAPUi).
    Is it possible to make the same thing exposing a REST service (the url should contain parameters).
    I've seen some discussions and blogs with examples of usage of "SOAP Axis" but it seems it's be possible only to invoke an external service.
    Is it possible also to create a REST web-service?
    If yes could you please provide examples or step-by-step procedure?
    Thanks in advance for any help.
    Stefano.

    Hi Stefano,
    please check the below link where REST adapter key features.
    >>>I kindly ask if it's possible to expose a REST web service with PI to be called from an external application.
    It can be used to expose internal applications as REST services or to consume external REST services by calling these services from SAP PI.
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2011/11/08/rest-adapter-for-netweaver-sap-pi
    Thanks and Regards,
    Naveen    

  • How to expose odata service for input parameter based procedure.

    i have created one procedure in my schema.
    CREATE PROCEDURE TEST
    (in id varchar) AS
    BEGIN
    SELECT * FROM "table" WHERE "ID" = :id;
    END;
    and i am able to call the procedure from console.
    CALL "schema"."TEST"('1')
    my question is how to expose this procedure as odata service.
    is there any way to do it. ???

    hello Avinash. this is where i stuck in my code. i dont know how to wrap procedure in calculation view..
    My procedure code is below.
    create procedure "Get_User_for_Project"(in PROJECT_ID VARCHAR(255), out OUTPUT_TABLE "schema"."test_table")
    language SQLSCRIPT sql security definer  as
    BEGIN
    truncate table "schema"."test_table";
    OUTPUT_TABLE = SELECT "ID", "FIRST_NAME", "LAST_NAME" FROM "schema"."U_USER" WHERE "ID" IN (SELECT "USER_ID" FROM "schema"."U_USER_PROJECT" WHERE "PROJECT_ID" = :PROJECT_ID);
    END;
    my procedure is working fine. i just need help to wrap in calculation view with input parameter.

  • Expose Orchestration as RESTful service in Biztalk Server 2013

    Hello all,
    I am having BizTalk application (orchestration)where I am receiving few info and sending it back some info to requestor.
    I want to expose this orchestration as RESTful service, to do that I know we can use BiztTalk WCF Publishing wizard and select "WCF Web Http" but what needs to add in other fields ? can some one tell me ?
    or point me to some example...
    Note : I tried this example but no use ......http://seroter.wordpress.com/2012/11/12/exploring-rest-capabilities-of-biztalk-server-2013-part-1-exposing-rest-endpoints/
    Thanks,
    Nilesh Thakur.
    Thanks and Regards, Nilesh Thakur.

    Hi Nilesh,
    I have do it by following way .Links are listed below
    http://code.msdn.microsoft.com/BizTalk-Server-2013-WCF-e3e4a4f9
    http://vikasbhardwaj15.blogspot.co.uk/2014/01/publish-rest-service-from-biztalk-server.html#!/2014/01/publish-rest-service-from-biztalk-server.html
    Thanks
    Abhishek

  • Intermittently getting 404 while accessing RESTFul Service

    Hi,
    I am using apex.oraclecorp.com and exposed simple not secure RESTFul Service. Some user of it in different geographic location are getting error 404.
    Any idea why? Also how can I enable debug or look at the logs etc?
    Thanks,
    -Abhi

    Hi Srinivas
      Try putting the port of your portal
       http://<ip>:<port>/irj/portal
    good luck
    Joshua
    Message was edited by: Josue Cruz

  • Do SMP3.0 supports JSON based RESTful services exposed via JBOSS server??

    Hi All,
    We are working on a PoC for a customer to consume JSON based RESTful (exposed via JBOSS Server) service from SMP 3.0. We were not able to get the DataSet. the below are the steps which we performed and the respective result.
    1) Created a SMP Application - Able to ping the application with the base URL
    2) Tested the connections - Able to create a Registration using Firefox POSTMAN client
    3) Data Consumption from the service - We are not able to get the response for the service when we try the same via SMP,but we are able to get the data when we try the REST service URL directly from the browser.
    How do we achieve this? Do SMP3.0 support JSON based RESTful service? Can Integration Gateway Help?
    Thanks, Prem

    hi Jitendra,
    attached are the screen shots of both SMP service from postman we tried and the original service from the browser.
    1- postman ping for SMP URL and header says success.
    2- Response body with entity set structure and empty data there is no data inside the collection named "Connection" as well and if i call this i fails with 501, that not implemented, so i guess SMP3 is unable to create the entity set out the JSON REST services while converting it into Odata service internally.
    3- i can view data if run directly the REST service from browser.

  • How to expose BPEL service to outside company network

    Hi Folks
    We have created a BPEL process and want to expose it as a web service to our partners and clients. Typicall the WSDL would look like this:
    http://hostname:port/soa-infra/services/default/processname/processid?WSDL
    How can we create a virtual link from this? so that they do not see the actual implementation.
    Any help please.
    Many thanks
    Deepak

    Typical implementations I have seen uses a web server sitting in DMZ redirecting alias URL's to the actual internal url's....
    You can check the enterprise deployment guide which shows this architecture ( in a nice picture) using Oracle HTTP server..
    Its not a good idea to directly hit soa or osb servers if its sitting within an internal firewall.. If you have your service bus sitting in DMZ then you could use osb proxy service. still you will have to setup some dns aliases and IP Natting to prevent the actual server name going out and to route between external and internal networks..
    Strictly this should be part of network design adhering to the enterprise's network and security policies and not something for soa developers to decide.

Maybe you are looking for

  • How to open a URL without session ID and reuse the current browser session?

    Hi All, I have a question about HTMLDB 2.0 How to open a URL without session ID and reuse the current browser session? That was the behaviour in HTMLDB 1.6 ... My usecase for this is the following: We have written an issue tracking application, which

  • How to disable my ipad

    well this morning my ipad was disabled now i cant get i from unlocking so i need help unlocking my ipad

  • What's the latest/higest OS for G5/G4?

    Hi, Someone just gave me my first Macs in 11 years. A G4 and a G5. They have Os 10.4 installed. Whats the highest I can upgrade their OSs? Thanks!

  • Add Profit center to cost collector

    Hello SAP Guru     Is it possible to add a profit center to a cost collector which is already is in use.If yes then how ? Thanks in advance.

  • Problem loading image (from JAR)

    Hi I was wondering why this code works when running the app in my IDE, but not once exported in a JAR file: public static BufferedImage loadDefaultCover()           try                return ImageIO.read(new File("./images/default.png"));           }