WSDL - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

WSDL

Description:

Specifies port address(es) of each binding. WSDL terminology used for describing Web services. ... soap:binding style='document' port='http://schemas.xmlsoap. ... – PowerPoint PPT presentation

Number of Views:46
Avg rating:3.0/5.0
Slides: 20
Provided by: joona2
Category:
Tags: wsdl | style

less

Transcript and Presenter's Notes

Title: WSDL


1
WSDL
  • Enn Õunapuu
  • Tallinna Tehnikaülikool
  • enn_at_cc.ttu.ee
  • 372 050 97720

2
(No Transcript)
3
(No Transcript)
4
(No Transcript)
5
(No Transcript)
6
(No Transcript)
7
(No Transcript)
8
Figure 1. A client invoking a Web service.
http//www.w3.org/TR/wsdl12/
9
WSDL Document Structure                     
Abstract Definitions                            
     TypesMachine- and language-independent type
definitions.                                
MessagesContains function parameters (inputs
separate from outputs) or document descriptions.
                               
PortTypesRefers to message definitions in
Messages section to describe function signatures
(operation name, input parameters, output
pameters).                      Concrete
Descriptions                                
Bindings Specifies binding(s) of each operation
in the PortTypes section.                       
          Services Specifies port address(es) of
each binding.
10
WSDL terminology used for describing Web
services.
11
(No Transcript)
12
ltmessage name"getTermRequest"gt ltpart name"term"
type"xsstring"/gt lt/messagegt ltmessage
name"getTermResponse"gt ltpart name"value"
type"xsstring"/gt lt/messagegt ltportType
name"glossaryTerms"gtltoperation
name"getTerm"gtltinput message"getTermRequest"/gt
ltoutput message"getTermResponse"/gtlt/operationgtlt
/portTypegt
13
ltbinding type"glossaryTerms" name"b1"gt
ltsoapbinding style"document" transport"http//s
chemas.xmlsoap.org/soap/http" /gt ltoperationgt
ltsoapoperation soapAction"http//example.com/get
Term"/gt ltinputgt ltsoapbody use"literal"/gt
lt/inputgt ltoutputgt ltsoapbody use"literal"/gt
lt/outputgt lt/operationgt lt/bindinggt
14
Myagent WSDL
  • ltdefinitions name"MyAgent" targetNamespace"http
    //tempuri.org/wsdl/" xmlnstns"http//tempuri.o
    rg/wsdl/" xmlnsxsd1"http//tempuri.org/xsd/" xml
    nsxsd"http//www.w3.org/2000/10/XMLSchema" xmlns
    soap"http//schemas.xmlsoap.org/wsdl/soap/" xmln
    s"http//schemas.xmlsoap.org/wsdl/"gt

15
lttypesgt ltschema version"1.0" xmlns"http//www
.w3.org/2000/10/XMLSchema" targetNamespace"http
//tempuri.org/xsd/" elementFormDefault"qualifi
ed"gt ltelement name"GetComputer"gt ltcomplexType
gt ltallgt ltelement name"SpeedProcessor"
type"int"/gt ltelement name"DiskSize"
type"int"/gt ltelement name"RAMSize"
type"int"/gt ltelement name"MonitorSize"
type"int"/gt ltelement name"Price"
type"int"/gt ltelement name"OperatingSystem"
type"int"/gt lt/allgt
lt/complexTypegt lt/elementgt
16
ltelement name"GetComputerResponse"gt ltcomplexT
ypegt ltsequencegt ltelement
name"result"gt ltcomplexTypegt ltsequencegt
ltelement name"SpeedProcessor"
type"int"/gt ltelement name"DiskSize"
type"int"/gt ltelement name"RAMSize"
type"int"/gt ltelement name"MonitorSize"
type"int"/gt ltelement name"Price"
type"int"/gt ltelement name"OperatingSystem"
type"int"/gt lt/sequencegt lt/complexTypegt
lt/elementgtlt/sequencegtlt/complexTypegtlt/elementgt lt/s
chemagt lt/typesgt
17
ltmessage name"GetComputerRequest"gt ltpart
name"body" element"xsd1GetComputer"/gt lt/message
gt ltmessage name"GetComputerResponse"gt ltpart
name"body" element"xsd1GetComputerResponse"/gt lt
/messagegt ltportType name"MyAgentPortTypegt ltoper
ation name"GetComputer"gt ltinput
message"tnsGetComputerRequest"/gt ltoutput
essage"tnsGetComputerResponse"/gt lt/operationgt lt
/portTypegt
18
ltbinding name"MyAgentBinding" type"tnsMyAgentPo
rtType"gt ltsoapbinding style"document"
port"http//schemas.xmlsoap.org/soap/http"/gt lto
peration name"GetComputer"gt ltsoapoperation
soapAction"http//tempuri.org/GetComputer"/gt lti
nputgt ltsoapbody use"literal"/gt lt/inputgt ltout
putgt ltsoapbody use"literal"/gt lt/outputgt lt/ope
rationgt lt/bindinggt
19
ltservice name"MyAgentService"gt ltdocumentationgtF
ind the good computer lt/documentationgt ltport
name"MyAgentPort" binding"tnsMyAgentBinding"gt
ltsoapaddress location'http//localhost/ludovic3
/Listener.asp'/gt lt/portgt lt/servicegt lt/definiti
onsgt
Write a Comment
User Comments (0)
About PowerShow.com