Web Service Project (.NET) Dr. Dante Ciolfi (chawl fee)

Slides:



Advertisements
Similar presentations
Unit 02. ASP.NET Introduction HTML & Server controls Postbacks Page Lifecycle.
Advertisements

Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
1 Web Services Visual C# 2008 Step by Step Chapter 30.
Creating & Consuming Web Services MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
A First Program Using C#
MIS 3200 – Unit 6.2 Learning Objectives How to move data between pages – Using Query Strings How to control errors on web pages – Using Try-catch.
CIS 338: Creating ActiveX Controls Dr. Ralph D. Westfall March, 2003.
Intro to AppInventor Dr. Dante Ciolfi (chawl fee).
IT 211 Project Integration and Deployment Lab #11.
E-Commerce: Introduction to Web Development 1 Dr. Lawrence West, Management Dept., University of Central Florida Topics What is a Web.
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
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.
CIS 451: ASP.NET Objects Dr. Ralph D. Westfall January, 2009.
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.
Introduction In The Name Of Allah, The Beneficent, The Merciful.
Project Deployment IT [211 CAP] How to convert your project to a full application.
© Chinese University, CSE Dept. Distributed Systems / Simple Example Open Microsoft Visual Studio 2005:
CIS 451: ASP.NET Concepts Dr. Ralph D. Westfall January, 2009.
1 Chapter 12 – Web Applications 12.1 Programming for the Web, Part I 12.2 Programming for the Web, Part II 12.3 Using Databases in Web Programs.
Programming with Visual Studio 2005.NET A short review of the process.
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
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.
Module 1: Getting Started. Introduction to.NET and the.NET Framework Exploring Visual Studio.NET Creating a Windows Application Project Overview Use Visual.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project.
Introduction to Visual Studio & GUI Programming Prepared by: Ahmad Ramin Rahimee Assistant Professor ICTI.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
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.
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.
1 CS 3870/CS 5870: Note 13 Web Service. 2 What is Web Service? Providing functionality online to other Web applications SOAP Simple Object Access Protocol.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Web Development in Microsoft Visual Studio 2013 / 2015.
CIS 375—Web App Dev II ASP.NET 5 Events. 2 The Page_Load Event The Page_Load event is triggered when a page loads. [Example]Example Sub Page_Load lbl1.Text="The.
Debug in Visual Studio Windows Development Fundamentals LESSON 2.5A.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Building Custom Controls with ASP.NET and the Microsoft ®.NET Framework Rames Gantanant Microsoft Regional Director, Thailand
INTRO TO DATA DRIVEN SITES WITH VISUAL STUDIO NOTE: SLIDES ARE NOT COMPLETE, UPDATED DR. DANTE CIOLFI (CHAWL FEE)
11 User Controls Beginning ASP.NET in C# and VB Chapter 8.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
Howto: Custom page design Creating your own ASPX page Step-by-step guide.
Building CSS in Visual Studio Slide 2 Introduction Using the different HTML (and other) Visual Studio Editors CSS tools.
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.
Windows Communication Foundation and Web Services
© 2016, Mike Murach & Associates, Inc.
Using the HTML and CSS Validation Services
How to Create a Simple Web Service and Use it in ASP.Net
Introduction to VB programming
Module 0: Introduction Chapter 2: Getting Started
Module 1: Getting Started
Quick Start Guide for Visual Studio 2010
Web Development in Microsoft Visual Studio 2013
CIS16 Application Development Programming with Visual Basic
1. Open Visual Studio 2008.
Visual programming Chapter 2: Events and Event Handling
Creating Your First C Program Using Visual Studio 2010
ASP.NET.
Creating Your First C Program Using Visual Studio 2010
Double click Microsoft Visual Studio 2010 on the Computer Desktop
Web Development Using ASP .NET
CIS 338: Images on Forms Dr. Ralph D. Westfall May, 2009.
MIS 3200 – Unit 6.1 Moving between pages by redirecting
GUI Programming in Visual Studio .NET
Presentation transcript:

Web Service Project (.NET) Dr. Dante Ciolfi (chawl fee)

Overview Materials required Create a Web Forms site Expose a Web service – temperature converter Create a data consumer for above service Adjustments to code provided by Visual Studio

Materials required Visual Studio 2013 (2012 may work) File named code.txtcode.txt

Create a Web Forms site Create a ASP.NET Web Forms site (VB) called TempConvert Add item: TempConvert.asmx TempConvert.asmx: add code: Imports System.Web Add reference to project: Debug > TempConvert Properties > add System Web

Expose a Web service Add code to TempConvert.asmx.vb (see code.txt)code.txt

Create a data consumer for above service Add item: WebForm1.aspx (with WebForm1.aspx.vb) Add code to above file (use code.txt)code.txt

Adjustments to code provided by Visual Studio TempConvert.asmx.vb: Change Namespace reference: instead of “uri”, use tempconvert + your initials, e.g., tempconvertdc.org (a unique name is needed here) WebForm1.aspx: Value of action attribute: use file name and function, e.g., ‘TempConvert.asmx/FahrenheitToCelsius’ WebForm1.aspx.vb: rURL line: use complete address, e.g., (hint: run your app to check the port) Button1.CommitTransaction (use CommitTransaction, not Click) Error: “Handles clause requires a WithEvents…”: place the following code above Protected Sub Button1_Click…: Public WithEvents Button1 As UserControl

Summary Materials required Create a Web Forms site Expose a Web service – temperature converter Create a data consumer for above service Adjustments to code provided by Visual Studio

Credits Resources: (accessed 11/11/2013) Web service example: Redirect to a URL via VB: Handles clause requires a WithEvents...: 45ba-99e1-ee87c8b1facd/handles-clause-requires-a-withevents-variable- defined-in-the-containing-type-or-one-of-its-base?forum=vbgeneral