Module 9: Using XML Web Services in a C# Application.

Slides:



Advertisements
Similar presentations
Using EBSCOs Search Box Builder Tool Tutorial. Would you like to promote your EBSCOhost resources by adding an easy-to-use search box to your website?
Advertisements

1 After completing this lesson, you will be able to: Search for information on the Web. Create a favorites list. Use and modify your History folder.
PRODUCT TRAINING Installation.
® Microsoft Office 2010 Browser and Basics.
Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over.
Microsoft Office 2007 Excel Web Feature Creating Web Pages Using Excel.
Microsoft Office 2007 Microsoft Excel Collaboration Feature Using SharePoint and Excel Services.
Microsoft Office 2007 Word Web Feature Creating Web Pages Using Word.
Microsoft Office 2007 PowerPoint Web Feature Creating Web Pages Using PowerPoint.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
Integrating Access with the Web and with Other Programs.
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
XML Web Services ASP.NET. Overview of Web Services (Page 1) Web Service – Part or all of a Web application that is publicly exposed so that other applications.
Chapter 12 Extending Web Applications. ASP.NET 2.0, Third Edition2.
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
1 Web Services Visual C# 2008 Step by Step Chapter 30.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
The Visual Studio. NET and VB
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Microsoft Visual Basic 2005 CHAPTER 12 Cell Phone Applications and Web Services.
Internet. Internet is Is a Global network Computers connected together all over that world. Grew out of American military.
XML Web Services in Visual Studio.NET Peter Ty Developer Evangelist.NET and Developer Group.
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
CIS 451: Web Services Dr. Ralph D. Westfall March, 2009.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
HTML, XHTML, and CSS Chapter 12 Creating and Using XML Documents.
| | Tel: | | Computer Training & Personal Development Microsoft Office PowerPoint 2007 Expert.
CS590VC – Tutorial 9 Calling Web Services from Second life.
Microsoft Office 2007 PowerPoint Web Feature Creating Web Pages Using PowerPoint.
COMPREHENSIVE Windows Tutorial 4 Working with the Internet and .
Windows Tutorial 4 Working with the Internet and
CSCI 6962: Server-side Design and Programming Web Services.
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.
© Paradigm Publishing, Inc Browsing the Internet Using Internet Explorer 8.0.
Internet Technologies and Web Application Web Services With ASP.NET Tutorial: Introduction to.
Introduction to the Visual Studio.NET IDE (LAB 1 )
© Chinese University, CSE Dept. Distributed Systems / Simple Example Open Microsoft Visual Studio 2005:
Microsoft Visual Basic 2008 CHAPTER TWELVE Cell Phone Applications and Web Services.
Microsoft ® Outlook 2000 Managing and Integrating Outlook Components.
1 Introduction to Web Application Introduction to Web Services.
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.
Introduction to Web Services. Examples Using a Web Service Creating a new Web Service.
Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project.
Getting Started with OPC.NET OPC.NET Software Client Interface Client Base Server Base OPC Wrapper OPC COM Server Server Interface WCF Alternate.
XP Browser and Basics COM111 Introduction to Computer Applications.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
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.
Chapter 7: Creating and Consuming XML Web Services Understanding XML Web Services Creating XML Web Services Deploying and Discovering XML Web Services.
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.
Module 4: Creating a Web Application with Web Forms
Copyright 2007, EMC Paradigm Publishing Inc. INTERNET EXPLORER 7 BACKNEXTEND 1-1 LINKS TO OBJECTIVES Launching Internet Explorer Launching Internet Explorer.
1 After completing this lesson, you will be able to: Get around the Internet with your browser. Connect to the Internet. Print Web pages. Save Web pages.
Lesson 15 Web Services. What Are Web Services Web services are programmable and reusable, much like component software, except that they are more easily.
Intro to Web Services Dr. John P. Abraham UTPA. What are Web Services? Applications execute across multiple computers on a network.  The machine on which.
XP New Perspectives on Microsoft Windows XP Tutorial 5 1 Microsoft Windows XP Bringing the World Wide Web to the Desktop Tutorial 5.
.NET Mobile Application Development XML Web Services.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
Creating Web Pages with Links, Images, and Embedded Style Sheets
An Introduction to Programming with C++1 Void Functions Tutorial 5.
Introduction to Web Services Srinath Vasireddy Support Professional Developer Support Microsoft Corporation.
XP Creating Web Pages with Microsoft Office
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 12 Creating Console Applications, Understanding XML, and Creating Web Services.
Web Programming Developing Web Applications including Servlets, and Web Services using NetBeans 6.5 with GlassFish.V3.
Module 10: Creating a Web Application with Web Forms
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
Tutorial 7 – Integrating Access With the Web and With Other Programs
3.3 – Invoke Workflow File Exercise 3.2: Extract as Workflow
Presentation transcript:

