Skip to Content
avatar image
Former Member

how to fetch data from external system via URL into sap ui5

Hi

i have to fetch data from external system into my sap ui5 application . I am given URL by the client to fetch the details but since it is not odata service how can i use it in my application.

when i run the url in browser it is giving the output in xml format.

can anyone please let me know how to use that service url to fetch the details.

Thanks and Regards,

Krishna

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 24, 2017 at 02:15 PM

    How data is exposed from external URL? Is it a Web service? Please look into below code - it might help you

              $.ajax({
                     url : "Your webservice wsdl url",
                     type : "GET",
                     data : request,
                     dataType : "text",
                     contentType : "text/xml; charset=\"utf-8\"",
                     success : function(data, textStatus, jqXHR) {
                            response = data;
                     },
                     error: function(xhr, status)
                     {
                            console.log("ERROR");     
                     }
              });
    

    ~Rahul

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 27, 2017 at 11:59 AM

    Hi

    This is the URL given by the client

    http://usildaml.ca.com:1098/pgxc?grpnme=PLA&grprel=19.0&returninput=1

    can you please let me know how to use this url to map my json model data with this URL attributes

    Add comment
    10|10000 characters needed characters exceeded