https://www.halvorsen.blog Web Services Hans-Petter Halvorsen

Similar documents
Software Architecture

University College of Southeast Norway. Web Services. with Examples. Hans-Petter Halvorsen,

Software Architecture

Using SQL Server in C#

Software Implementation

University College of Southeast Norway ASP.NET. Web Programming. Hans-Petter Halvorsen,

Vb Net Tutorial For Beginners Visual Studio 2010 Create Web Service

Software Platforms. Quiz with Explainations. Hans-Petter Halvorsen, M.Sc.

COURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010

Programming. Languages & Frameworks. Hans-Petter Halvorsen, M.Sc. O. Widder. (2013). geek&poke. Available:

Web Programming HTML CSS JavaScript Step by step Exercises Hans-Petter Halvorsen

Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning

Introduction to Web Development with Microsoft Visual Studio 2010 (10267A)

Visual Studio Team Services

Introduction to Web Development with Microsoft Visual Studio 2010

Unit Testing. Quiz with Explainations. Hans-Petter Halvorsen, M.Sc.

Database Communication in Visual Studio/C# using Web Services

10267 Introduction to Web Development with Microsoft Visual Studio 2010

Asp Net Web Service Project Template Visual Studio 2010

Industrial IT Laboratory Work Hans-Petter Halvorsen

Introduction to RESTful Web Services. Presented by Steve Ives

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

Introduction to Web Development with Microsoft Visual Studio 2010

DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1

Create Installation Packages in Visual Studio

DE Introduction to Web Development with Microsoft Visual Studio 2010

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio

describe the functions of Windows Communication Foundation describe the features of the Windows Workflow Foundation solution

SERVICE-ORIENTED COMPUTING

Developing Web Applications Using Microsoft Visual Studio 2008 SP1

Cleveland State University Department of Electrical and Computer Engineering. CIS 408: Internet Computing

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010

We are ready to serve Latest Testing Trends, Are you ready to learn? New Batch Details

Copyright 2014 Blue Net Corporation. All rights reserved

Manual Visual Studio 2010 Web Developer Tools 2012 Professional

CNIT 129S: Securing Web Applications. Ch 3: Web Application Technologies

Team Foundation Server Visual Studio Team Services. Hans-Petter Halvorsen, M.Sc.

Oracle Service Cloud Integration for Developers Ed 1

Etanova Enterprise Solutions

Create a Virtual Test Environment

02267: Software Development of Web Services

20486-Developing ASP.NET MVC 4 Web Applications

COURSE 20487B: DEVELOPING WINDOWS AZURE AND WEB SERVICES

Oracle Service Cloud Integration for Develope

Advanced Programming Using Visual Basic 2008

Distributed Systems. Web Services (WS) and Service Oriented Architectures (SOA) László Böszörményi Distributed Systems Web Services - 1

Develop Mobile Front Ends Using Mobile Application Framework A - 2

ReST 2000 Roy Fielding W3C

This tutorial is designed for software programmers who would like to learn the basics of ASP.NET Core from scratch.

Modbus Hans-Petter Halvorsen

Developing Windows Azure and Web Services

(p t y) lt d. 1995/04149/07. Course List 2018

3-tier Architecture Step by step Exercises Hans-Petter Halvorsen

JAVASCRIPT JQUERY AJAX FILE UPLOAD STACK OVERFLOW

[MS20487]: Developing Windows Azure and Web Services

Oracle Service Cloud Integration for Developers Ed 1

Review. Fundamentals of Website Development. Web Extensions Server side & Where is your JOB? The Department of Computer Science 11/30/2015

Hands On, Instructor-Led IT Courses Across Colorado

SOLVING PROBLEMS ON THE TEACHING METHODS OF LINEAR ALGEBRA THROUGH TECHNOLOGY PLATFORM DOT.NET

ASP.NET Using C# (VS2017)

Services Interoperability With Java Technology and.net: Technologies for Web 2.0

Evaluation Guide for ASP.NET Web CMS and Experience Platforms

Introduction to ERwin

XML Web Service? A programmable component Provides a particular function for an application Can be published, located, and invoked across the Web

Team Assignment. Final Software Delivery. IA4412 Software Engineering

Modern App Architecture

TABLE OF CONTENTS 1. INTRODUCTION DEFINITIONS Error! Bookmark not defined REASON FOR ISSUE 2 3. RELATED DOCUMENTS 2 4.

