Top Banner
XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA
23

XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

Dec 19, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

XML Web-Services

Sergey Baidachni

MCT, MCSD, MCDBA

Page 2: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

Overview

Introduction How it work? What about Java? Performance Security Global Architecture

Page 3: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

Introduction

Road №80 Unix, Windows or … Formats war XML Web Services

Page 4: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

Road №80 Where in the wall can I make a hole?

Page 5: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

Unix, Windows or …

Conveniences for the clients Conveniences for the administrators Who will think about programmers?

Page 6: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

Formats War

DVD or VHS?

Page 7: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

XML Web Services

What is this? URL-addressable set of functionality exposed

over a network Advantage

HTTP: Stateless and text XML: Standard format Any platform and language

Page 8: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

How does it work?

Overview to XML Web Services Simple Web Services SOAP – a protocol or another document

XML? WSDL – a method of service application XSD – How do I look like? DISCO, UDDI – How am I found? Proxy Class

Page 9: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

Overview to XML Web Services

Service BrokerService Broker

Service ProviderService ProviderService ConsumerService Consumer

Publish Find

Bind

Page 10: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

Simple Web Services

What can be even simpler?public class MyService : System.Web.Services.WebService{

[WebMethod]public string Hello(string Name){

return "Hello "+Name;}

}

Testing in browser Create simple .NET Client

Page 11: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

SOAP – Is it a protocol or another documents XML? SOAP – Universal means of

communication

<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-

instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body>

<Hello xmlns="http://tempuri.org/"> <Name>string</Name>

</Hello> </soap:Body>

</soap:Envelope>

Page 12: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

SOAP – Where?

UDDIUDDI

Any ClientAny Client

SOAP SOAP

SOAP

IISIIS

Web ServiceWeb Service

Page 13: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

WSDL – A method of service usage What’s the content of the service? What parameters are to be transmitted? WSDL Elements

types message portType binding service

Demonstration

Page 14: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

XSD – What do I look like?

Schema Definition Language – description of complex types

Demonstration

<xsd:complexType name="MyType">

<xsd:sequence>

<xsd:element minOccurs="0" maxOccurs="1" name="Name" type="s:string" />

</xsd:sequence>

</xsd:complexType>

Page 15: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

DISCO, UDDI – How am I found? Static discovery Dynamic discovery Locating disco.exe [options] url Programmatic discovery

System.Web.Services.Discovery DiscoveryDocument DiscoveryReferenceCollection DiscoveryClientProtocol DiscoveryClientResult

Page 16: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

DISCO, UDDI – How am I found? What is UDDI? Benefits Information provided by UDDI Programming UDDI

(Microsoft.UDDI.dll) Problem with UDDI uddi.microsoft.com

Page 17: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

Proxy Class Proxies and WSDL Generating Proxies Using Wsdl.exe

Add Web Reference Explicit call

Configuring Proxies

Web Service ConsumerWeb Service ConsumerWeb ServiceWeb Service

Page 18: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

What about Java?

How to install IIS on Unix? Sun Java SDK, Tomcat, AXIS Java и .NET – impossible? It works for real!

Page 19: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

Performance Testing

What is Application Center Test? Record simple scenario Custom scenario

CreateConnection CreateRequest Send

How generate SOAP in ACT?

Page 20: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

Security

Threats definition– model STRIDE Selection of techniques Selection of technologies Best Practices

Page 21: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

STRIDE – Threats modulation Spoofing identity Tampering with data Repudiation Information disclosure Denial of services Elevation of privilege

Page 22: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

Best Practices

Do not use an administrator’s accounting record

Store secret data in a safe place Do not use lines concatenation when making

queries

Page 23: XML Web-Services Sergey Baidachni MCT, MCSD, MCDBA.

Global Architecture

It is always lacking, or maybe there are problems of Web services?

WS-* Specifications

WS-Routing

WS-Referral

WS-Inspection

WS-Security

WS-Attachments

WS-Coordination

WS-Transaction

WS-Policy

WS-Trust

WS-SecureConversation

WS-SecurePolicy