How to consume Json Feed

Hi Team
How to consume Json Feed, using REST POST action through SAP ABAP.

Anthony, being the Chief Architect of the BI Platform RESTful SDK probably knows a fair bit about the topic...
What you want to do, is look at the Overview of each SCN Space to see what it supports. E.g.; This Space:
The following doc lists all the Spaces on SCN and perhaps you will find the best place to post your query there:
SCN Site Index
- Ludek
SCN Moderator

Similar Messages

  • How to consume json webservice in abap?

    hello  every one please help me how to consume json format webservice in abap.
    i am new in abap please help me out .
    Thanks&Regards
    ~Ahmad

    hi check this,
    First create a web service in SAP. The blog by Uwe Kunath descibes this clearly. Then create an Xcode project and use the ASIHTTPRequest wrapper to connect to the web service. Parse the response with the KissXML parser. A more out of the box solution is NetWeaver Gateway. It also let you use SAP web services but it also generates iOs code for you. SAP just released a trial version in de download section.
    Example of ASIHTTPRequest
    - (void)getFlightData:(NSString *) selectedDate {
         NSURL *url = [NSURL URLWithString:@"http://abap.sapdev.nl:8000/sap/resources/flights/from/%/to/%/date/20110128?sap-client=001"];
         ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
         [request setUsername:@"BCUSER"];
         [request setPassword:@"minisap"];
         [request startSynchronous];
         NSError *error = [request error];
         if (!error) {
              NSString *response = [request responseString];
              [self parseXML:response];
    Example of KissXML
    -(void)parseXML:(NSString*)source {
         NSError *error = nil;
         DDXMLDocument *theDocument = [[DDXMLDocument alloc] initWithXMLString:source options:0 error:&error];
         NSArray *results = [theDocument nodesForXPath:@"/asx:abap/asx:values/TAB/BAPISFLDAT" error:&error];
         for (DDXMLElement *flightdetail in results) {
              NSString *airlineid =   [[flightdetail elementForName:@"AIRLINEID"] stringValue];
              NSString *airline =     [[flightdetail elementForName:@"AIRLINE"] stringValue];

  • How to read json file locally in c#

    Hi
    I am developing wp8 devotional app my questions are
    1. How can i write a code to read the json/text file for each day's devotional locally
    This is my code below
    xaml
    <ScrollViewer>
                    <TextBlock x:Name="textblock" TextWrapping="Wrap" Foreground="White"/>
                </ScrollViewer>
    xaml.cs
    protected override void OnNavigatedTo(NavigationEventArgs e)
                AddDevotions();
                int index = DateTime.Now.DayOfYear;
                textblock.Text = devotions[index];
            List<String> devotions = new List<string>();
            private void AddDevotions()
                devotions.Add("4 Faith works miracles");
                devotions.Add("5 Faith works miracles");
                devotions.Add("6 Faith works miracles");
                devotions.Add("7 Faith works miracles");
                devotions.Add("8 Faith works miracles");
                devotions.Add("9 Faith works miracles");
                devotions.Add("10 Faith works miracles");
                // add 366 days
    Thank you in advance and reply soon
    Jayjay john

    Hi Joakins,
    Here is one code part that I write in one of my applications For that you need to have Newtonsoft.Json library (nuget) to reference 
    /// <summary>
    /// Read all places form file
    /// </summary>
    /// <returns></returns>
    internal async Task<object> ReadConfigAsync()
    try
    await AddConfigAsync();
    StorageFile ConfigFile = await localFolder.GetFileAsync("Config.js");
    //Decrypt data
    string StringList = await FileIO.ReadTextAsync(ConfigFile);
    PlaceRootObject resultTemp = await Task.Factory.StartNew(() => JsonConvert.DeserializeObject<PlaceRootObject>(StringList));
    return resultTemp;
    catch (Exception)
    return null;
    after following line its all about consuming Json.
    string StringList = await FileIO.ReadTextAsync(ConfigFile);
    Here
    is link about consuming Json
    This file is stored locally in isolated storage
    Hope that helps 
    Please don't forget to up vote answers you like or which help you and mark one(s) which answer your question.
    M Prabath Maduranga Peiris
    Microsoft Partner  and MSP/MSA 
    Blogs : prabathsl.blogspot.com

  • Extract data in JSON feeds into apex collection

    Hi,
    Does anyone know if there is any way to convert JSON feeds - from public web services - into apex collections?
    http://earthquake.usgs.gov/earthquakes/feed/geojson/all/day
    Thanks.

    Hi,
    Does anyone know if there is any way to convert JSON feeds - from public web services - into apex collections?http://earthquake.usgs.gov/earthquakes/feed/geojson/all/day>
    AFAIK there is no built-in functionality to consume JSON in Oracle as well as APEX. For processing JSON in PL/SQL you have PL/JSON , if you want to go that route.
    My personal preference is jQuery.parseJSON . You can use this in conjunction with AJAX/ On Demand process to load the data into APEX_COLLECTION.
    Cheers,

  • How to consume a web service provided by third party system from SAP system

    Hi Friends,
    Could any of you provide me a clear picture on how to consume a web service from SAP system and is provided by a third party system?
    Do we get an URL to create a client proxy for consuming the web service?
    Thanx in advance,
    Ram

    Hi Ram,
    of course you cannot supply the WSDL URL. Inside the WSDL (just view it in your browser) you find (usually but not necessary) towards the end something like
    <soap:address location="http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php"/>
    which is the actual adress of the service.
    An example service can be found here:
    <a href="http://www.weather.gov/xml/">National Digital Forecast Database</a>
    containing the WSDL URL at
    <a href="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl">this address</a>.
    You might also want to browse for the amazon webservices which allow you to embed queries against amazon into your application.
    have fun,
    anton

  • How to set form feed   in output .lst file

    sql >set pagesize 60
    spoo abc
    select * from xyz;
    spoo off
    In the file abc.lst header and placed details 60 lines. but at
    the time of printing if paper lenght is 72 lines how to set form feed?

    Try
    set newpage 0

  • How to Consume a WebService in JSP DynPage

    Hi Friends,
    We have created a Web Service and We want to Consume that in my JSP Dyn Page.
    Please let me know how to consume the Web Services that are created.
    I am having a WSDL File and need to consume it in Enterprise Portal Applications.
    Thanks in Advance.
    Regards,
    Palani

    Hi Palani,
       Create a Portal Application and access the External Web Service (Say for example, http://api.google.com/GoogleSearch.wsdl ).  Create the Portal Application Object -> Portal Web Service -> Portal WebService from wsdl file -> Client Side -> Enter the Wsdl file as http://api.google.com/GoogleSearch.wsdl -> Select the methods to expose -> Enter the service name, Alias and package name should be a unique one. and finish.
    Create bean to set the values.
    In your JSPDynpage Component enter the following code:
    public void doInitialization(){
       YourServiceName obj=(YourServiceName) PortalRuntime.getRuntimeResources().getService(YourServiceName.KEY);
      MyBean beanObj = new MyBean();
      beanObj.setterMethod(obj.calltheMethodinWSDL());
    And in your JSP page, call the bean getter method.
      It's overview only, you can do it.
    Regards,
    Venkatesh. K

  • How to consume Web Service in ABAP WebDynpro

    Hi
    I want to know the entire details about how to consume Web Service in WebDynpro application.
    regards
    Piyush

    hI piyush,
    Have a look at this Blog by Thomas Jung.
    /people/thomas.jung/blog/2007/12/17/consuming-services-with-abap
    on consuming webservies thru webdynpro ABAP
    Cheers
    Mary

  • How to consume WSDL from SR in PI 7.1

    Hi,
      How to publish WSDL into SR. How to consume WSDL from SR. Can anybody guide me step by step.
    Thanks & Regards,
    Venkat K

    Hi venkat,
    Check out the blog : /people/daniel.graversen/blog/2008/02/27/publish-services-from-pi-71-to-the-service-registry
    also : https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0f3cf81-e6da-2a10-6891-ef321fdc1a6b
    Thanks,
    Pooja Pandey
    Edited by: Pooja Pandey on Jan 27, 2009 10:26 AM

  • How to find the Feeder class behind Incident creation in SAP EHS?

    I have a requirement where i need to change the message text after clicking "Send" button while creating Incident.
    How to find the feeder class and method which is called behind "Send" button ?
    Thanks,
    Vimal

    I dont have such.. but you can set  external debug point in function module POWL_QUERY_REFRESH
    * get the result object type from the feeder
       lr_feeder->get_object_definition(
          EXPORTING
           i_selcrit_values = lt_crit_para  " selcrit dependent object def.
           i_langu = l_langu                                     "nt_1673495
           i_type  = i_query_data-type
          IMPORTING
           e_object_def = lr_object_def
    In I_QUERY_DATA-TYPE you can see name of POWL ID.
    Find it in transaction POWL_TYPE and you get name of feader class!

  • How to consume Web Services form ABAP ?

    Hi,
    Please advise how to consume web services from ABAP Code ? is there any automatic generating proxy class in order to consume web services ?
    I am using NW 7.0 SP15
    Thank You and Best Regards
    Fernand Lesmana

    Hi Fernand,
    chk out for this link
    Consume an ABAP Webservice (WAS 620) from .Net
    Send SMS to India from ABAP
    working web service from ABAP
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a4433436-0301-0010-f2a9-9281ad574054
    Regards
    Sampath

  • How to consume WEB SERVICES from ABAP ??

    Q: How to consume WEB SERVICES from ABAP program??
         the point here is i am using SAP release 620 and the creation of proxy is out of scenario
         and also no XI.    Its only through ABAP program i need to consume one web service (its a HTTPS one ),
        Using cl_http_client... i tried it but i am totally confused of whats happening ???
    Req some senior ppl advice on the same/approach.
    any hints will suffice my way of approach...!!!
    Please do put in your valuable advices..!!
    Thanks in advance..!!!!

    Hello Srinivas,
    Following is the code for calling web service:
    data: client type ref to if_http_client,
          host   type string value 'server url',
          service type string value '8080',
          path type string value '/sap/public/ping',
          errortext type string,
          proxy_service type string,
          scheme type i value 1.
    call method cl_http_client=>create
    exporting host  = host
            service  = service
         proxy_host  = host
       proxy_service = service
       scheme        = scheme
    importing client  = client
    exceptions
        argument_not_found = 1
        internal_error     = 2
        plugin_not_active  = 3
        others             = 4.
    case sy-subrc.
      when 0.
         write 'Server reached successfully'.
      when others.
         write: 'sy-subrc =', sy-subrc.
    endcase.
    Once you got the client object you can call following methods:
    "Set the requrie URL for the web service you want to call. This is not WSDL anyway!!
    cl_http_utility=>set_request_uri( request = client->request
    uri =' url 2 be called ').
    *Then you can call send method with proper inputs for sending request to WS
    CALL METHOD client->send
    Then you can use receive method for getting the response
    CALL METHOD client->receive
    *You can get last error in case of exceptions
    CALL METHOD cl_http_client=>get_last_error
    *Close the client object
    CALL METHOD client->close
    For more information on full code refer my link in previous replay.
    Thanks,
    Augustin.
    Edited by: Augustarian on Aug 18, 2009 1:49 PM

  • How to consume SOA service in SSRS

    0
    Hi,
    I am working on SSRS.I deployed my application in reporting server 2012 R2.I am having only RDL files and HTML file.Through HTMl with parameters i am calling RDL files.
    Now i need to consume SOA service for the live data.Please help me how to consume SOA service in SSRS.
    Thanks,
    Vijay

    Hi RSingh,
    Thanks for your help and could you please let me know how exactly we need to consume SOA service.
    In my datset Query part i am having the Query like this
    <Query>
    <Method Name=""   Namespace="http://tempuri.org/">
    <Parameters>
    <Parameter Name=""></Parameter>
    </Parameters>
    </Method>
    <SoapAction>
    </SoapAction>
    </Query>
    Is this the way of consuming SOA??.Please let me know on this.
    Thanks,
    vijay

  • How to consume OData service in  sapui5

    hi,
        how to consume Odata service  in sapui5 (table).
      If any idea  please share with me.

    i tryed but  some error comes:-
    Failed to load resource: the server responded with a status of 401 (Unauthorized) https://xxxxxxxxxxxxxx.com/sap/opu/odata/sap/Z_BANK/$metadata
    Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:55176' is therefore not allowed access.

  • How to consume web service in interactive forms?

    Does anyone knows how to consume the web services in Interactive forms?
    Where my interactive forms is created using SAP Netweaver and my web services is created using myEclipse?
    Your help wil be greatly appreciated...and i would not be stingy with the points i award as long as it is useful to me..
    thanks...

    Check this
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f09cf040-237b-2a10-54bb-bbcbf2d48639
    Regards,Anilkumar

Maybe you are looking for