Intesar G Ali IT DepartmentPalestinian Land Authority Web services Prepared by: Intesar Ali IT Department PLA August 2010.

Slides:



Advertisements
Similar presentations
Web Service Architecture
Advertisements

Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
Introduction to WSDL presented by Xiang Fu. Source WSDL 1.1 specification WSDL 1.1 specification – WSDL 1.2 working draft WSDL.
SOAP.
1 Understanding Web Services Presented By: Woodas Lai.
CIS 375—Web App Dev II SOAP.
XML & Data Structures for the Internet Yingcai Xiao.
Web Services Darshan R. Kapadia Gregor von Laszewski 1http://grid.rit.edu.
Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over.
Grid Computing, B. Wilkinson, 20043a.1 WEB SERVICES Introduction.
Web Services CS Web Services Internet-available services using XML messaging, for computer-computer interaction Not tied to any OS or language Self-describing:
RSS RSS is a method that uses XML to distribute web content on one web site, to many other web sites. RSS allows fast browsing for news and updates.
1 Java Server Programming zLecture 1 focuses on: yIntroduction to web services y Web Services using Axis y The bigger Picture: Introduction to J2EE y Java.
Web service testing Group D5. What are Web Services? XML is the basis for Web services Web services are application components Web services communicate.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Chapter 9 Web Services Architecture and XML. Objectives By study in the chapter, you will be able to: Describe what is the goal of the Web services architecture.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
XML: Overview MIS 181.9: Service Oriented Architecture 2 nd Semester,
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
XML Technologies Surekha Akula
What are Webservices?. Web Services  What are Web Services?  Examine important Web Services acronyms (UDDI, SOAP, XML and WSDL)  What are the benefits.
Web Services & WCF ~ Ankit. Web services A web service is a collection of protocols and standards used for exchanging data between applications or systems.
1 HKU CSIS DB Seminar: HKU CSIS DB Seminar: Web Services Oriented Data Processing and Integration Speaker: Eric Lo.
James Holladay, Mario Sweeney, Vu Tran. Web Services Presentation Web Services Theory James Holladay Tools – Visual Studio Vu Tran Tools – Net Beans Mario.
Web Services Description Language (WSDL) Jason Glenn CDA 5937 Process Coordination in Service and Computational Grids September 30, 2002.
CSC8530 Distributed Systems XML Web Services David Vaglia.
Web Server Administration Web Services XML SOAP. Overview What are web services and what do they do? What is XML? What is SOAP? How are they all connected?
Web Services Week 7 Aims: A detailed look at the underlying mechanisms for communication between web services Objectives: SOAP, WSDL, UDDI.
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
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.
XML Web Services Architecture Siddharth Ruchandani CS 6362 – SW Architecture & Design Summer /11/05.
Web Services. ASP.NET Web Services  Goals of ASP.NET Web services:  To enable cross-platform, cross- business computing  Great for “service” based.
WEB APPLICATION DEVELOPMENT For More visit:
Chapter 10 Intro to SOAP and WSDL. Objectives By study in the chapter, you will be able to: Describe what is SOAP Exam the rules for creating a SOAP document.
Introduction to Web Services Instructor: Dr. M. Anwar Hossain.
Copyright © 2013 Curt Hill SOAP Protocol for exchanging data and Enabling Web Services.
Establishing a foundation for web services Ashraf Memon.
XML Basics A brief introduction to XML in general 1XML Basics.
1 Web Services Web and Database Management System.
XML Presented by Kushan Athukorala. 2 Agenda XML Overview Entity References Elements vs. Atributes XML Validation DTD XML Schema Linking XML and CSS XSLT.
Kemal Baykal Rasim Ismayilov
CSIT 220 (Blum)1 Remote Procedure Calls Based on Chapter 38 in Computer Networks and Internets, Comer.
Week Six : Writing Web Services Aims: Creating and Consuming student’s first Web Services Learning Outcomes: Familiarity with VS.NET for creating and consuming.
Chapter 7: Creating and Consuming XML Web Services Understanding XML Web Services Creating XML Web Services Deploying and Discovering XML Web Services.
WSDL – Web Service Definition Language  WSDL is used to describe, locate and define Web services.  A web service is described by: message format simple.
Introduction to Web Services. Agenda Motivation History Web service model Web service components A walkthrough examples.
Web services In this presentation… –what is a web service? –web service benefits –web service standards –web service definitions –web service actions.
Web Services An Introduction Copyright © Curt Hill.
XML. HTML Before you continue you should have a basic understanding of the following: HTML HTML was designed to display data and to focus on how data.
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.
Evaluation Biztalk Table of Contents Introduction to XML. Anatomy of an XML document. What is an XML Schema? What is SOAP? XML Web Services overview.
Dave Salinas. What is XML? XML stands for eXtensible Markup Language Markup language, like HTML HTML was designed to display data, whereas XML was designed.
Introduction to Web Services Presented by Sarath Chandra Dorbala.
Web Services Blake Schernekau March 27 th, Learning Objectives Understand Web Services Understand Web Services Figure out SOAP and what it is used.
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
DISCO/UDDI -Ketan Reddy Peddabachi. Agenda Web Service Disco UDDI Disco Vs UDDI.
DEVELOPING WEB SERVICES WITH JAVA DESIGN WEB SERVICE ENDPOINT.
SOAP, Web Service, WSDL Week 14 Web site:
Introduction to Web Services Srinath Vasireddy Support Professional Developer Support Microsoft Corporation.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 9 Web Services: JAX-RPC,
Java Web Services Orca Knowledge Center – Web Service key concepts.
Jim Fawcett CSE681 – SW Modeling & Analysis Spring 2005
Sabri Kızanlık Ural Emekçi
WEB SERVICES.
Unit – 5 JAVA Web Services
Implementing a service-oriented architecture using SOAP
Web Server Administration
Chapter 9 Web Services: JAX-RPC, WSDL, XML Schema, and SOAP
Presentation transcript:

