Presentation is loading. Please wait.

Presentation is loading. Please wait.

VS.NET에서의 Web Service Keon Bok Lee Microsoft Korea.

Similar presentations


Presentation on theme: "VS.NET에서의 Web Service Keon Bok Lee Microsoft Korea."— Presentation transcript:

1 VS.NET에서의 Web Service Keon Bok Lee Microsoft Korea

2 Agenda Web Service란 ? Web Service가 사용되야 하는 이유 Web Service의 작성방법

3 Windows DNA 2000 환경 웹 서비스로 제공 B2B Windows DNA App 무역거래 공급자 A 공급자 B
전자상거래 Inventory 물품주문 수행 SQL Server, Oracle, DB2 B2B 무역거래 공급자 A Firewall 공급자 B 웹 서비스로 제공 Rich and Reach Windows DNA App KEY POINTS: Windows DNA is the flexible platform for building enterprise applications now and in the future At its core, Windows DNA is the Microsoft platform. The foundation of Windows DNA is Windows 2000 Server and its’ rich set of services and APIs – IIS, COM+, the Active Directory, and much more. In addition to this, we have a robust set of server products, including SQL Server, Host Integration Server, Exchange Server, BizTalk Server, Commerce Server, and on and on. Together, these products offer a platform that addresses the key challenges facing enterprises today. The ability to service both rich and reach clients, as well as the increasing number of new client form factors, and to have all of these application clients share a common set of business components is a key value proposition to our customers. The ability to tie the business services into existing internal applications as well as with trading partners is another key feature and builds the value our customers gain from the Windows DNA platform. [Transition to next slide] And a new area that we believe will explode in growth in the coming years is this concept of Web Services. We’re making a bet that WinDNA is where our tools need to go. We’ve done well in the past focusing on parts of the WinDNA architecture. VS is the best way to create rich Windows applications. VS is also great for working with data in connected way. In moving to become the tool that is the best way to create distributed applications, we also need to focus on new areas. Focusing on writing code on the server is key. Being able to distribute your application across multiple machines should be easy. Being able to leverage services on industrial-strength servers will be key. Also, thin clients are very important for developers. The Internet has created a whole new way to think about applications and services. We will provide the tools to create applications that can reach anywhere. We’re also going to continue to make Windows be the best web client. Our tools will support both types of clients very well, but obviously Windows provides a rich set of functionality that HTML 3.2 cannot, and that functionality is still very, very important. Another new area that we’ll spend some time in (although not as much as these others) is targeting non-PC devices running windows CE. These types of devices are emerging and showing up everywhere. Being able to leverage your skills to target these as well will be a goal. Finally, being able to integrate all of these services together, both across MS tools and across technologies is key. We have not always been the best about having a coherent or cohesive plan for creating applications. We’re going to do a much better job at integrating all of this stuff together into a way to build distributed apps, rather than more sets of technologies that you have to figure out how to stitch together. This integration not only covers the features you’ll see today, but also the underlying platform pieces that make it all possible. 다양한 클라이언트 환경

4 .NET 응용프로그램 Web Service Web Web Service Application Client Client
XML XML Client Web Application Web Service XML “Block Services” 구축 HTML Client

5 SOAP Contract Language
Web Service란 ? 개방형 Internet Protocols Web Service 표준 웹 프로토콜을 이용한 구성요소 사용/프로그램 작성 SOAP Discovery 추가정보: 웹사이트에서 제공하는 웹 서비스를 요청 SOAP Contract Language 웹 서비스는 일정한 형식에 따라 정의됨 SOAP 웹 서비스의 사용자는 XML을 이용하여 데이터를 주고 받는다. 이러한 기능을 표준 인터넷 프로토콜을 이용 XML, XSD HTTP, SMTP

6 Web Service란 ? 잘못된 생각: 웹 서비스란 ?: 웹서비스는 웹페이지이다. 웹 브라우저에서만 사용된다.
마이크로소프트에서만 사용되는 기술이다 웹 서비스란 ?: 표준 인터넷 프로토콜을 이용하여 외부의 프로시저를 호출하는 방법

7 Web Service의 의미는? Web Service의 역활: XML의 사용 서비스의 발견 프로시저의 호출
Argument 전달 결과 검색 XML의 사용

8 Example Hello World

9 Web Service를 사용해야 하는 이유 기존의 DCOM의 문제점 간단함 텍스트 (XML) HTTP Stateless 성능
신뢰성 기존의 웹 사이트의 기본구조 사용

10 Web Services 구조 Web Service (ASP.Net에서 ASMX 파일 호출)
Service Description Language (SDL) Web Service를 설명 다른 연결된 정보 설명 Discovery Documents (DISCO) Web Service 생성 ASMX SCL DISCO XSD SCL

11 Discovery Document 웹서비스를 찾아내는 방법 *.disco 파일 사용
웹 서비스가 어디있는지 알려주는 XML 파일 필수요소는 아님 <?xml version="1.0" ?> <disco:discovery xmlns:disco=" xmlns:scl=" <scl:contractRef ref=" </disco:discovery>

12 Service Description Language
웹 서비스의 내용을 알아내는 방법 Web Service는 SDL을 이용 Service Description Language 클라이언트와 서버와의 계약 설명 가능한 프로시저 Arguments Return값 데이터 형식

13 Wire Formats 잘못된 생각: 기본 형식은..: Proprietary Binary XML 바탕의 사용 HTTP Get
HTTP Post SOAP

14 Protocols 기본: HTTP GET 와 POST SOAP Primitives (integers, strings, etc)
기본 구조 Enumerations 클래스 XML 데이터셋 배열

15 호출방법 HTTP GET HTTP Post SOAP Test 페이지 자동 생성
HTTP Post 폼과 같은 UUEncoded 인수의 사용 SOAP XML 요청 형식을 설명 Test 페이지 자동 생성

16 웹서비스 작성방법 Inline Code 형식 Code Behind VS.Net 에서 사용
WebService Language="C#" Class="Math" %> using System.Web.Services; public class Math : WebService { [ WebMethod ] public int Add(int num1, int num2) { return num1+num2; }

17 Demo PocketPC에서 웹 서비스의 사용

18 http://www.microsoft.com http://www.devpia.com
Questions


Download ppt "VS.NET에서의 Web Service Keon Bok Lee Microsoft Korea."

Similar presentations


Ads by Google