XML Web Services CONCEPT

Document Sample
XML Web Services CONCEPT Powered By Docstoc
					XML Web Services

---------------------------

Namespaces:

System.Web.Services

System.Web.Services.Description

System.Web.Services.Discovery

System.Web.Services.Protocols



System.Xml

System.Xml.Xsl

System.Xml.XPath

----



WSDL - Web Services Description Language, v1.2

          XML Format

          .wsdl




SOAP - Simple Object Access Protocol, v1.1, 1.2

          XML Format

          .soap / .xml



          SOAP file has two parts:

          SOAP Header: Contains Server Information

          SOAP Body:

                     Xml data is stored in envelop
UDDI - Universal Description, Discovery & Integration, v3.0

          XML Format - Framework

          Used to avoid 'Tag Mis-match' between servers

          XML Tag Formats used universally for all types

          of web applications. www.uddi.org



www.ws-i.org

Microsoft, IBM, SUN and other (50) companies - together



Basic Profile v1.1

          Integrating ASP.NET, J2EE, PHP etc



---



MyService.asmx

------------------------

<%@ WebService Language="C#"

                     CodeBehind="~/App_Code/MyService.cs"

                     Class="MyService"

                     %>



~/App_Code/MyService.cs

--------------------------------

using System.Web.Services;



[WebService (Namespace="http://www.b115.com/services/")]
public class MyService : WebService {



[WebMethod]

public int Add(int A, int B) {

        return (A+B);

}



[WebMethod]

public string AddString(string X, string Y) {

        return (X+Y);

}



}

				
DOCUMENT INFO
Shared By:
Stats:
views:5
posted:2/23/2012
language:
pages:4
Description: XML Web Services CONCEPT