Intesar G Ali IT DepartmentPalestinian Land Authority Web services Prepared by: Intesar Ali IT Department PLA August 2010

Intesar G Ali IT DepartmentPalestinian Land Authority XML XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is designed to transport and store data. XML is designed to transport and store data. XML is a markup language much like HTML XML is a markup language much like HTML XML was designed to carry data, not to display data XML was designed to carry data, not to display data XML tags are not predefined. You must define your own tags XML tags are not predefined. You must define your own tags XML is used to encode all communications to a Web service XML is used to encode all communications to a Web service

Intesar G Ali IT DepartmentPalestinian Land Authority Well Formed XML Documents XML documents must contain a root element. This element is "the parent" of all other elements. XML documents must contain a root element. This element is "the parent" of all other elements XML tags are case sensitive XML tags are case sensitive attributes provide additional information about elements: attributes provide additional information about elements: XML Attribute Values Must be Quoted XML Attribute Values Must be Quoted Everyday Everyday All XML Elements Must Have a Closing Tag All XML Elements Must Have a Closing Tag XML Elements Must be Properly Nested XML Elements Must be Properly Nested This text is bold and italic This text is bold and italic Comments in XML Comments in XML XML Errors Will Stop You XML Errors Will Stop You

Intesar G Ali IT DepartmentPalestinian Land Authority XSD (XML Schema Definition) An XML schema describes the structure of an XML document. defines elements & attributes that can appear in a document defines elements & attributes that can appear in a document defines which elements are child elements & order, number of child elements defines which elements are child elements & order, number of child elements defines the defines whether an element is empty or can include text defines the defines whether an element is empty or can include text defines default and fixed values for elements and attributes defines default and fixed values for elements and attributes defines data types for elements and attributes defines data types for elements and attributes ex : The value of age cannot be lower than 0 or greater than 120 ex : The value of age cannot be lower than 0 or greater than 120

Intesar G Ali IT DepartmentPalestinian Land Authority XSD - The Element The element is the root element of every XML Schema The element is the root element of every XML Schema … …

Intesar G Ali IT DepartmentPalestinian Land Authority Employee Information SSN Name DateOfBirth EmployeeType Salary XML document for the Employee Information - - <Employee> ED HARRIS ED HARRIS <EmployeeType>FULLTIME</EmployeeType><Salary>4000</Salary></Employee></Employees> XML Schema for the Employee Information <xsd:complexType><xsd:sequence> </xsd:sequence></xsd:complexType> </xsd:schema> Case Study

Web Services By using Web services, your application can publish its function or message to the rest of the world. Web services use XML to code and to decode data, and SOAP to transport it. and SOAP to transport it. XML makes it easier to share data among different applications So Windows applications can talk with Unix applications.

Intesar G Ali IT DepartmentPalestinian Land Authority A Web Service Example In the following example we will use ASP.NET to create a simple Web Service that converts the temperature from Fahrenheit to Celsius, and vice versa: In the following example we will use ASP.NET to create a simple Web Service that converts the temperature from Fahrenheit to Celsius, and vice versa: Imports System Imports System.Web.Services Public Class TempConvert :Inherits WebService Imports System Imports System.Web.Services Public Class TempConvert :Inherits WebService Public Function HelloWorld( ByVal lcName As String) As String Public Function HelloWorld( ByVal lcName As String) As String return "Hello World, " + lcName return "Hello World, " + lcName end function end function Public Function AddNumbers (ByVal lnNumber1 As decimal, ByVal lnNumber2As decimal) as decimal Public Function AddNumbers (ByVal lnNumber1 As decimal, ByVal lnNumber2As decimal) as decimal return lnNumber1 + lnNumber2 end function end function public function GetServerTime() as DateTime return DateTime.Now end class

