The document provides an overview of AJAX and web services. It discusses AJAX architecture and how it uses XMLHttpRequest objects to asynchronously exchange data with web servers without reloading pages. It also covers web services, describing them as software modules that can be published, located, and invoked over a network to perform tasks. The key components of web services are defined as SOAP, WSDL, and UDDI, which handle messaging, description, and discovery.
This document provides an overview of ASP.NET Web API, a framework for building RESTful web services. It discusses key REST concepts like URIs, HTTP verbs, and HATEOAS. It also compares Web API to other technologies like WCF and SOAP, noting advantages of REST such as simpler CRUD operations and standardized development methodology. The document recommends resources like a book on building REST services from start to finish with ASP.NET MVC 4 and Web API.
iWard 3.0 - Advantech iHealthcare Patient Engagement SolutionMark Anthony Leorna
Advantech Intelligent Ward Solution enables patients to communicate their needs quickly, improves treatment efficiency, and increases patient and overall staff satisfaction.
If you would like to know more drop me a message on LinkedIn: https://www.linkedin.com/in/markleorna/
The document is a presentation on the HAPI-FHIR library for Java developers. It introduces HAPI-FHIR as a toolkit for building FHIR clients and servers rather than a client or server itself. It summarizes the key components of HAPI-FHIR including structure classes to represent the FHIR model, parsers to convert resources to/from XML/JSON, a client to access FHIR servers via HTTP, and a server component. Code examples are provided to demonstrate creating FHIR resources using the structure classes and encoding/parsing resources with the parser components.
This document discusses Python sets - unordered collections of unique elements. Sets can be created using curly brackets or the set() constructor. Items in a set cannot be accessed by index since sets are unordered. Common set methods allow adding, removing, checking for presence of elements, and performing set operations like union, intersection, difference.
Python-04| Fundamental data types vs immutabilityMohd Sajjad
Fundamental data types like integers, floats, booleans and strings are immutable in Python. Immutable means the object cannot be changed once created. For integers from 0 to 256, Python reuses the same integer objects to save memory. It also reuses the two boolean objects for True and False. For strings, a new object is created each time due to the large number of possible string values. Floats and complexes are also immutable and do not reuse objects. Immutability helps improve performance and memory usage in Python.
This file contains the first steps any beginner can take as he/she starts a journey into the rich and beautiful world of Python programming. From basics such as variables to data types and recursions, this document touches briefly on these concepts. It is not, by any means, an exhaustive guide to learn Python, but it serves as a good starting point and motivation.
This document discusses basic data types in Python, including numeric, sequence, boolean, and dictionary types. It provides examples and explanations of integer, float, complex, string, list, tuple, set, and dictionary data types. Numeric types represent numeric values, sequence types organize ordered sequences, boolean represents True or False, and dictionary stores key-value pairs. Python assigns data types dynamically based on values and allows flexible conversion between types.
This document provides an overview of ASP.NET Web API, a framework for building RESTful web services. It discusses key REST concepts like URIs, HTTP verbs, and HATEOAS. It also compares Web API to other technologies like WCF and SOAP, noting advantages of REST such as simpler CRUD operations and standardized development methodology. The document recommends resources like a book on building REST services from start to finish with ASP.NET MVC 4 and Web API.
iWard 3.0 - Advantech iHealthcare Patient Engagement SolutionMark Anthony Leorna
Advantech Intelligent Ward Solution enables patients to communicate their needs quickly, improves treatment efficiency, and increases patient and overall staff satisfaction.
If you would like to know more drop me a message on LinkedIn: https://www.linkedin.com/in/markleorna/
The document is a presentation on the HAPI-FHIR library for Java developers. It introduces HAPI-FHIR as a toolkit for building FHIR clients and servers rather than a client or server itself. It summarizes the key components of HAPI-FHIR including structure classes to represent the FHIR model, parsers to convert resources to/from XML/JSON, a client to access FHIR servers via HTTP, and a server component. Code examples are provided to demonstrate creating FHIR resources using the structure classes and encoding/parsing resources with the parser components.
This document discusses Python sets - unordered collections of unique elements. Sets can be created using curly brackets or the set() constructor. Items in a set cannot be accessed by index since sets are unordered. Common set methods allow adding, removing, checking for presence of elements, and performing set operations like union, intersection, difference.
Python-04| Fundamental data types vs immutabilityMohd Sajjad
Fundamental data types like integers, floats, booleans and strings are immutable in Python. Immutable means the object cannot be changed once created. For integers from 0 to 256, Python reuses the same integer objects to save memory. It also reuses the two boolean objects for True and False. For strings, a new object is created each time due to the large number of possible string values. Floats and complexes are also immutable and do not reuse objects. Immutability helps improve performance and memory usage in Python.
This file contains the first steps any beginner can take as he/she starts a journey into the rich and beautiful world of Python programming. From basics such as variables to data types and recursions, this document touches briefly on these concepts. It is not, by any means, an exhaustive guide to learn Python, but it serves as a good starting point and motivation.
This document discusses basic data types in Python, including numeric, sequence, boolean, and dictionary types. It provides examples and explanations of integer, float, complex, string, list, tuple, set, and dictionary data types. Numeric types represent numeric values, sequence types organize ordered sequences, boolean represents True or False, and dictionary stores key-value pairs. Python assigns data types dynamically based on values and allows flexible conversion between types.
ASP.NET Web API is the de facto framework for building HTTP-based services in the .NET ecosystem. With its WCF and MVC lineage, Web API brings to the table better architecture, easier configuration, increased testability, and as always, it's customizable from top to bottom. But to properly use Web API it is not enough to get familiar with its architecture and API, you also need to really understand what HTTP is all about. HTTP is the most common application layer protocol in the world, and yet, not many web developers are familiar with HTTP concepts such as of chunking, caching, and persisted connections. In this full-day tutorial, we will focus on designing and implementing HTTP-based services with ASP.NET Web API, and you will learn how to better use it to implement the features provided by HTTP.
Quick introduction to APIs: what they are and why they are important. Talk given in February 2014 at Girl Geek Meetup.
http://camillebaldock.co.uk/introduction-to-apis/
Website: http://camillebaldock.co.uk
Twitter: @camille_
Third party libraries and OSGi - a complicated relationshipSascha Brinkmann
The provisioning of third-party libraries and frameworks within the Apache Felix OSGi implementation has always been a challenge. This occurs due to the case that not every library is available as an OSGi Bundle and not every library is ready to run within an OSGi environment. Especially big frameworks like Hibernate and Apache CXF, with their large number of depending libraries and the way how they work, makes it time consuming to make them OSGi compatible. This presentation addresses the main issues, especially the ones caused by class loading, and shows various approaches on how to resolve these.
The document discusses developing REST APIs with Python and Django Rest Framework (DRF). It explains the basics of REST, why it is used, and how to build a REST API with DRF including serializers, views, URLs, permissions, versioning, documentation, and testing. DRF allows building web APIs with Django that are highly configurable and have little boilerplate code. It also supports non-ORM data sources.
In this C# Web API tutorial, beginners will learn first what a web API in C# is and then what an ASP.NET web API is. Learn about the features of the asp.net web API in this C# tutorial. and we will become acquainted with all of the versions of the asp.net web API. This Simplileran tutorial explains the distinction between ASP.NET and WCF (Windows Communication Foundation). Following that, we will learn when to use ASP.NET and when to use WCF. Finally, for a better learning experience, we will see a practical demonstration of C# Web API in this C# programming tutorial.
Objectif général : Connaître les fondamentaux d’une API REST
Objectifs spécifiques :
Savoir définir une API
Connaître l’architecture REST
Connaître les contraintes du REST
Connaître la structure d’une requêtes HTTP
Connaître les caractéristiques d’une ressources
Se servir des méthodes HTTP
Connaître la structure d’une réponses HTTP
Connaître les codes HTTP
The document provides an introduction to web APIs and REST. It defines APIs as methods to access data and workflows from an application without using the application itself. It describes REST as an architectural style for APIs that uses a client-server model with stateless operations and a uniform interface. The document outlines best practices for REST APIs, including using HTTP verbs like GET, POST, PUT and DELETE to perform CRUD operations on resources identified by URIs. It also discusses authentication, authorization, security concerns and gives examples of popular REST APIs from Facebook, Twitter and other services.
OData presentation organized in ITC Hub Pancevo, Serbia, 10. Feb. 2018. https://www.meetup.com/Web-Development-Pancevo/events/247493392/. OData is enhancement of classic REST API concept that adds querying capabilities.
Web services tutorial slides from my session at DPC 2012 in Amsterdam. In this 3-hour session we built the simplest possible service, and then extended it, looking at RPC, REST and SOAP along the way.
This document discusses Python libraries and modules. It defines a library as a collection of modules that provide specific functionality. The standard library contains commonly used modules like math and random. Other important libraries mentioned are NumPy, SciPy, and tkinter. A module is a .py file that contains related variables, classes, functions etc. Modules can be imported using import, from, or from * statements. Namespaces and module aliasing are also covered. The document concludes by explaining how to create Python packages and the role of the __init__.py file in making a directory a package.
Au cœur de la transformation digitale, les APIs reprennent le rôle qui leur est dû : l’essence de l’innovation au sein des organisations. L’écueil aujourd’hui ? les incompréhensions entre les équipes, l’effet buzz-word et la perte de contrôle ou d’opportunités. Pour y faire face, une meilleure gestion des APIS s’impose !
Cette présentation vous permettra de mieux cerner les enjeux autour des APIs :
- Leur nouveau rôle dans le système d’information moderne,
- La gestion des APIs et des innovations,
- L’ouverture vers l’extérieur avec la monétisation des APIs.
Nous approfondirons le sujet grâce à la plateforme Cloud Azure de Microsoft.
The document discusses HTTP requests and responses. It explains that a request contains a start line with the method, URL and HTTP version, followed by headers providing additional information, and an optional message body. A response contains a status line with the protocol version and status code, followed by headers including caching information, and an optional message body. Content negotiation headers like Accept and Content-Type are used to select the appropriate representation format.
The document discusses demystifying APIs. It begins with an introduction to APIs, including their evolution and benefits. It then discusses RESTful APIs and their key aspects like uniform interface and use of HTTP methods. The document outlines best practices for API design, development, and challenges. It provides examples of designing APIs using Node.js and Hapi.js and discusses challenges like security, authentication, rate limiting, and scalability. Tools mentioned include Express, Swagger, Postman, and Kong.
Capstone Turbine develops, manufactures, and services microturbine technology for distributed power generation. As an authorized distributor, E-Finity supports customers in the mid-Atlantic and southeastern U.S. with factory-certified Capstone solutions. Capstone microturbines provide reliable electricity, hot water, and chilled water using a patented air bearing turbine in a simple modular design that is easy to operate and maintain.
HTTP is an application-level protocol for transmitting hypermedia documents across the internet. It uses a client-server model with requests containing a method, URL, and protocol version, and responses containing a status line and headers along with an optional body. Common methods include GET, POST, and HEAD. HTTP is stateless but can be made stateful through mechanisms like cookies.
Ce document vise à présenter la programmation fonctionnelle sous Scala.
Les points abordés sont le paradigme fonctionnel, fonction anonyme, fonction d’ordre supérieur, Clôture, fonction partielle, la récursivité, Curryfication. Chaque notion est accompagnée par des exemples.
This document provides a summary of Google advanced search operators that can be used to refine search queries. It lists operators for restricting searches by file type, domain, date range, definitions, phone numbers, reviews, stock prices, weather, cached pages, and related sites. It also describes operators for requiring terms to appear in specific fields like titles, URLs, or text. The sheet serves as a quick reference for examples of advanced operators that can help users find specific types of information on Google.
This document provides an overview of AJAX (Asynchronous JavaScript and XML) and web services. It defines AJAX as a group of interrelated technologies that allow asynchronous data retrieval without page reloads. The key aspects covered include the XMLHttpRequest object for asynchronous client-server communication, callback functions, properties and methods. It also introduces web services, describing how to create, publish, test and consume a web service, as well as using SOAP.
Ajax allows for asynchronous retrieval of data from a server in the background without reloading the page. It uses a combination of technologies like XMLHttpRequest, JavaScript, and DOM to make asynchronous calls to a server and update portions of a page without reloading. The document then provides an example of how an Ajax interaction works, from making an asynchronous request to a server to processing the response and updating the HTML DOM.
ASP.NET Web API is the de facto framework for building HTTP-based services in the .NET ecosystem. With its WCF and MVC lineage, Web API brings to the table better architecture, easier configuration, increased testability, and as always, it's customizable from top to bottom. But to properly use Web API it is not enough to get familiar with its architecture and API, you also need to really understand what HTTP is all about. HTTP is the most common application layer protocol in the world, and yet, not many web developers are familiar with HTTP concepts such as of chunking, caching, and persisted connections. In this full-day tutorial, we will focus on designing and implementing HTTP-based services with ASP.NET Web API, and you will learn how to better use it to implement the features provided by HTTP.
Quick introduction to APIs: what they are and why they are important. Talk given in February 2014 at Girl Geek Meetup.
http://camillebaldock.co.uk/introduction-to-apis/
Website: http://camillebaldock.co.uk
Twitter: @camille_
Third party libraries and OSGi - a complicated relationshipSascha Brinkmann
The provisioning of third-party libraries and frameworks within the Apache Felix OSGi implementation has always been a challenge. This occurs due to the case that not every library is available as an OSGi Bundle and not every library is ready to run within an OSGi environment. Especially big frameworks like Hibernate and Apache CXF, with their large number of depending libraries and the way how they work, makes it time consuming to make them OSGi compatible. This presentation addresses the main issues, especially the ones caused by class loading, and shows various approaches on how to resolve these.
The document discusses developing REST APIs with Python and Django Rest Framework (DRF). It explains the basics of REST, why it is used, and how to build a REST API with DRF including serializers, views, URLs, permissions, versioning, documentation, and testing. DRF allows building web APIs with Django that are highly configurable and have little boilerplate code. It also supports non-ORM data sources.
In this C# Web API tutorial, beginners will learn first what a web API in C# is and then what an ASP.NET web API is. Learn about the features of the asp.net web API in this C# tutorial. and we will become acquainted with all of the versions of the asp.net web API. This Simplileran tutorial explains the distinction between ASP.NET and WCF (Windows Communication Foundation). Following that, we will learn when to use ASP.NET and when to use WCF. Finally, for a better learning experience, we will see a practical demonstration of C# Web API in this C# programming tutorial.
Objectif général : Connaître les fondamentaux d’une API REST
Objectifs spécifiques :
Savoir définir une API
Connaître l’architecture REST
Connaître les contraintes du REST
Connaître la structure d’une requêtes HTTP
Connaître les caractéristiques d’une ressources
Se servir des méthodes HTTP
Connaître la structure d’une réponses HTTP
Connaître les codes HTTP
The document provides an introduction to web APIs and REST. It defines APIs as methods to access data and workflows from an application without using the application itself. It describes REST as an architectural style for APIs that uses a client-server model with stateless operations and a uniform interface. The document outlines best practices for REST APIs, including using HTTP verbs like GET, POST, PUT and DELETE to perform CRUD operations on resources identified by URIs. It also discusses authentication, authorization, security concerns and gives examples of popular REST APIs from Facebook, Twitter and other services.
OData presentation organized in ITC Hub Pancevo, Serbia, 10. Feb. 2018. https://www.meetup.com/Web-Development-Pancevo/events/247493392/. OData is enhancement of classic REST API concept that adds querying capabilities.
Web services tutorial slides from my session at DPC 2012 in Amsterdam. In this 3-hour session we built the simplest possible service, and then extended it, looking at RPC, REST and SOAP along the way.
This document discusses Python libraries and modules. It defines a library as a collection of modules that provide specific functionality. The standard library contains commonly used modules like math and random. Other important libraries mentioned are NumPy, SciPy, and tkinter. A module is a .py file that contains related variables, classes, functions etc. Modules can be imported using import, from, or from * statements. Namespaces and module aliasing are also covered. The document concludes by explaining how to create Python packages and the role of the __init__.py file in making a directory a package.
Au cœur de la transformation digitale, les APIs reprennent le rôle qui leur est dû : l’essence de l’innovation au sein des organisations. L’écueil aujourd’hui ? les incompréhensions entre les équipes, l’effet buzz-word et la perte de contrôle ou d’opportunités. Pour y faire face, une meilleure gestion des APIS s’impose !
Cette présentation vous permettra de mieux cerner les enjeux autour des APIs :
- Leur nouveau rôle dans le système d’information moderne,
- La gestion des APIs et des innovations,
- L’ouverture vers l’extérieur avec la monétisation des APIs.
Nous approfondirons le sujet grâce à la plateforme Cloud Azure de Microsoft.
The document discusses HTTP requests and responses. It explains that a request contains a start line with the method, URL and HTTP version, followed by headers providing additional information, and an optional message body. A response contains a status line with the protocol version and status code, followed by headers including caching information, and an optional message body. Content negotiation headers like Accept and Content-Type are used to select the appropriate representation format.
The document discusses demystifying APIs. It begins with an introduction to APIs, including their evolution and benefits. It then discusses RESTful APIs and their key aspects like uniform interface and use of HTTP methods. The document outlines best practices for API design, development, and challenges. It provides examples of designing APIs using Node.js and Hapi.js and discusses challenges like security, authentication, rate limiting, and scalability. Tools mentioned include Express, Swagger, Postman, and Kong.
Capstone Turbine develops, manufactures, and services microturbine technology for distributed power generation. As an authorized distributor, E-Finity supports customers in the mid-Atlantic and southeastern U.S. with factory-certified Capstone solutions. Capstone microturbines provide reliable electricity, hot water, and chilled water using a patented air bearing turbine in a simple modular design that is easy to operate and maintain.
HTTP is an application-level protocol for transmitting hypermedia documents across the internet. It uses a client-server model with requests containing a method, URL, and protocol version, and responses containing a status line and headers along with an optional body. Common methods include GET, POST, and HEAD. HTTP is stateless but can be made stateful through mechanisms like cookies.
Ce document vise à présenter la programmation fonctionnelle sous Scala.
Les points abordés sont le paradigme fonctionnel, fonction anonyme, fonction d’ordre supérieur, Clôture, fonction partielle, la récursivité, Curryfication. Chaque notion est accompagnée par des exemples.
This document provides a summary of Google advanced search operators that can be used to refine search queries. It lists operators for restricting searches by file type, domain, date range, definitions, phone numbers, reviews, stock prices, weather, cached pages, and related sites. It also describes operators for requiring terms to appear in specific fields like titles, URLs, or text. The sheet serves as a quick reference for examples of advanced operators that can help users find specific types of information on Google.
This document provides an overview of AJAX (Asynchronous JavaScript and XML) and web services. It defines AJAX as a group of interrelated technologies that allow asynchronous data retrieval without page reloads. The key aspects covered include the XMLHttpRequest object for asynchronous client-server communication, callback functions, properties and methods. It also introduces web services, describing how to create, publish, test and consume a web service, as well as using SOAP.
Ajax allows for asynchronous retrieval of data from a server in the background without reloading the page. It uses a combination of technologies like XMLHttpRequest, JavaScript, and DOM to make asynchronous calls to a server and update portions of a page without reloading. The document then provides an example of how an Ajax interaction works, from making an asynchronous request to a server to processing the response and updating the HTML DOM.
Ajax allows for asynchronous retrieval of data from a server in the background without reloading the page. It uses a combination of technologies like XMLHttpRequest, JavaScript, and DOM to make asynchronous calls to a server and update portions of a page without reloading. The document then provides an example of how an Ajax interaction works, from making an asynchronous request to a server to processing the response and updating the HTML DOM.
AJAX allows for asynchronous data retrieval and updating of parts of a web page without reloading the entire page. It uses a combination of technologies including XML, JavaScript, CSS, HTML and the XMLHttpRequest object. The XMLHttpRequest object makes asynchronous HTTP requests to the server in the background and retrieves data from the server. This allows updating parts of the web page without interrupting the user's operation.
The document provides an overview of AJAX (Asynchronous JavaScript and XML), including:
- AJAX allows web pages to be updated asynchronously by exchanging data with a server in the background without reloading the entire page.
- It uses a combination of XMLHttpRequest object, JavaScript, DOM, and often XML to retrieve data from the server and update parts of the page.
- The XMLHttpRequest object handles asynchronous requests in the background. Readystatechange events and response properties are used to update page elements with the server response.
- Common AJAX techniques like GET and POST requests, callbacks, and examples are explained.
The document discusses client-side web development technologies including Rich Internet Applications (RIAs) and AJAX. RIAs are web apps that have features of desktop apps, processing mainly on the client-side while keeping data on servers. AJAX allows asynchronous JavaScript requests to servers without page reloads, improving responsiveness. It uses the XMLHttpRequest object to transfer data from servers in the background.
AJAX is a new approach to web application development that uses asynchronous JavaScript and XML to transmit small amounts of data in the background without interfering with the display and behavior of the existing page. Some key aspects of AJAX include asynchronous data retrieval using XMLHttpRequest, data interchange formats like XML/JSON, dynamic display using the DOM, and JavaScript binding it all together for a more responsive user experience compared to traditional full page loads. Common AJAX design patterns address issues like predictive fetching of likely next data, throttling frequent submissions, periodic refreshing of data, and multi-stage downloading of pages and components.
The document discusses a lecture on AJAX and JSON. It provides an introduction to AJAX, where and how it can be used, and how to combine AJAX with JSON. It then reviews JavaScript objects and JSON, and demonstrates how to make AJAX requests with simple JavaScript. The document outlines the steps to create an XMLHttpRequest object and make asynchronous requests. It also discusses properties and methods of the XMLHttpRequest object like open(), send(), status, and readyState. Finally, it provides examples of using AJAX to fetch JSON data and display it on a page.
Servlets are Java programs that run on a web server and generate dynamic web page content. Servlets receive HTTP requests and return HTTP responses. They provide an interface between web clients and web servers. Key points:
- Servlets run on web servers like Tomcat and handle HTTP requests/responses dynamically.
- They extend the HttpServlet class and implement doGet() and/or doPost() methods to process requests.
- Servlets can access request parameters, headers, cookies and generate HTML responses by setting headers and writing to the response.
- Servlets are configured in the web server and mapped to URLs to handle requests for those URLs dynamically.
This document provides an overview of AJAX (Asynchronous JavaScript and XML), including:
- AJAX allows for asynchronous data retrieval, improving interactivity and speed of web applications.
- It uses a combination of XML, HTML, CSS, JavaScript, and the XMLHttpRequest object.
- The XMLHttpRequest object handles asynchronous requests in the background without interfering with the display and behavior of the existing page.
- Key aspects of AJAX include DOM manipulation with JavaScript, asynchronous data retrieval, and updating parts of a web page without reloading the entire page.
Ajax allows asynchronous communication between a browser and server to update parts of a web page without reloading the entire page. It uses a combination of technologies including JavaScript, HTML, CSS, XML, and HTTP. The XMLHttpRequest object is used to asynchronously send and receive data from a web server in the background without interfering with the display and behavior of the existing page. This allows for faster and more interactive web applications.
This document provides an overview of AJAX (Asynchronous JavaScript and XML), including its history, how it works, examples of request and response phases, and advantages and disadvantages. AJAX allows for asynchronous updating of parts of a web page without reloading the entire page. It uses technologies like JavaScript, XML, DOM, and CSS to speed up interactions and provide a more responsive user experience similar to desktop applications.
AJAX is an acronym standing for Asynchronous JavaScript and XML and this technology helps us to load data from the server without a browser page refresh.
If you are new with AJAX, I would recommend you go through our Ajax Tutorial before proceeding further.
JQuery is a great tool which provides a rich set of AJAX methods to develop next generation web application.
The document discusses Ajax and how it allows asynchronous communication with a server without reloading the entire web page. It covers the basic objects and methods needed, including the XMLHttpRequest object. The typical Ajax process involves creating an XMLHttpRequest object, sending it to the server, and triggering a response function when the server responds to update the display without reloading the page.
1. AJAX uses a group of technologies including HTML, CSS, DOM, JavaScript, and XMLHttpRequest to asynchronously exchange data with a web server in the background without interfering with the display and behavior of the existing page.
2. The document discusses how AJAX works and the XMLHttpRequest object used to asynchronously exchange data with a web server. It provides examples of using AJAX for real-time validation and to retrieve up-to-date stock information from a database without reloading the page.
3. The key steps in an AJAX application are to create an XMLHttpRequest object, assign an onreadystatechange handler, open a request to the server, and send the request. The response is then
The document discusses Ajax, including:
1) What Ajax is and how it allows web pages to update parts without reloading the whole page by exchanging small amounts of data with the server asynchronously.
2) The basic Ajax process involves using JavaScript to define a request object, initiate a request by setting a response handler and sending GET or POST data, and handling the response when ready by extracting the returned text or XML.
3) Examples of applications using Ajax include Google Maps, Gmail, YouTube, and Facebook tabs.
The document discusses AJAX and jQuery's AJAX methods. It defines AJAX as Asynchronous JavaScript and XML, which allows for asynchronous requests to a server without interrupting other browser tasks. It describes why AJAX is used to improve user experience by allowing asynchronous partial page updates. It then summarizes jQuery's main AJAX methods like $.ajax(), $.get(), $.post(), $.load(), and their parameters. It also discusses AJAX events in jQuery like ajaxComplete() and how data can be passed to the server.
This document provides an introduction and overview of AJAX (Asynchronous JavaScript and XML), including what it is, how it works, advantages and disadvantages, methods for implementation, and examples of frameworks and applications that use AJAX techniques.
AJAX allows web pages to be updated asynchronously by exchanging data with a web server in the background without reloading the entire page. It uses the XMLHttpRequest object to make requests and JavaScript and DOM to display or use the returned data. The XMLHttpRequest object can be used to request data from a web server and update parts of a web page without reloading. It has methods like open(), send(), setRequestHeader(), and properties like onreadystatechange that define functions to execute when the ready state changes.
This document provides an introduction and overview of PHP. It discusses that PHP is a server-side scripting language used for web development that can be embedded into HTML. It then covers PHP syntax including using <?php ?> tags, variables, data types, operators, conditional statements, loops, functions, and regular expressions. The document also provides examples of common PHP functions for arrays, calendars, dates, math, mail, MySQLi, strings, and errors.
XML was designed to store and transport data in a human- and machine-readable format. It uses markup tags to describe and structure data. XML has several advantages over HTML, including being able to carry arbitrary data rather than just displaying it, and having customizable tags rather than predefined tags. XML documents form a tree structure with elements nested within each other. XML includes syntax rules for tags, elements, attributes, and comments. Namespaces help avoid conflicts between element names. Documents can be validated using DTDs or XML Schemas, which define the structure and legal elements. XML Schemas provide more power and capabilities than DTDs.
This document discusses Java Database Connectivity (JDBC) and provides details on connecting to a database from a Java application. There are 4 types of JDBC drivers that enable connection. Connecting involves 5 steps - registering the driver class, creating a connection, creating a statement, executing queries, and closing the connection. Examples are provided for connecting to MySQL and MS Access databases.
This document provides an overview of Java servlets. It defines servlets as Java programs that extend the capabilities of servers and respond to web requests. It compares servlets to CGI scripts, noting that servlets have better performance since they use threads instead of processes to handle requests. The document outlines the servlet lifecycle and architecture, how to create a servlet class, and key interfaces in the servlet API like Servlet, GenericServlet, and HttpServlet.
This document provides an overview of Java Server Pages (JSP) technology. It discusses how JSP pages combine HTML/XML markup with Java code to create dynamic web content. Key points include:
- JSP pages are converted into Java servlets by the JSP container/engine to generate HTML responses. This allows accessing Java APIs and databases.
- Common JSP elements like scriptlets, expressions, declarations, comments, and directives allow embedding Java code in JSP pages.
- The JSP lifecycle mirrors the servlet lifecycle with phases like initialization, execution, and destruction.
- Standard Tag Libraries (JSTL) provide commonly used tags to simplify tasks like iteration, conditionals,
This document provides an overview of JSON (JavaScript Object Notation) including its syntax, values, objects, arrays, and uses for exchanging and storing data. JSON is a lightweight data format that is easy for humans to read and write and easy for machines to parse and generate. The document also discusses using JSON with XMLHttpRequest to make HTTP requests to a web server and retrieve JSON data to display on a web page without reloading.
The document provides information about JavaScript and the Document Object Model (DOM). It discusses how JavaScript can dynamically access and update HTML elements using the DOM. It explains that all HTML elements are defined as objects in the DOM that can be accessed and manipulated using JavaScript properties and methods. The document provides examples of how to select elements, modify attributes and styles, add and remove elements, and handle events. It also covers common JavaScript objects like Date, Math, and built-in constructors.
1) The document describes a teaching practice called a "Minute Paper" used in a class on data structures in C. In this practice, students wrote short responses at the end of class answering questions about what they learned, remaining questions, and a one sentence summary.
2) The responses showed that students had 94-100% understanding of strings and string functions but only 65-86% on other topics.
3) Based on the feedback, the instructor was able to identify areas needing more explanation and examples to improve student understanding for the next class.
The document discusses decision support systems (DSS), including their architecture, characteristics, capabilities, classification, and the steps in designing a DSS. It describes the key components of a DSS architecture as including data management, user interface, model management, and knowledge management. It also classifies DSS as data-driven, model-driven, knowledge-driven, document-driven, communication-driven, and inter/intra-organizational. The design process involves planning, analysis, design, and implementation phases.
Introduction- e - waste – definition - sources of e-waste– hazardous substances in e-waste - effects of e-waste on environment and human health- need for e-waste management– e-waste handling rules - waste minimization techniques for managing e-waste – recycling of e-waste - disposal treatment methods of e- waste – mechanism of extraction of precious metal from leaching solution-global Scenario of E-waste – E-waste in India- case studies.
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsVictor Morales
K8sGPT is a tool that analyzes and diagnoses Kubernetes clusters. This presentation was used to share the requirements and dependencies to deploy K8sGPT in a local environment.
Embedded machine learning-based road conditions and driving behavior monitoringIJECEIAES
Car accident rates have increased in recent years, resulting in losses in human lives, properties, and other financial costs. An embedded machine learning-based system is developed to address this critical issue. The system can monitor road conditions, detect driving patterns, and identify aggressive driving behaviors. The system is based on neural networks trained on a comprehensive dataset of driving events, driving styles, and road conditions. The system effectively detects potential risks and helps mitigate the frequency and impact of accidents. The primary goal is to ensure the safety of drivers and vehicles. Collecting data involved gathering information on three key road events: normal street and normal drive, speed bumps, circular yellow speed bumps, and three aggressive driving actions: sudden start, sudden stop, and sudden entry. The gathered data is processed and analyzed using a machine learning system designed for limited power and memory devices. The developed system resulted in 91.9% accuracy, 93.6% precision, and 92% recall. The achieved inference time on an Arduino Nano 33 BLE Sense with a 32-bit CPU running at 64 MHz is 34 ms and requires 2.6 kB peak RAM and 139.9 kB program flash memory, making it suitable for resource-constrained embedded systems.
Understanding Inductive Bias in Machine LearningSUTEJAS
This presentation explores the concept of inductive bias in machine learning. It explains how algorithms come with built-in assumptions and preferences that guide the learning process. You'll learn about the different types of inductive bias and how they can impact the performance and generalizability of machine learning models.
The presentation also covers the positive and negative aspects of inductive bias, along with strategies for mitigating potential drawbacks. We'll explore examples of how bias manifests in algorithms like neural networks and decision trees.
By understanding inductive bias, you can gain valuable insights into how machine learning models work and make informed decisions when building and deploying them.
International Conference on NLP, Artificial Intelligence, Machine Learning an...gerogepatton
International Conference on NLP, Artificial Intelligence, Machine Learning and Applications (NLAIM 2024) offers a premier global platform for exchanging insights and findings in the theory, methodology, and applications of NLP, Artificial Intelligence, Machine Learning, and their applications. The conference seeks substantial contributions across all key domains of NLP, Artificial Intelligence, Machine Learning, and their practical applications, aiming to foster both theoretical advancements and real-world implementations. With a focus on facilitating collaboration between researchers and practitioners from academia and industry, the conference serves as a nexus for sharing the latest developments in the field.
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Sinan KOZAK
Sinan from the Delivery Hero mobile infrastructure engineering team shares a deep dive into performance acceleration with Gradle build cache optimizations. Sinan shares their journey into solving complex build-cache problems that affect Gradle builds. By understanding the challenges and solutions found in our journey, we aim to demonstrate the possibilities for faster builds. The case study reveals how overlapping outputs and cache misconfigurations led to significant increases in build times, especially as the project scaled up with numerous modules using Paparazzi tests. The journey from diagnosing to defeating cache issues offers invaluable lessons on maintaining cache integrity without sacrificing functionality.
1. AJAX & Web Services
Prepared By
Yogaraja C A
Ramco Institute of Technology
2. Introduction
AJAX is an acronym for Asynchronous
JavaScript and XML.
It is a group of inter-related technologies like
javascript, dom, xml, html, css etc.
AJAX is not a programming language.
AJAX just uses a combination of:
A browser built-in XMLHttpRequest object
(to request data from a web server)
JavaScript and HTML DOM (to display or use
the data)
3. Introduction
AJAX applications might use XML to transport
data, but it is equally common to transport
data as plain text or JSON text.
AJAX allows web pages to be updated
asynchronously by exchanging data with a web
server behind the scenes.
This means that it is possible to update parts of
a web page, without reloading the whole page.
5. Architecture
1. User sends a request from the UI and a
javascript call goes to XMLHttpRequest object.
2. HTTP Request is sent to the server by
XMLHttpRequest object.
3. Server interacts with the database using JSP,
PHP, Servlet, ASP.net etc.
4. Data is retrieved.
5. Server sends XML data or JSON data to the
XMLHttpRequest callback function.
6. HTML and CSS data is displayed on the
browser.
6. AJAX - The XMLHttpRequest Object
All modern browsers support the
XMLHttpRequest object.
The XMLHttpRequest object can be used to
exchange data with a server behind the
scenes. This means that it is possible to
update parts of a web page, without reloading
the whole page.
7. XMLHttpRequest Object Methods
Method Description
new XMLHttpRequest() Creates a new XMLHttpRequest object
abort() Cancels the current request
getAllResponseHeaders() Returns header information
getResponseHeader() Returns specific header information
open(method,url,async,user,psw) Specifies the request
method: the request type GET or POST
url: the file location
async: true (asynchronous) or false (synchronous)
user: optional user name
psw: optional password
send() Sends the request to the server
Used for GET requests
send(string) Sends the request to the server.
Used for POST requests
setRequestHeader() Adds a label/value pair to the header to be sent
8. XMLHttpRequest Object Properties
Property Description
onreadystatechange Defines a function to be called when the readyState property
changes
readyState Holds the status of the XMLHttpRequest.
0: request not initialized
1: server connection established
2: request received
3: processing request
4: request finished and response is ready
responseText Returns the response data as a string
responseXML Returns the response data as XML data
status Returns the status-number of a request
200: "OK"
403: "Forbidden"
404: "Not Found"
statusText Returns the status-text (e.g. "OK" or "Not Found")
9. Create an XMLHttpRequest Object
variable = new XMLHttpRequest();
var xhttp = new XMLHttpRequest();
10. Send a Request To a Server
To send a request to a server, we use the
open() and send() methods of the
XMLHttpRequest object:
xhttp.open("GET", "ajax_info.txt", true);
xhttp.send();
Asynchronous - True or False?
Server requests should be sent asynchronously.
The async parameter of the open() method should be set to true:
11. Server Response
The onreadystatechange Property
The readyState property holds the status of
the XMLHttpRequest.
The onreadystatechange property defines a
function to be executed when the readyState
changes.
The status property and the statusText
property holds the status of the
XMLHttpRequest object.
12. Server Response
function loadDoc() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("demo").innerHTML =
this.responseText;
}
};
xhttp.open("GET", "ajax_info.txt", true);
xhttp.send();
}
13. Server Response Properties & Methods
Property Description
responseText get the response data as a string
responseXML get the response data as XML data
Method Description
getResponseHeader() Returns specific header information from the server resource
getAllResponseHeaders() Returns all the header information from the server resource
14. Using a Callback Function
A callback function is a function passed as a parameter to
another function.
If you have more than one AJAX task in a website, you
should create one function for executing the
XMLHttpRequest object, and one callback function for
each AJAX task.
The function call should contain the URL and what
function to call when the response is ready.
15. Using a Callback Function
loadDoc("url-1", myFunction1);
loadDoc("url-2", myFunction2);
function loadDoc(url, cFunction) {
var xhttp;
xhttp=new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
cFunction(this);
}
};
xhttp.open("GET", url, true);
xhttp.send();
}
function myFunction1(xhttp) {
// action goes here
}
function myFunction2(xhttp) {
// action goes here
}
17. AJAX XML
function loadDoc() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
myFunction(this);
}
};
xhttp.open("GET", "cd_catalog.xml", true);
xhttp.send();
}
18. AJAX XML
function myFunction(xml) {
var i;
var xmlDoc = xml.responseXML;
var table="<tr><th>Title</th><th>Artist</th></tr>";
var x = xmlDoc.getElementsByTagName("CD");
for (i = 0; i <x.length; i++) {
table += "<tr><td>" +
x[i].getElementsByTagName("TITLE")[0].childNodes[0].nodeVa
lue +
"</td><td>" +
x[i].getElementsByTagName("ARTIST")[0].childNodes[0].nodeV
alue +
"</td></tr>";
}
document.getElementById("demo").innerHTML = table;
}
25. WEB SERVICES
Web service is a standardized medium to propagate
communication between the client and server
applications on the World Wide Web.
A web service is a software module which is designed to
perform a certain set of tasks.
The web services can be searched for over the network
and can also be invoked accordingly.
When invoked, the web service would be able to provide
functionality to the client which invokes that web
service.
26. WEB SERVICES
Web services are application components
Web services communicate using open protocols
Web services are self-contained and self-describing
Web services can be discovered using UDDI
Web services can be used by other applications
HTTP and XML is the basis for Web services
27. WEB SERVICES
These requests are made through what is known as remote procedure calls.
Remote Procedure Calls(RPC) are calls made to methods which are hosted
by the relevant web service.
28. Advantages of Web Services
Exposing Business Functionality on the network - A web
service is a unit of managed code that provides some sort of
functionality to client applications or end users.
Interoperability amongst applications - Web services allow
various applications to talk to each other and share data and
services among themselves.
A Standardized Protocol which everybody understands - Web
services use standardized industry protocol for the
communication.
Reduction in cost of communication - Web services use SOAP
over HTTP protocol, so you can use your existing low-cost
internet for implementing web services.
29. Examples of Web services
Apache Axis
Apache Axis2
Glassfish
Semantic web service
Apache CXF
SoapUI
LoadUI
Fuse Services Framework
Hessian
30. Type of Web Service
SOAP web services.
RESTful web services.
In order for a web service to be fully functional, there are
certain components that need to be in place.
These components need to be present irrespective of
whatever development language is used for programming
the web service.
31. Components of Web Service
SOAP (Simple Object Access Protocol)
WSDL (Web services description language)
UDDI (Universal Description, Discovery, and Integration)
32. SOAP
SOAP is known as a transport-independent messaging
protocol.
SOAP is based on transferring XML data as SOAP
Messages.
Only the structure of the XML document follows a
specific pattern, but not the content.
The best part of Web services and SOAP is that its all
sent via HTTP, which is the standard web protocol.
35. SOAP
Each SOAP document needs to have a root element known as
the <Envelope> element. The root element is the first
element in an XML document.
The "envelope" is in turn divided into 2 parts. The first is the
header, and the next is the body.
The header contains the routing data which is basically the
information which tells the XML document to which client it
needs to be sent to.
The body element is the main element which contains the
definition of the web methods along with any parameter
information if required.
The body will contain the actual message.
36. WSDL
A web service cannot be used if it cannot be found.
The client invoking the web service should know where
the web service actually resides.
The WSDL file is again an XML-based file which basically
tells the client application what the web service does.
By using the WSDL document, the client application
would be able to understand where the web service is
located and how it can be utilized.
38. WSDL
<types> - tag is used to define all the complex datatypes,
which will be used in the message exchanged between the
client application and the web service.
<message> - The message parameter in the WSDL definition
is used to define the different data elements for each
operation performed by the web service.
<portType> - This actually describes the operation which can
be performed by the web service.
This operation can take 2 messages; one is an input message,
and the other is the output message.
<binding> - This element contains the protocol which is used.
<service> - tag is a name given to the web service itself.
39. WSDL
Element Description
<types> Defines the (XML Schema) data types used by the web
service
<message> Defines the data elements for each operation
<portType> Describes the operations that can be performed and the
messages involved.
<binding> Defines the protocol and data format for each port type
42. UDDI
UDDI is a standard for describing, publishing, and discovering the
web services that are provided by a particular service provider.
It provides a specification which helps in hosting the information
on web services.
how can a client application locate a WSDL file to understand the
various operations offered by a web service?
So UDDI is the answer to this and provides a repository on which
WSDL files can be hosted.
So the client application will have complete access to the UDDI,
which acts as a database containing all the WSDL files.
44. Web service Architecture
Provider - The provider creates the web service and makes it
available to client application who want to use it.
Requestor - A requestor is nothing but the client application that
needs to contact a web service. The client application can be a
.Net, Java, or any other language based application which looks
for some sort of functionality via a web service.
Broker - The broker is nothing but the application which provides
access to the UDDI. The UDDI, as discussed in the earlier topic
enables the client application to locate the web service.
45. Web service Architecture
Publish - A provider informs the broker (service registry) about
the existence of the web service by using the broker's publish
interface to make the service accessible to clients.
Find - The requestor consults the broker to locate a published
web service
Bind - With the information it gained from the broker(service
registry) about the web service, the requestor is able to bind, or
invoke, the web service.
46. Web service Characteristics
They are XML-Based
Loosely Coupled
Synchronous or Asynchronous functionality
Ability to support Remote Procedure Calls (RPCs)
Supports Document Exchange
47. RESTFUL Web service
REST stands for REpresentational State Transfer. REST is used to
build web services that are lightweight, maintainable, and
scalable in nature.
More and more applications are moving to the Restful
architecture. This is because there are a lot of people now using
mobile devices and a wider variety of applications moving to the
cloud.
The main aspects of REST are the resources which reside on the
server and the verbs of GET, POST, PUT and DELETE, which can be
used to work with these resources.
48. RESTFUL Web service
Visual Studio and.Net can be used to create Restful web services.
When Testing web services for POST and PUT, you need to use
another tool called fiddler which can be used to send the POST
and PUT request to the server.
49. SOAP vs REST
SOAP REST
SOAP is a protocol. REST is an Architectural style in which a web service can
only be treated as a RESTful service
SOAP cannot make use of REST since SOAP is a protocol
and REST is an architectural pattern.
REST can make use of SOAP as the underlying protocol
for web services, because in the end it is just an
architectural pattern.
SOAP requires more bandwidth for its usage. REST does not need much bandwidth when requests are
sent to the server.
SOAP can only work with XML format. As seen from SOAP
messages, all data passed is in XML format.
REST permits different data format such as Plain text,
HTML, XML, JSON, etc. But the most preferred format
for transferring data is JSON.
When to use SOAP
• Asynchronous processing and subsequent invocation
• A Formal means of communication
• Stateful operations
When to use REST
• Limited resources and bandwidth
• Statelessness
• Caching
• Ease of coding
Challenges
• WSDL file
• Document size
Challenges
• Lack of Security
• Lack of state
50. creating web service that acts as service provider
File -> New Project -> Web Application
In that web application, create new web service by right click the project New Web Service.
New web service is added into the project.
In that New web service right click select add operation.
Set name of the operation and return type of the operation
Add essential parameters for that operation and exceptions.
Click ok
51. creating web service that acts as service provider
File -> New Project -> Web Application
In that web application, create new web service by right click the project New Web Service.
New web service is added into the project.
In that New web service right click select add operation.
Set name of the operation and return type of the operation
Add essential parameters for that operation and exceptions.
Click ok
Modifying the operation code, deploy the web application and test webservice
http://localhost:8080/WebApplication3/NewWebService?WSDL
52. creating web service that acts as service provider
Web Service
package pack;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
@WebService(serviceName = "AddService")
public class AddService {
@WebMethod(operationName = "add")
public int add(@WebParam(name = "a") int a, @WebParam(name = "b") int b) {
return a+b;
}
}
53. Consumer or requestor that gets web service
File -> New Project -> Web Application
In that application right click New Web ServiceClient
Choose webservice and click finish that automatically includes Generated Source( jas_ws) and Web
Service References
Creating new jsp file that includes web service by dragging webservice method ‘add’ from web
service reference and test it.
54. Consumer or requestor that gets web service
New.jsp
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>Hello World!</h1> <%-- start web service invocation --%><hr/>
<b> Addition </b>
55. Consumer or requestor that gets web service
<%
try {
// creating service object
pack.Arith_Service service = new pack.Arith_Service();
// creating class object
pack.Arith port = service.getArithPort();
int num1 = 23;
int num2 = 28;
// invoking service method addition
int result = port.add(num1, num2);
out.println("Result (a+b) = "+result);
} catch (Exception ex) {
// TODO handle custom exceptions here
} %> </body></html>