84
Ex4. An Simple WCF Example Ex5. WCF REST Service Yoon Joong Kim Department of computer Engineering Hanbat National University

Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Embed Size (px)

Citation preview

Page 1: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Ex4. An Simple WCF Example

Ex5. WCF REST Service

Yoon Joong Kim Department of computer Engineering

Hanbat National University

Page 2: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

Contents

Ex1. An simple Web Services - HelloWorld

Ex2. An Web Service Example - Convert Centigrade

Ex3. An Web Service Example - using Database

Ex4. An WCF Example - 4.1 WCF Service (default) and Client

- 4.1.1 Serivce : GetData(int)

- 4.2.1 Client

- 4.2 WCF Service and Client

- 4.2.1 Service : SayHellow()

- 4.2.2 Client

- 4.3 WCF Service and Client In DB

- 4.2.1 Service : getDirectorySql(), insertRecord()

- 4.2.2 Client

Ex5. WCF REST Service

- 5.1 REST Service : xmlData(string), jsonData(string), getPhoneBook(string)

- 5.2 REST Client

- 5.3 How to use Fiddler to check the message content

Page 2

Page 3: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

Ex.4 WCF

4.1 WCF Service

Application(Default) and Client

- 4.1.1 Service : GetData(int)

- 4.1.2 Client : console Application

-

WCF Service and Console Application

Web Service - GetData(int)

- SayHello()

Request :

SayHello()

GetData()

result string

SayHello()

Result string

WCF Service WCF Client

Page 4: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

Ex.4 WCF

Page 4

Web Service Explorer

(WCFHelloService) Client Solution Explorer

(WCFHelloClient : Console Application)

Page 5: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

Experimental environment

OS : Window 7

Framework : .NET 4.0

Tool : Visual Studio 2010

Language : C#

Browser : Internet Explorer 9,8

Page 5

Page 6: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.1 WCF Service Application(Default) Generate WCF Service Application

Page 7: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.1 WCF Service Application(Default) Generate WCF Service Application(cont.)

Page 8: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.1 WCF Service Application(Default) modify of file name in the WCF Service application

Page 9: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.1 WCF Service Application(Default) modify of service class name in the code

Page 10: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.1 WCF Service Application(Default) modify of service class name in the code(cont.)

Page 11: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.1 WCF Service Application(Default) Execute the Service Page

Page 12: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.1 WCF Service Application(Default) List of WCF Service

Page 13: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.2 WCF Service(Default) Client Generation an WCF Service Client

Page 14: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.2 WCF Service(Default) Client Add Service Reference

Page 15: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.2 WCF Service(Default) Client Add Service Reference(cont.)

Page 16: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.2 WCF Service(Default) Client Add Service Reference(cont.)

Page 17: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.2 WCF Service(Default) Client Add Service Reference(cont.)

Page 17

Page 18: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.2 WCF Service(Default) Client Add Service Reference(cont.)

Page 18

Page 19: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.2 WCF Service(Default) Client Add code

Page 20: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.1.2 WCF Service(Default) Client Test of the WCF Service Client

Page 21: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

Ex.4 WCF

4.2 WCF Service and Client - 4.2.1 Service : SayHello()

- 4.2.2 Client : Console Application

-

WCF Service and Console Application

Web Service - GetData(int)

- SayHello()

Request :

SayHello()

GetData()

result string

SayHello()

Result string

WCF Service WCF Client

Page 22: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.2.1 WCF Service Add OperationContract

Page 23: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.2.1 WCF Service implementation of the OperationContract in HelloService.svc.cs

Page 24: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.2.2 WCF Service Client Updat Service Reference in the WCF Service Client

Page 25: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.2.2 WCF Service Client Updat Service Reference in the WCF Service Client(cont.)

Page 26: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.2.2 WCF Service Client Add a code in the WCF Service Client

Page 27: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.2.2 WCF Service Client Add a code in the WCF Service Client(cont.)

Page 28: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.2.2 WCF Service Client Test of WCF Service client

Page 29: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

Ex.4.3 WCF

4.3 WCF Service and Client using

Database - 4.3.1 Service : getDirectorySql(),

insertRecord()

- 4.3.2 Client : WindowForm Application

-

WCF Service and WindowForm Application

Web Service - getDirectorySql

- insertRecord

Function of

view list

Function of

insert record

Web Server Client

Page 30: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database

Page 30

Web Service Explorer (WcfDbService)

Client Solution Explorer (WcfDbClient : Window Application)

Page 31: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database Generation of an WCF Service Application

Page 31

Page 32: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database modify the service file name

Page 32

Page 33: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database modify the service file name(cont.)

Page 33

Page 34: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database modify the service class name

Page 34

Page 35: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database modify the service class name

Page 35

Page 36: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database Add OperationContract