REST Web Services Objektumorientált szoftvertervezés Object-oriented software design

MS-20487: Developing Windows Azure and Web Services

Services Web Nabil Abdennadher

Competence levels: Expert, Very experienced, Experienced, Good knowledge, Some knowledge.

Goals Give you an overview of development with ArcGIS Server Give you a roadmap to other sessions Cover the breadth of the software Not a deep dive se

XML Processing & Web Services. Husni Husni.trunojoyo.ac.id

Who Should Read This Book?

COMMUNICATION PROTOCOLS

DATABASE SYSTEMS. Database programming in a web environment. Database System Course, 2016

All About Open & Sharing

Introduction to Web Services & SOA

TECHNICAL NOTE HOW TO USE WEB SERVICES. Document: Kalipso_TechDocs_Web_Services. Revision: 1.0. Kalipso version:

Week Assignment Source Code Control (SCC) & Bug Tracking Systems Hans-Petter Halvorsen

Sistemi ICT per il Business Networking

The course also includes an overview of some of the most popular frameworks that you will most likely encounter in your real work environments.

STANDARD REST API FOR

WebEOC SOAP API WebEOC SOAP API May 8,

Introduction to the Cisco ANM Web Services API

Vb Net Tutorial For Beginners Visual Studio 2010 Express Windows Service Template

Web-Based Systems. INF 5040 autumn lecturer: Roman Vitenberg

Distribution and web services

COMET, HTML5 WEBSOCKETS OVERVIEW OF WEB BASED SERVER PUSH TECHNOLOGIES. Comet HTML5 WebSockets. Peter R. Egli INDIGOO.COM. indigoo.com. 1/18 Rev. 2.

COURSE 20486B: DEVELOPING ASP.NET MVC 4 WEB APPLICATIONS

20486: Developing ASP.NET MVC 4 Web Applications (5 Days)

Lesson 15 SOA with REST (Part II)


Java Web Service Essentials (TT7300) Day(s): 3. Course Code: GK4232. Overview

Technology Feasibility October 22, 2013

DOWNLOAD OR READ : XML AND ASP NET PDF EBOOK EPUB MOBI

Order Central Requirements 08/04/2009

Developing ASP.NET MVC 4 Web Applications

Planning and Designing Your Site p. 109 Design Concepts p. 116 Summary p. 118 Defining Your Site p. 119 The Files Panel p. 119 Accessing Your Remote

Course ID: 2310C Course Name: Developing Web Applications Using Microsoft Visual Studio 2008

Transcription:

https://www.halvorsen.blog Web Services Hans-Petter Halvorsen

Problem How to Share Data between Devices in a Network? Server(s) Firewalls Security Clients Local Network/Internet Database Routers/Switches, etc.

Problem How to Share Data between Devices in a Network? Database Clients Direct Connection between the Database and the Clients that need the Data is normally not possible, due to security, compatibility issues, etc. (Firewalls, Hacker Attacks, etc.) Direct Connection in a Local Network (behind the Firewall) is normally OK but not over the Internet

Solution: Web Service Web Service Internet HTTP Clients Database Web Services uses standard web protocols like HTTP, etc. HTTP is supported by all Web Browser, Servers and many Programming Languages

Client Client Client Data Data Data Web Services: A Standard way to get data over a network/internet Using standard Web protocols Server Network/Internet Data Web Service Web Server Web Services Data Database Normally you don't have direct access to a Database over a network, and especially not over Internet