Module 9: Using XML Web Services in a C# Application

Overview Consuming an XML Web Service Building an XML Web Service

Lesson: Consuming an XML Web Service What Is an XML Web Service? How to Locate the URL of an XML Web Service How to Add a Web Reference to an XML Web Service How to Call an XML Web Service Method in Code

What Is an XML Web Service? An XML Web service is: A programmable component Provides a particular function for an application Can be published, located, and invoked across the Web Based on Internet technologies SOAP, XML and transport protocols such as HTTP, SMTP COM Component Component Platform: Windows Platform: any platform RPC SOAP over HTTP Easy to run through Firewalls Difficult to run through Firewalls.NET Previously

How to Locate the URL of an XML Web Service On the Find a Service tab, click either UDDI Production Environment or UDDI Test Environment In the Search For box, enter a keyword of the XML Web service you want to locate Use the results to display more information about an XML Web service, or you can just click Add as web reference to current project Click Go to start the search On the Start page click XML Web Services

How to Add a Web Reference to an XML Web Service In Solution Explorer, right-click References and then click Add Web Reference In the Add Web Reference dialog box, in the Address box, enter the address of the XML Web service Click the Add Reference button to add the reference to your project and create the proxy class

How to Call an XML Web Service Method in Code After you add the XML Web service to your project you can write the code necessary to call the methods of that service, just as you would write code to call the methods of a class that is installed on your computer com.Advwks.TempConv testwebservice = new com.advwks.TempConv(); MessageBox.Show(testwebservice.CToF(100).ToString()); com.Advwks.TempConv testwebservice = new com.advwks.TempConv(); MessageBox.Show(testwebservice.CToF(100).ToString());

Practice: Using an XML Web Service from Within C# In this practice, you will use an XML Web service from within a C# application Guided Practice 10 min

Lesson: Building an XML Web Service How to Create an XML Web Service by Using Visual Studio.NET How to Test an XML Web Service by Using Visual Studio.NET

How to Create an XML Web Service by Using Visual Studio.NET Start with an ASP.NET Web service solution [WebService(Namespace=" /", Description="A temperature conversion service.")] public class Service1 : System.Web.Services.WebService [WebService(Namespace=" /", Description="A temperature conversion service.")] public class Service1 : System.Web.Services.WebService [WebMethod] public string ReturnXYZ(){ return "XYZ"; } public string ReturnABC() { return "ABC"; } [WebMethod] public string ReturnXYZ(){ return "XYZ"; } public string ReturnABC() { return "ABC"; } Add the methods necessary for your Web service

How to Test an XML Web Service by Using Visual Studio.NET In Visual Studio, click Start on the Standard toolbar In the browser window, click the name of the Web method you want to test On the next page, complete the parameter fields as necessary to test the XML Web service method and then click Invoke Another browser window opens displaying the SOAP response message (XML). Verify that the contents of this message are what you expect.

Practice: Creating an XML Web Service In this practice, you will create a basic XML Web service Guided Practice 10 min

Review Consuming an XML Web Service Building an XML Web Service

Lab 9.1: Using XML Web Services Exercise 1: Writing the Office Building Estimation Application 1 hour