Creating web service (and client application) with Visual Studio 2008 Create web service project New project->web->ASP.NET web service application (with.

Slides:



Advertisements
Similar presentations
1111 Creating ASPX Controls Programatically Objectives You will be able to Dynamically add controls to a page. Dynamically alter properties of controls.
Advertisements

Information System Design Lab 5&6. User Interface Design.
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.
Copyright © 2012 Pearson Education, Inc. Chapter 11 MORE WINDOWS CONTROLS & STANDARD DIALOG BOXES.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
ASP.Net, web services--- asynchronous and synchronous and AJAX By Thakur Rashmi Singh.
Student iDrive Access ESU Website Server Storage Space.
1 Web Services Visual C# 2008 Step by Step Chapter 30.
1b – Inside Visual Studio Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
11 ASP.NET Controls Beginning ASP.NET 4.0 in C# 2010 Chapter 6.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
ASP.Net, Web Forms and Web Controls 1 Outline Introduction Simple HTTP Transaction System Architecture Creating and Running a Simple Web Form Example Web.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
Beginning Web Site Development Module 1 – Dynamic Web Site Development Fundamentals of building dynamic Web sites with ASP.NET 2.0 and C# Version.
Visual Basic Advanced Programming.
INSPIRING CREATIVE AND INNOVATIVE MINDS Module 4: Adding Code to a Microsoft ASP.NET Web Form Implementing Code-Behind Pages Adding Event Procedures to.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Session 08: Architecture Controllers or Managers Graphical User Interface (GUI) FEN AK - IT Softwarekonstruktion.
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.
CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.
ASP.NET.. ASP.NET Environment ASP.NET is Microsoft's programming framework that enables the development of Web applications and services. It is an easy.
Internet Technologies and Web Application Web Services With ASP.NET Tutorial: Introduction to.
Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Introduction In The Name Of Allah, The Beneficent, The Merciful.
© Chinese University, CSE Dept. Distributed Systems / Simple Example Open Microsoft Visual Studio 2005:
BIL528 – Bilgisayar Programlama II Introduction 1.
Sample Application Multi Layered Architecture (n-tier): –Graphical User Interface (GUI): Forms, components, controls The Visual Designer in Visual Studio.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Unit 3: Adding Code to a Microsoft ASP.NET Web Form.
Global.asax file. Agenda What is Global.asax file How to add the Global.asax file What are the default events available Explanation to Application_Level.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
XML Web Service. Overview of XML Web Service ASP.NET XML Web services enable you to remotely access the properties and methods of classes across a network.
Session 4: HTML and Web Server Controls. Outline Creating Web Forms Using Server Controls HTML Server Controls Web Server Controls Writing ASP Code Inline.
Introduction to Web Services. Examples Using a Web Service Creating a new Web Service.
Microsoft Visual Studio 2010 Teacher: Ms. Olifer.
Getting Started with OPC.NET OPC.NET Software Client Interface Client Base Server Base OPC Wrapper OPC COM Server Server Interface WCF Alternate.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
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.
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.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Module 4: Creating a Web Application with Web Forms
Architecture Multi Layered Architecture (n-tier): Application: Model Controllers Database Access Graphical User Interface (GUI): Forms, components, controls.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
11 User Controls Beginning ASP.NET in C# and VB Chapter 8.
Creating a Web Site Creating a new Web site Defining and using folders Creating and editing Web pages Viewing pages in a Web browser.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Introduction to Web Services Srinath Vasireddy Support Professional Developer Support Microsoft Corporation.
Dive Into® Visual Basic 2010 Express
Computing with C# and the .NET Framework
How to Create a Simple Web Service and Use it in ASP.Net
Visual programming Chapter 1: Introduction
Module 1: Getting Started
Web Development in Microsoft Visual Studio 2013
Social Media And Global Computing Introduction to Visual Studio
Understanding the Visual IDE
CIS16 Application Development Programming with Visual Basic
Module 10: Creating a Web Application with Web Forms
Static and Dynamic Web Pages
ASP.NET.
Web Service.
Procedure for adding a Trusted Site
Reports Web Innovations 2017.
AB form1 Multiplication textBox1 12 textBox2 34 textBox3
Presentation transcript:

Creating web service (and client application) with Visual Studio 2008 Create web service project New project->web->ASP.NET web service application (with desired programming language ) Create needed functions [WebMethod] public decimal Add(decimal a, decimal b) { return a + b; } Test on browser (ASP.NET development server creates simple UI to test web service functions)

Create client project – New project->Windows->Windows forms application (or some other project type) – Check - Solution: add to solution Create user interface for testing the add service (Toolbox) – Three textboxes (a,b and result) – A button for calling the service – Needed labels

Reference the service – In solution explorer – add service reference on application. Advanced->Add web reference-> Web services in this solution – Select service and add reference – Now you can call the web service functions (first create a new proxy-object) – Visual studio added a proxy class (Reference.cs) to project (under web references folder) along with disco and wsdl files

Call the add function after button click private void button1_Click(object sender, EventArgs e) { testservice.Service1 serv= new testservice.Service1(); resultBox.Text = (serv.Add(Convert.ToDecimal(aBox.Text), Convert.ToDecimal(bBox.Text))).ToString(); } Run the application