Intesar G Ali IT DepartmentPalestinian Land Authority Web Service Use "WebMethod()" to convert the functions in your application into web services: Use "WebMethod()" to convert the functions in your application into web services: Publish the.asmx file on a server with.NET support, and you will have your first working Web Service. Publish the.asmx file on a server with.NET support, and you will have your first working Web Service. ASP.NET Automates the Process, you do not have to write your own WSDL and SOAP documents. ASP.NET Automates the Process, you do not have to write your own WSDL and SOAP documents.

Intesar G Ali IT DepartmentPalestinian Land Authority Web Services Platform Elements Web Services have three basic platform elements : SOAP SOAP WSDL WSDL UDDI UDDI

Intesar G Ali IT DepartmentPalestinian Land Authority What is SOAP? SOAP is an XML-based protocol for exchanging information between computers over HTTP. Or more simple: SOAP is a protocol for accessing a Web Service. SOAP stands for Simple Object Access Protocol SOAP stands for Simple Object Access Protocol SOAP is a communication protocol SOAP is a communication protocol SOAP is a format for sending messages SOAP is a format for sending messages SOAP is designed to communicate via Internet SOAP is designed to communicate via Internet SOAP is platform independent SOAP is platform independent SOAP is language independent SOAP is language independent SOAP is based on XML SOAP is based on XML SOAP allows you to get around firewalls SOAP allows you to get around firewalls

Intesar G Ali IT DepartmentPalestinian Land Authority SOAP request </soap:Envelope> passing in the two provided parameters, which are properly converted into the types specified by the WSDL file. passing in the two provided parameters, which are properly converted into the types specified by the WSDL file.

Intesar G Ali IT DepartmentPalestinian Land Authority SOAP response </soap:Envelope>

Intesar G Ali IT DepartmentPalestinian Land Authority What is WSDL? WSDL is a document written in XML. A WSDL file describes all the methods and method signatures, as well as the namespaces and the handling URL for the Web Service. Visual Studio.NET uses the WSDL file to create a Web Reference on the client side from your Web Service. Visual Studio.NET uses the WSDL file to create a Web Reference on the client side from your Web Service. It reads the WSDL file and based on the definitions found in the WSDL file creates a proxy class that mimics the interface of the Web Service. Because this class is actually linked into your client project the class becomes available in IntelliSense and you can actually see the full interface of the class as you type.

Intesar G Ali IT DepartmentPalestinian Land Authority The WSDL Document Structure A WSDL document describes a web service using these major elements: A WSDL document describes a web service using these major elements:<definitions> The data types used by the web service The data types used by the web service The messages used by the web service The messages used by the web service The operations performed by the web service The operations performed by the web service The communication protocols used by the web service The communication protocols used by the web service Binding to SOAP Binding to SOAP</definitions><

Intesar G Ali IT DepartmentPalestinian Land Authority What is UDDI? UDDI stands for Universal Description, Discovery and Integration UDDI stands for Universal Description, Discovery and Integration The purpose of UDDI is to allow users to discover available web services and interact with them dynamically. The process can be divided into three phases: Searching (discovery), Binding, and Executing. The purpose of UDDI is to allow users to discover available web services and interact with them dynamically. The process can be divided into three phases: Searching (discovery), Binding, and Executing. UDDI is a directory service where companies can register and search for Web services. UDDI is a directory service where companies can register and search for Web services. UDDI is a directory for storing information about web services UDDI is a directory for storing information about web services UDDI is a directory of web service interfaces described by WSDL UDDI is a directory of web service interfaces described by WSDL UDDI is often compared to a telephone book's white, yellow, and green pages. The project allows businesses to list themselves by name, product, location, or the Web services they offer. UDDI is often compared to a telephone book's white, yellow, and green pages. The project allows businesses to list themselves by name, product, location, or the Web services they offer.

there are two primary way to create Web Services in ASP. net.asmx file.asmx file You can use Windows Communication Foundation WCF to create web service to work with variety protocols like TCP You can use Windows Communication Foundation WCF to create web service to work with variety protocols like TCP In asp.net 3.0

Intesar G Ali IT DepartmentPalestinian Land Authority Testing the Web Service

Intesar G Ali IT DepartmentPalestinian Land Authority

Intesar G Ali IT DepartmentPalestinian Land Authority Calling the Web Service on the client side

Intesar G Ali IT DepartmentPalestinian Land Authority 2- Adding a Web Reference

Intesar G Ali IT DepartmentPalestinian Land Authority THANK YOU