cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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