IMS 4480: Introduction to Web Services 1 Dr. Lawrence West, MIS Dept., University of Central Florida Introduction to Web Services—Topics.

Slides:



Advertisements
Similar presentations
Information System Design Lab 5&6. User Interface Design.
Advertisements

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
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 Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Chapter 2 –Visual Basic, Controls, and Events
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
IMS 4212: Application Architecture and Intro to Stored Procedures 1 Dr. Lawrence West, Management Dept., University of Central Florida
CIS 338: Creating ActiveX Controls Dr. Ralph D. Westfall March, 2003.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
IMS 6217: Data Warehousing / Business Intelligence Part 3 1 Dr. Lawrence West, Management Dept., University of Central Florida Analysis.
1 Web-Enabled Decision Support Systems Objects and Procedures Don McLaughlin IE 423 Design of Decision Support Systems (304)
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Multiple Forms, Container Controls, AddHandler This presentation is based on the Forms and ContainerControls VB Projects 1.
E-Commerce: Introduction to Web Development 1 Dr. Lawrence West, Management Dept., University of Central Florida Topics What is a Web.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
IMS 3253: Math 1 Dr. Lawrence West, MIS Dept., University of Central Florida Topics Five Fundamental Math Operations Precedence of Math.
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.
Review for Mid-term! October 26, Review Homework Worksheet True or False Operators are symbols that perform specific operations in Visual Basic.
CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
Internet Technologies and Web Application Web Services With ASP.NET Tutorial: Introduction to.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Introduction In The Name Of Allah, The Beneficent, The Merciful.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
© Chinese University, CSE Dept. Distributed Systems / Simple Example Open Microsoft Visual Studio 2005:
IMS 3253: Subroutines 1 Dr. Lawrence West, MIS Dept., University of Central Florida Topics Procedures Subroutines Parameters –By Value.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
Introduction to Web Services. Examples Using a Web Service Creating a new Web Service.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Illustration of a Visual Basic Program Running an Ada Program 1 by Richard Conn 11 September 1999.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Week Six : Writing Web Services Aims: Creating and Consuming student’s first Web Services Learning Outcomes: Familiarity with VS.NET for creating and consuming.
Module 9: Using XML Web Services in a C# Application.
IMS 4212 Lab: Lab Introduction 1 Dr. Lawrence West, MIS Dept., University of Central Florida Subject—Topics Installing.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
IMS 3253: Controls 1 Dr. Lawrence West, MIS Dept., University of Central Florida Topics Check Boxes Radio Buttons Date Time Picker Masked.
Introduction to VB programming Dr. John P. Abraham UTPA Chapters 2 & 3.
IMS 3253: Forms, Controls, Properties, Events 1 Dr. Lawrence West, MIS Dept., University of Central Florida Topics Program Elements Assignment.
COMPREHENSIVE Access Tutorial 11 Using and Writing Visual Basic for Applications Code.
IMS 6217: Database Design & Entities 1 Dr. Lawrence West, MIS Dept., University of Central Florida Database Design--Topics DB Design.
IMS 3253: Validation and Errors 1 Dr. Lawrence West, MIS Dept., University of Central Florida Topics Validation and Error Handling Validation.
IMS 4212: Course Introduction 1 Dr. Lawrence West, Management Dept., University of Central Florida ISM 4212 Dr. Larry West
E-Commerce: Introduction to ASP.Net Application Architecture 1 Dr. Lawrence West, Management Dept., University of Central Florida Topics.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 12 Creating Console Applications, Understanding XML, and Creating Web Services.
Chapter 8 Multiple Forms, Modules, and Menus. Introduction This chapter demonstrates how to: – Add multiple forms to a project – Create a module to hold.
Chapter 1: An Introduction to Visual Basic .NET
Chapter 1: An Introduction to Visual Basic 2015
Visual programming Chapter 1: Introduction
Introduction to VB programming
Objectives Learn about Function procedures (functions), Sub procedures (subroutines), and modules Review and modify an existing subroutine in an event.
Social Media And Global Computing Introduction to Visual Studio
Understanding the Visual IDE
CIS16 Application Development Programming with Visual Basic
CIS16 Application Programming with Visual Basic
1. Open Visual Studio 2008.
HOW TO CREATE A CLASS Steps:
CS285 Introduction - Visual Basic
Introduction to VB programming
Introduction to Visual Basic 2010
Tutorial 11 Using and Writing Visual Basic for Applications Code
3.3 – Invoke Workflow File Exercise 3.2: Extract as Workflow
Presentation transcript:

