Klaus Schild, © 2006 4
!
"
#
$$%&'($)*( $ +
,#
-.%/
$$%&%- $
! -.%&0
1
(2
34&5 !
1 (2
<definitions xmlns="
http
http
://
://
schemas.xmlsoap.org
schemas.xmlsoap.org
/
/
wsdl/"
wsdl
xmlns:soap="
http
http
://
://
schemas.xmlsoap.org
schemas.xmlsoap.org
/
/
wsdl
wsdl
/
/
soap/">
soap
</definitions>
34"
#"
-.%"
#"
#
Klaus Schild, © 2006 5
!!"# !
$
+
(2 &.
5/ !
6 1 #8 6 $
9
:
%1
;
+
(2 &.
8 &*
6 1 #8
5 !6
. <
7 = "
.
6
$$%&'($
.
6
% 6
>*4?18
*
@ 4
Klaus Schild, © 2006 6
%& $
!
'
("
)
http://webservices.amazon.
de/onca/xml
de
?
Service=
Service
AWSECommerceService
AWSECommerceService
&
AWSAccessKeyId=...
AWSAccessKeyId
&
Operation=
Operation
ItemSearch
ItemSearch
&
SearchIndex=
SearchIndex
Books
Books
&
Title=
Title
Harry+Potter
Harry+Potter
Klaus Schild, © 2006 7
Klaus Schild, © 2006 8
-Klaus Schild, © 2006 9
2 $
Klaus Schild, © 2006 10
3
+
.
4
55555
http://webservices.amazon.
de/onca/xml
de
?
Service=
Service
AWSECommerceService
AWSECommerceService
&
AWSAccessKeyId=...
AWSAccessKeyId
&
Operation=
Operation
ItemLookup
ItemLookup
&
ItemId=
ItemId
3551566666
3551566666
&
ResponseGroup=
ResponseGroup
Reviews
Reviews
&ReviewPage=10
Klaus Schild, © 2006 11
+
!
+
!
#
#
*( $
*( $
&
&
. ! ?
. ! ?
8
)
8
,BBB+
C8
&* 1
1
8
/
>*<
8
8
5 A
1
! *
D
&* 1
! *
1
8!
!/
>*< 8
8
8
Klaus Schild, © 2006 12
+
!
$6
2
/
http://webservices.amazon.
de/onca/xml
de
?
Service=
Service
AWSECommerceService
AWSECommerceService
&
AWSAccessKeyId=...
AWSAccessKeyId
&
Operation=
Operation
ItemLookup
ItemLookup
&
ItemId=
ItemId
3551566666
3551566666
&
ResponseGroup=
ResponseGroup
Reviews
Reviews
&ReviewPage=10
8 &*
= "
D
&* 1
D
>*4
Klaus Schild, © 2006 13
7
%& $
!
'
("
)
Klaus Schild, © 2006 14
-Klaus Schild, © 2006 15
-Klaus Schild, © 2006 16
Klaus Schild, © 2006 17
-Klaus Schild, © 2006 18
-Klaus Schild, © 2006 19
Klaus Schild, © 2006 20
Klaus Schild, © 2006 21
Klaus Schild, © 2006 22
Klaus Schild, © 2006 23
2 $
Klaus Schild, © 2006 24
2 $
! ?1 16 6
-.%"
#"
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <SOAP-ENV:FaultFault><faultcodefaultcode>SOAP-ENV:MustUnderstand</faultcodefaultcode> <faultstringfaultstring>SOAP Must Understand Error</faultstringfaultstring> </SOAP-ENV:FaultFault>
</SOAP-ENV:Body> </SOAP-ENV:Envelope>
Klaus Schild, © 2006 25
+
!
$6
2
/
6
8 A ! 8 86 *( $&'
8
( 8A ? )>*4+ D
http://soap.amazon.com/onca/soap?Service=AWSECommerceService8 &*
= "
D
&* 1
F
>*4
8 A ! * &'
8
Klaus Schild, © 2006 26
5
Klaus Schild, © 2006 27
0 < 0,%
$
.
"
#
! %1 1A# 6 1 #
8
8
,#
! $$%&'($&5 8
6 ,
%1
@ 4)
8
! -.%+
/ ?
Klaus Schild, © 2006 28
;
.
?
! 6 8
7 !
&
8?
/
! 6 8
16
!
&
: G8
! 6 8
6
%1 66
1 8
!
Klaus Schild, © 2006 29
= :
$ "
<service name="AWSECommerceService"> …
<port name="AWSECommerceServicePortDEAWSECommerceServicePortDE"
binding="tns:AWSECommerceServiceBinding"> <soap:address location="http://soap.amazon.dede/…"/> </port>
Klaus Schild, © 2006 30
Klaus Schild, © 2006 31
0
:
$ %
<binding name="AWSECommerceServiceRestBindingAWSECommerceServiceRestBinding"
type="tns:AWSECommerceServicePortTypetns:AWSECommerceServicePortType"> <
<http:bindinghttp:binding verb="GETverb="GET"/>"/> … </binding>
8
8 :A&.
!
1 8 5 8
7 6
* !
H
H
! A
! A
8
8
DI
DI
'($
'($
I
I
JK
JK
6
8 5 8
1!
8
Klaus Schild, © 2006 32
0
:
$ %
<binding name="AWSECommerceServiceRestBinding" type="tns:AWSECommerceServicePortType"> <http:binding verb="GET"/> … <operation name="ItemSearch"> <<http:operationhttp:operation location="xmllocation="xml"/>"/> <input> < <http:urlEncodedhttp:urlEncoded/>/> </input> <output> <mime:mimeXml/> </output> </operation> … </binding>
/xml
8
( 8A ?
!
?part1=value&…
8
!
!
Endpunkt/xml?part1=value&…
Klaus Schild, © 2006 33
%
9
http://webservices.amazon.com/onca/xml
?Service=AWSECommerceService
&AWSAccessKeyId=...
&Operation=ItemSearch
&SearchIndex=Books
&Title=Harry+Potter
<http:operation location="xml"/>
( 8A ?
<http:urlEncoded/>
Klaus Schild, © 2006 34
$
-;
http://webservices.amazon.com/onca/xml/AWSECS/
ItemSearch
ItemSearch
?Service=AWSECommerceService
&AWSAccessKeyId=...
&Operation=ItemSearch
&SearchIndex=Books
&Title=Harry+Potter
<http:operation location="
ItemSearch"/>
ItemSearch
( 8A ?
Klaus Schild, © 2006 35
0
.
<binding name="AWSECommerceServiceRestBinding" type="tns:AWSECommerceServicePortType"> <http:binding verb="GET"/> … <operation name="ItemSearch"> <http:operation location="xml"/> <input> <http:urlEncoded/> </input> <output> < <mime:mimeXmlmime:mimeXml/>/> </output> </operation> … </binding>.
1
@ 4L !
-.%
Klaus Schild, © 2006 36
Klaus Schild, © 2006 37
*
$
"
<port name="AWSECommerceServiceRestPort"
binding="tns:AWSECommerceServiceRestBindingtns:AWSECommerceServiceRestBinding">
<http:address location="httphttp://://webservices.amazon.comwebservices.amazon.com//oncaonca"/> </port>
<port name="AWSECommerceServiceRestPortDE"
binding="tns:AWSECommerceServiceRestBindingtns:AWSECommerceServiceRestBinding"> <http:address location="httphttp://://webservices.amazon.dewebservices.amazon.de//oncaonca"/> </port>
Klaus Schild, © 2006 38
?$ 91
@A ; 99B C
<binding name="AWSECommerceServiceRestBinding" type="tns:AWSECommerceServicePortType"> <http:binding verb="GET"/> … <operation name="ItemSearch"> <http:operation location="xml"/> <input> < <http:urlEncodedhttp:urlEncoded/>/> </input> <output> <mime:mimeXml/> </output> </operation> … </binding>?part1=value&…
8
!
!
part1, partn
C
part
M7 6 8
?
(
! ! )6
+ 1
ItemSearch
Klaus Schild, © 2006 39
9
D
(/
<message name="
ItemSearchRequestMsg">
ItemSearchRequestMsg
<part name="
body
body
" element="tns:ItemSearch"/>
</message>
…
<portType name="AWSECommerceServicePortType">
<operation name="
ItemSearch">
ItemSearch
<
<
input
input
message="tns:ItemSearchRequestMsg
message="tns:ItemSearchRequestMsg
"/>
"/>
<output message="tns:ItemSearchResponseMsg"/>
</operation>
…
Klaus Schild, © 2006 40
E
6
$
$/
part
M7 6 8 (
! ! 1
ItemSearch
18:
>*4D
http://webservices.amazon.com/onca/xml?
body
body
=value
1
#5# 1
!
http://webservices.amazon.com/onca/xml
?Service=AWSECommerceService
&AWSAccessKeyId=...
&Operation=ItemSearch
&SearchIndex=Books
&Title=Harry+Potter
Klaus Schild, © 2006 41
*
$
$
"
/
<message name="ItemSearchRequestMsgItemSearchRequestMsg">
<part name="bodybody" element="tns:ItemSearchtns:ItemSearch"/> </message>
http://webservices.amazon.com/onca/xml?body=
value
value
Klaus Schild, © 2006 42
ItemSearch
<xs:element name="ItemSearchItemSearch"> <xs:complexType>
<xs:sequence>
<xs:element name="MarketplaceDomain" type="xs:string" minOccurs="0"/> <xs:element name="AWSAccessKeyId" type="xs:string" minOccurs="0"/> <xs:element name="SubscriptionId" type="xs:string" minOccurs="0"/>
…
</xs:sequence> </xs:complexType> </xs:element>
http://webservices.amazon.com/onca/xml?body=
value
value
Klaus Schild, © 2006 43
0 *
$
"
/
<message name="ItemSearchRequestMsgItemSearchRequestMsg">
<part name="bodybody" element="tns:ItemSearchtns:ItemSearch"/> </message>
<xs:element name="ItemSearchItemSearch"> <xs:complexType>
<xs:sequence>
<xs:element name="MarketplaceDomain" type="xs:string" minOccurs="0"/> <xs:element name="AWSAccessKeyId" type="xs:string" minOccurs="0"/> <xs:element name="SubscriptionId" type="xs:string" minOccurs="0"/>
… </xs:sequence> </xs:complexType> </xs:element>
(
part
/
% 6
Klaus Schild, © 2006 44
=.
>
$/
<message name="ItemSearchRequestMsgItemSearchRequestMsg">
<part name="bodybody" element="tns:ItemSearchtns:ItemSearch"/> </message>
<message name="ItemSearchRequestMsgItemSearchRequestMsg">
<part name="ServiceService" type="tns:AWSECS-String"/> <part name="OperationOperation" type="tns:ItemSearch-String"/> <part name="MarketplaceDomainMarketplaceDomain" type="xs:string"/> <part name="AWSAccessKeyIdAWSAccessKeyId" type="xs:string"/> <part name="SubscriptionIdSubscriptionId" type="xs:string" />
… </message>
E
1!
8&
( 6
Klaus Schild, © 2006 45
0
1
$
$
/
http://webservices.amazon.com/onca/xml/
?
Service
Service
=AWSECommerceService
=
&
Operation
Operation
=ItemSearch
=ItemSearch
&
MarketplaceDomain
MarketplaceDomain
=
=
string
string
&
AWSAccessKeyId=string
AWSAccessKeyId
&
SubscriptionId=string
SubscriptionId
Klaus Schild, © 2006 46
*
$
.
"
/
<message name="ItemSearchRequestMsgItemSearchRequestMsg">
<part name="ServiceService" type="tns:AWSECS-String"/> <part name="OperationOperation" type="tns:ItemSearch-String"/> <part name="MarketplaceDomainMarketplaceDomain" type="xs:string"/> <part name="AWSAccessKeyIdAWSAccessKeyId" type="xs:string"/> <part name="SubscriptionIdSubscriptionId" type="xs:string" />
… </message>
http://webservices.amazon.com/onca/xml/
?
Service
Service
=AWSECommerceService
=
&
Operation
Operation
=ItemSearch
=ItemSearch
&
MarketplaceDomain
MarketplaceDomain
=
=
string
string
&
AWSAccessKeyId=string
AWSAccessKeyId
&
SubscriptionId=string
SubscriptionId
…
8
% 6
#5# 1
Klaus Schild, © 2006 47
<
part
9
$ C
.
1 ' !
!E
! !
!'
8L
6 8
5 8
8
(2 &
34
!
!
8E
<message name="ItemSearchRequestMsgItemSearchRequestMsg">
<part name="ServiceService" type="tns:AWSECS-String"/> <part name="OperationOperation" type="tns:ItemSearch-String"/> <part name="MarketplaceDomainMarketplaceDomain" type="xs:string"/> <part name="AWSAccessKeyIdAWSAccessKeyId" type="xs:string"/> <part name="SubscriptionIdSubscriptionId" type="xs:string" />
… </message>
Klaus Schild, © 2006 48
-Klaus Schild, © 2006 49
F
-34
"
#
11A
1
1A1 :A 1
8
#
,#
11A
1
1
8
1A1 :A #
=#
1
8
11A
1
1A1 :A #
N#
1
8
1A1 :A 11A
1 #
#
1A1 :A 11A
1
1
8
#
Klaus Schild, © 2006 50
< 0,
;
Ports
Ports
Bindings
Bindings
PortTypes
PortTypes
Operations
Operations
SOAP/HTTP POST SOAP/SMTP GoogleSearchPort doGoogleSearch doSpellingSuggestion doGetCachedPageService
Service
http://… http://… mailto: HTML/HTTP GET http://…Klaus Schild, © 2006 51
7F
-$! 1 :A 1
34
6
1 A 6
"
#
%
!&
L1
&
A1 L1 :LA8 #
,#
71 :LA
!&
L1 &
:L1
#
=#
8&
L 8L
L
&
8#
N#
1
L1 :L1 &
:L O
&
A1 #
#
71
1 L O
&
A1 L1
&
A1 L1 &
Klaus Schild, © 2006 52
G
;
G
;
<operation name="…"> <input message="…"/> </operation>(
)1
:+
.
&.
1 ) O
&
A1 +
5
! !
) 1
1 +
5
! !
&.
1
) 1
&
A1 +
<operation name="…"> <input message="…"/> <output message="…"/> </operation> <operation name="…"> <output message="…"/> </operation> <operation name="…"> <output message="…"/> <input message="…"/> </operation>Klaus Schild, © 2006 53
3
Klaus Schild, © 2006 54
3
3
-
1
!
-
1
!
" P
6 "
,BB
9 ;
$
< 16 ?
88 01
88 01
!
8
1
8 01
8
8
?
8
8 #
!
8
6 !
88
8 #
!
! 8 01
! A
8 1
?
L8
?
Q 8
1 !6
?
Klaus Schild, © 2006 55
3
3
?
!
RB
?
!
RB
,N
A 2!1
),N% ?
6 +
S
/! !
)
% ?
6 +
5 A
5 A
A
A
2!1
2!1
Q!
! 8
L8
8
1
8
.
A
! 66
?1 ? .
1 E
5 A
5 A
/
/
! !
! !
$:A !
6
6 @ 4218
.
1 ?
LQ 8
L(
8 218 #
-8 @ 4<
1
!6 L@ 4$.
#
Klaus Schild, © 2006 56
E
$
4,0 41 3,7 49,5 3,3 54 3,0 58,5 2,7 63 2,3 67,5 2,0 72 1,7 76,5 1.3 81 1,0 85,5 Note PunkteKlaus Schild, © 2006 57
3
T .
6
< 16 1
&
8
3
!
& .
1
3
!18 (
!6
!
&
)
&+5/ ! L% A
#
&
8:
E
&
! 88 %/
L8/
8!1!!
! #
&
18
C8
* !LC8
%
E
&
8
8
!.
6
11
6
E
Klaus Schild, © 2006 58