Web Services A Web service is a method of communications between two devices over the World Wide Web. Web API Standard defined by W3C Cross-platform Web Services can be implemented and used in most Programming Languages (C#/ASP.NET, PHP, LabVIEW, Objective-C, Java,...) Uses standard Web technology (Web protocols) HTTP, REST, SOAP, XML, WSDL, JSON,...

Why Web Service? Today Web Services have been very popular Easy Data sharing over Internet Platform-independent Communication Makes it possible of integration of different systems and platforms Distributed Application Development Web Service Internet HTTP Clients

Web Services Web Services 1.0: Uses SOAP Compex Web Services 2.0: Uses REST Less Complex than using SOAP Lightweight and Flexible The preferred model today Web Service Internet HTTP Clients

3-tier+WebService Architecture - Example Installed on one or more Windows Servers in your LAN or in the Cloud Web Server Web Services Business Logic Data Source Stored Procedures Data Layer Team Foundation Server Presentation Logic

https://www.halvorsen.blog Web Services Details Hans-Petter Halvorsen

Web Services Web Services 1.0 SOAP Web Services Using the SOAP protocol (Simple Object Access Protocol) XML (Extensible Markup Language) Visual Studio: ASP.NET ASMX Web Service Web Services 2.0 RESTful Web Services Using the REST protocol (Representational State Transfer) Uses standard HTTP methods (GET, PUT, POST, DELETE) (HTTP: Hypertext Transfer Protocol) Uses JSON (JavaScript Object Notation) or XML Visual Studio: ASP.NET Web API

SOA Service Oriented Architecture Distributed Application Development Typical example: Web Services Wikipedia. (2013). SOA. Available: http://en.wikipedia.org/wiki/service-oriented_architecture

Web Services A method of communication between two applications or electronic devices over the World Wide Web (WWW) Web Service is an API Makes it possible of integration of different systems and platforms Distributed Application Development Web services are web application components. Data is transmitted over a standardized interface (such as HTTP) Web services can be published, found, and used on the Web. SOAP Web Services (SOAP - Simple Object Access Protocol) REST Web Services (REST - Representational State Transfer) A new and simpler version of WS All major WS on the Internet today use REST?

Web Service Web Service Internet HTTP Client HTTP - Hypertext Transfer Protocol. The protocol used throughout the Internet for transactions between Web servers and clients. It is simple, tested, and supported by libraries in every modern programming language. HTTP includes methods supporting all of the necessary actions for a server/client transaction

SOAP Web Services WSDL (API Description) SOAP (Messaging) XML (Data) HTTP (Transport) WSDL - Web Services Description Language SOAP - Simple Object Access Protocol XML Extensible Markup Language HTTP - Hypertext Transfer Protocol

RESTful Web Services WADL (API Description) Completely optional and rarely used REST (Messaging) JSON/XML (Data) HTTP (Transport) WADL Web Application Description Language REST - Representational State Transfer XML Extensible Markup Language JSON - JavaScript Object Notation HTTP - Hypertext Transfer Protocol

SOAP vs. REST SOAP: A service architecture XML based Runs on HTTP but envelopes the message Slower than REST Very mature, a lot of functionality Not suitable for browser-based clients More complicated WSDL (API Description) SOAP (Messaging) XML (Data) HTTP (Transport) WADL (API Description) REST (Messaging) XML/JSON(Data) HTTP (Transport) REST: A service architecture Uses the HTTP headers to hold meta information Can be used with XML, JSON or whatever necessary Usually used with JSON due to the easily parsable content Faster than SOAP

https://www.halvorsen.blog Web Services Some Basic Examples Hans-Petter Halvorsen

Creating Web Service in LabVIEW

Web Service Client in LabVIEW Web Service Example: http://www.w3schools.com/webservices/tempconvert.asmx

Web Service Client in LabVIEW

https://www.halvorsen.blog Web Services in Visual Studio Examples Hans-Petter Halvorsen

GetData() API (Methods used by your Applications) Web Service SOAP WS ASP.NET ADO.NET Stored Procedures SQL SaveData() REST WS SQL Server...()

Web Services using Visual Studio 3 ways to do it: 1. ASMX Web Service (Traditional Web Wervice using SOAP) 2. WCF Service A general approach used to create all kind of communication including web services, both SOAP and REST 3. ASP.NET Web API (The modern Web Service using REST, Web 2.0)

ASMX Web Service in Visual Studio Create Empty ASP.NET Project Add Web Service(asmx) to your project

Test the built-in HelloWorld() method F5

ASP.NET Web API Web API = Web Sevice, Web 2.0 Application Programming Interface that can be accessed via HTTP requests ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful services on the.net Framework. http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api

ASP.NET Web API in Visual Studio You can also create a Web API project using the "Web API" template. The Web API template uses ASP.NET MVC to provide API help pages. I'm using the Empty template for this tutorial because I want to show Web API without MVC. In general, you don't need to know ASP.NET MVC to use Web API.

ASP.NET Web API Example Step by Step http://www.asp.net/web-api/overview/getting-started-with-aspnetweb-api/tutorial-your-first-web-api

References SOAP vs. REST Challenges: http://www.soapui.org/the-world- Of-API-Testing/soap-vs-rest-challenges.html Web Service: http://en.wikipedia.org/wiki/web_service

Hans-Petter Halvorsen University of Southeast Norway www.usn.no E-mail: hans.p.halvorsen@usn.no Web: https://www.halvorsen.blog