IMS 4480: Introduction to Web Services 1 Dr. Lawrence West, MIS Dept., University of Central Florida Introduction to Web Services—Topics Creating a Web Service Testing Web Services Referencing a Web Service in a Visual Studio Project Support for Web Services Solutions in Visual Studio

IMS 4480: Introduction to Web Services 2 Dr. Lawrence West, MIS Dept., University of Central Florida Creating a Web Service Create a new VS project of type “ASP.Net Web Service” You automatically have “Service1.asmx” as the default service. Rename this or delete it and add a new service giving it a meaningful name. You may have many web service files in a single solution –Break them up by functionality

IMS 4480: Introduction to Web Services 3 Dr. Lawrence West, MIS Dept., University of Central Florida Adding Code to the Web Service Add whatever methods, properties, etc., that you need to your web service Precede subroutines and functions that you want to expose to the web with the line: _ Public Function HelloWorld() As String Return "Hello World“ End Function Procedures lacking this prefix will be used internally within the service Note Line Continuation Character

IMS 4480: Introduction to Web Services 4 Dr. Lawrence West, MIS Dept., University of Central Florida Testing Web Services Web services can be tested without a consumer application Navigate to the services.asmx page Select the public method you wish to test

IMS 4480: Introduction to Web Services 5 Dr. Lawrence West, MIS Dept., University of Central Florida Testing Web Services (cont.) The CalcTotal function requires two parameters Test provides simple text boxes for input “Invoke” button tests the service

IMS 4480: Introduction to Web Services 6 Dr. Lawrence West, MIS Dept., University of Central Florida Testing Web Services (cont.) The result screen shows the XML-encapsulated result of the web service method/function _ Public Function CalcTotal(ByVal sglPrice As Single, _ ByVal intQty As Integer) As Single Return sglPrice * intQty * 1.06 End Function

IMS 4480: Introduction to Web Services 7 Dr. Lawrence West, MIS Dept., University of Central Florida Testing Web Services (cont.) You can also set the web services solution as the start up project in Visual Studio’s Solution Explorer Running the solution brings up the test page

IMS 4480: Introduction to Web Services 8 Dr. Lawrence West, MIS Dept., University of Central Florida Referencing a Web Service in a VB Project The VB client project (both Windows and ASP.Net) must be ‘aware’ of the capabilities of a web service you want it to use –Available methods and properties –Data types of parameters and return values This is done with a proxy class that contains this information

IMS 4480: Introduction to Web Services 9 Dr. Lawrence West, MIS Dept., University of Central Florida Adding Web Reference Right click project and select “Add Service Reference…”

IMS 4480: Introduction to Web Services 10 Dr. Lawrence West, MIS Dept., University of Central Florida Adding Web Reference (cont.) Click Advanced…

IMS 4480: Introduction to Web Services 11 Dr. Lawrence West, MIS Dept., University of Central Florida Add Web Reference (cont.) Click "Add Web Reference…"

IMS 4480: Introduction to Web Services 12 Dr. Lawrence West, MIS Dept., University of Central Florida Adding Web Reference (cont.) Find your web service in this solution

IMS 4480: Introduction to Web Services 13 Dr. Lawrence West, MIS Dept., University of Central Florida Add a Web Reference (cont.) Select the desired web service

IMS 4480: Introduction to Web Services 14 Dr. Lawrence West, MIS Dept., University of Central Florida Creating a Web Reference (cont.) Capabilities Name you will reference in code Click Add Reference

IMS 4480: Introduction to Web Services 15 Dr. Lawrence West, MIS Dept., University of Central Florida Special Note It is very, very important that you complete the web service before you add the reference to it in another web or Windows project The Web Reference freezes the interface of the web service at the time the reference was added to the project I have had a great deal of difficulty getting these references to recognize changes to the interface You can change coding within the web exposed functions and subs and other procedures with no problem

IMS 4480: Introduction to Web Services 16 Dr. Lawrence West, MIS Dept., University of Central Florida Support for Web Services in Visual Studio Web services providers and consumers are multiple independent programs Visual Studio lets you work with both in one solution –Debug across programs –See code in both –Etc. Set Startup Project