- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Converting OData using SAPUI5 libraries to JSON format
This can be done in multiple ways. One of common approach would be by passing user name/password in URL.
$.ajax({ url : "http://user:password@url/SERVICE?$format=json", type: "GET", //or POST? dataType: "jsonp", success: function(){alert("ok")}, error: function(){alert("error")} })
Advertisements