Skip to Content
0

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

Feb 24, 2017 at 01:29 PM

49

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Rahul Gupta Feb 24, 2017 at 02:15 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
krishna boddu Feb 27, 2017 at 11:59 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded