© Chinese University, CSE Dept. Distributed Systems / 9 - 1 Simple Example Open Microsoft Visual Studio 2005:

Slides:



Advertisements
Similar presentations
Win8 on Intel Programming Course Desktop : Sensors Cédric Andreolli Intel Software
Advertisements

11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
Creating web service (and client application) with Visual Studio 2008 Create web service project New project->web->ASP.NET web service application (with.
INTRODUCTION TO WEB SERVICES CS 795. What is a Web Service ? Web service is a means by which computers talk to each other over the web using HTTP and.
1 Web Services Visual C# 2008 Step by Step Chapter 30.
Assembler Compiler Interpreter ASSEMBLER To convert the assembly language into machine code. Translate mnemonic operation codes to their machine language.
Introduction to soapUI Presented by Kushan Athukorala.
An Introduction to ASP.NET Web Pages 2 Module 1: Webmatrix Installation and Your First Web Site Tom Perkins.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
CIS 451: Web Services Dr. Ralph D. Westfall March, 2009.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application Introducing Visual Web Developer 2008 Express and the.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 12: Introduction to ASP.NET Programming the World Wide Web 2009 Fifth Edition by.
IE 411/511: Visual Programming for Industrial Applications
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
An Introduction to Designing and Executing Workflows with Taverna Katy Wolstencroft University of Manchester.
Lecture 15 Introduction to Web Services Web Service Applications.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Internet Technologies and Web Application Web Services With ASP.NET Tutorial: Introduction to.
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
Introduction In The Name Of Allah, The Beneficent, The Merciful.
How to start Visual Studio 2008 or 2010 (command-line program)
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
C# AND ASP.NET What will I do in this course?. MAJOR TOPICS Learn to program in the C# language with the Visual Studio IDE (Interactive Development Environment)
PDA Program Install Manual IT Team. 1. Execute Internet Explorer 2. Connect Website 3. Download 4. Installation 5. Run 6. Setting 1. Execute.
Introduction to Web Services. Examples Using a Web Service Creating a new Web Service.
Microsoft Visual Studio 2010 Teacher: Ms. Olifer.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Illustration of a Visual Basic Program Running an Ada Program 1 by Richard Conn 11 September 1999.
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
The Module Road Map Assignment 1 Road Map We will look at… Internet / World Wide Web Aspects of their operation The role of clients and servers ASPX.
Week Six : Writing Web Services Aims: Creating and Consuming student’s first Web Services Learning Outcomes: Familiarity with VS.NET for creating and consuming.
IMS 4480: Introduction to Web Services 1 Dr. Lawrence West, MIS Dept., University of Central Florida Introduction to Web Services—Topics.
Module 9: Using XML Web Services in a C# Application.
C# 1 Web services CSC 298. C# 2 Web services  A technology to make libraries available across the internet.  In Visual Studio,  can create a web service.
INFO 344 Web Tools And Development CK Wang University of Washington Spring 2014.
Introduction to Microsoft Excel Macros COE 201- Computer Proficiency.
1 More About HTML Images and Links. 22 Objectives You will be able to Include images in your HTML page. Create links to other pages on your HTML page.
.NET Mobile Application Development XML Web Services.
11 Getting Started with ASP.NET Beginning ASP.NET in C# and VB Chapters 1 and 2.
1111 Creating HTML Programatically Objectives You will be able to Invoke C# code on the server from an ASP.NET page. Write C# code to create HTML.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
Introduction to Web Services Srinath Vasireddy Support Professional Developer Support Microsoft Corporation.
11 jQuery Web Service Client. 22 Objectives You will be able to Use JSON (JavaScript Object Notation) for communcations between browser and server methods.
PHP stands for …….. “PHP Hypertext Pre-processor” and is a server-side scripting language like ASP. PHP scripts are executed on the server PHP supports.
1 Using MVC 6. MVC vs. ASP Web Forms Both run under ASP.NET Can coexist In Web Forms, browser requests page. xxx.aspx and xxx.aspx.cs on the server Page.
Tutorial 1 Writing Your First C++ Program CSC1110C Introduction to Computer Programming By Paul Pun Acknowledgement: Special thanks to Dr. Michael Fung.
ASP.NET Forms.
How to change the LOGO on PecStarWeb V3.6
Part 1 of 2 Creating SQL Database and Binding to GridView
INTRODUCTION TO WEB SERVICES CS 795. What is a Web Service ? Web service is a means by which computers talk to each other over the web using HTTP and.
02 | Developing ASP.NET MVC 4 Models
Consuming Webservice in AX 2012
1. Open Visual Studio 2008.
Web service.
Creating Your First C Program Using Visual Studio 2010
Creating Your First C Program Using Visual Studio 2010
Double click Microsoft Visual Studio 2010 on the Computer Desktop
Reports Web Innovations 2017.
Programming with Microsoft Visual Basic 2008 Fourth Edition
A Little Bit of Active Server Pages (ASP)
Security - Forms Authentication
Presentation transcript:

© Chinese University, CSE Dept. Distributed Systems / Simple Example Open Microsoft Visual Studio 2005:

© Chinese University, CSE Dept. Distributed Systems / Simple Example Click “File  New  Website” Select the “ASP.NET Web Service” and select C# as the language. Click “OK”.

© Chinese University, CSE Dept. Distributed Systems / Simple Example In the windows of Visual Studio, press “Ctrl + F5” to run the default Web service:

© Chinese University, CSE Dept. Distributed Systems / Simple Example Click “HelloWorld” to invoke this function. Click “Invoke” in the shown page, you will get the invocation result: By these simple steps, you create a Web service, which contains a simple function named “HelloWorld” The address of your Web service is: The WSDL (Web Service Description Language) file of your Web service is available in: Please note that the port number (1336 in the above example) and Website name (WebSite1 in the above example) may be different in your computer.

© Chinese University, CSE Dept. Distributed Systems / Simple Example The WSDL document of the Web service provides descriptions of the Web service functionalities (e.g., function name, input, output, ect.). By parsing this WSDL file, other programs can invoke this Web service easily.

© Chinese University, CSE Dept. Distributed Systems / Simple Example Use [WebMethod] to add new function Add(int x, int y) Place Public before the function procedure

© Chinese University, CSE Dept. Distributed Systems / Simple Example Press “Ctrl + F5” to run the Web service which includes two functions, i.e., HelloWorld and Add. Click “Add” to invoke the Add function. Type some values into the form and click “Invoke”.

© Chinese University, CSE Dept. Distributed Systems / Simple Example There are a lot of publicly available Web services in the Internet, which provide useful functionalities. We can make use of these Web services by writing codes to invoke them. Right click “Website1” and select “Add Web Reference…” Type in the Web service address: Click “Go” and click “Add Reference” to add the Web service into the project.

© Chinese University, CSE Dept. Distributed Systems / Simple Example Add the following codes to the file “Service.cs”. The above codes invoke an Internet Web service named IpAddressSearchWebService to get the geographic information from an IP address. Press “Ctrl + F5” to run the Web service, which includes three functions:

© Chinese University, CSE Dept. Distributed Systems / Simple Example Click “IPAddress”. Type in an IP address and click “Invoke” to get the results: Now, your Web service can provides the geographic location service to the user. By these simple codes, you have created a Web service, which provides three functions ( Helloworld, Add, and IPAddress ) to the users. When the third function (i.e., IPAddress) receives a user request, it invokes another Internet Web service to get the results and return the results to the user.