Page 36

Page 37: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database implementation of OperationContract

Page 37

Page 38: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database implementation of OperationContract(cont.)

Page 38

Page 39: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database Build and Run

Page 39

Control + F5

Page 40: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database Build and Run(cont.)

Page 40

Double click

Page 41: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database Build and Run(cont.)

Page 41

Page 42: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database Build and Run(cont.)

Page 42

Page 43: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database Build and Run(cont.)

Page 43

Page 44: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database Execution of the WCF Service

Page 44

Page 45: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.1 WCF Service using Database Test of the WCF Service

Page 45

Page 46: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.2 WCF Service Client generation of WCF Service Client project

Page 46

Page 47: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.2 WCF Service Client generation of WCF Service Client project(cont.)

Page 47

Page 48: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.2 WCF Service Client Add Service Reference

Page 48

Page 49: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.2 WCF Service Client Add Service Reference(cont.)

Page 49

Page 50: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.2 WCF Service Client Add Service Reference(cont.)

Page 50

Page 51: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.2 WCF Service Client Design of Client Form

Page 51

Page 52: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.2 WCF Service Client Add a code in Form1.cs

Page 52

Page 53: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

4.3.2 WCF Service Client Test of WCF Service Client

Page 53

Page 54: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5. WCF REST Service

WCF REST Service

5.1 WCF REST Service

- xmlData(string)

- JsonData(string)

- getPhoneBook(string)

WCF REST Service Client

5.2 WCF REST Service Client

WindowForm

Web Service - xmlData

- JsonData

- getPhoneBook

Response : “You requested producted abc”

Request : /xml/abc

Response : DataSet

Request : /phoneBook/8787

Function of

receive the xmlData

Function of

receive the JsonData

Web Server Client

Function of

receive the DataSet

Response : “You requested product def”

Request : /Json/def

Page 55: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5. WCF REST Service

Page 56: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5. WCF REST Service

Page 56

WCF Service Explorer (RESTService)

Client Solution Explorer (RestServiceClient/WindorForm)

Page 57: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.1 WCF REST Service Project Generation

Page 57

Page 58: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.1 WCF REST Service modify the service page name

Page 58

Page 59: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.1 WCF REST Service modify the service class name

Page 59

Page 60: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.1 WCF REST Service modify the service class name

Page 60

Page 61: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.1 WCF REST Service Add operations (xmlData, JsonData)for the RrestService

Page 61

REST path for the service operation

Page 62: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.1 WCF REST Service Implementaion of operations(xmlData, JsonData)

Page 62

Page 63: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.1 WCF REST Service Test of the service

Page 63

Page 64: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.1 WCF REST Service Test of service operation “xmlData(123)”

Page 64

REST Style path

“XMLDataRespone” = Operation name + “Response”

“XMLDataResult” = Operation name + “Result”

Page 65: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

Page 65

5.1 WCF REST Service Test of service operation “JsonData(123)”

“JSONDataResult” = Operation name + “Result”

Page 66: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.1 WCF REST Service Web.config

Page 66

Insert endpoint description

Page 67: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.1 WCF REST Service Add a service operation getPhoneRecord(string phoneNumber)

Page 67

Page 68: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.1 WCF REST Service Implementation of operation getPhoneRecord

Page 68

Page 69: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.1 WCF REST Service Test of operation GetPhoneBook

Page 69

the URI of the Operation getPhoneRecord

Page 70: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.2 WCF REST Service Client window From project generation

Page 70

Page 71: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.2 WCF REST Service Client Client Form design

Page 71

Page 72: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.2 WCF REST Service Client How to call the service operation of xmlData

Page 72

Page 73: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.2 WCF REST Service Client How to call the service operation of JsonData

Page 73

Page 74: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.2 WCF REST Service Client How to call the service operation of GetPhoneBook

Page 74

Page 75: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.2 WCF REST Service Client Execution of the REST Client

Page 75

Page 76: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

Execution of the REST Client

Page 76

Page 77: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.2 WCF REST Service Client Execution of the REST Client

Page 77

Page 78: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.3 Fiddler tool

Page 78

Page 79: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.3 Fiddler tool(cont.)

Page 79

Page 80: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.3 Fiddler tool(cont.)

Page 80

Double click

Page 81: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.3 Fiddler tool(cont.)

Page 81

Page 82: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.3 Fiddler tool(cont.)

Page 82

Double click

Page 83: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim

5.3 Fiddler tool(cont.)

Page 83

Page 84: Ex4. An Simple WCF Example Ex5. WCF REST Service joong Kim Contents Ex1. An simple Web Services - HelloWorld Ex2. An Web Service Example - Convert Centigrade Ex3. An Web Service Example

Yoon joong Kim Page 84

www.wins.or.kr

E-Mail: [email protected]

Conditions