Ai9luuKdNTcfQ8UE/d
jjHKZKEQR-
COlLVy0Dn5ZL1RlMHsv+OzJzzvIJFTq3LQKNrzJzsNe</ds:SignatureValue>
<ds:KeyInfo Id="KeyId-17007273">
<wsse:SecurityTokenReference
xm-
lns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-u
tility-1.0.xsd" wsu:Id="STRId-22438818">
<wsse:Reference URI="#CertId-1064304"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token
-profile-1.0#X509v3">
</wsse:Reference>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
<wsu:Timestamp
xm-
lns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-u
tility-1.0.xsd" wsu:Id="id-17984263">
<wsu:Created>2006-06-09T10:57:35Z</wsu:Created>
<wsu:Expires>2006-06-09T11:02:35Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</SOAP-ENV:Header>
Let's take a quick look at the most important elements in case you are matching this against requests
generated by Amazon EC2 supplied libraries, or those of another vendor.
BinarySecurityToken - contains the X.509 certificate in base64 encoded PEM format.
Signature - contains XML digital signature created using the canonicalization, signature algorithm,
and digest method described within.
Timestamp - Any request is only valid to Amazon EC2 within 5 minutes of this value. Used to
prevent replay attacks.
Amazon EC2
Developer Guide
49
Understanding Responses
In response to a request, the Amazon EC2 web service returns an XML data structure that conforms to
an XML schema defined as part of the Amazon EC2 WSDL. The structure of a XML response is
specific to the associated request. In general, the response datatypes with be named according to the
operation performed and whether the datatype is a container (may have children). Examples of
containers include 'groupSet' for security groups and 'instancesSet' for instances. Item elements are
children of containers and their contents vary according to the container's role.
An example response is:
<RunInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2006-06-26">
<reservationId>r-47a5402e</reservationId>
<ownerId>UYY3TLBUXIEON5NQVUUX6OMPWBZIQNFM</ownerId>
<groupSet>
<item>
<groupId>default</groupId>
</item>
</groupSet>
<instancesSet>
<item>
<instanceId>i-2ba64342</instanceId>
<imageId>ami-60a54009</imageId>
<instanceState>
<code>0</code>
<name>pending</name>
</instanceState>
<dnsName></dnsName>
</item>
<item>
<instanceId>i-2bc64242</instanceId>
<imageId>ami-60a54009</imageId>
<instanceState>
<code>0</code>
<name>pending</name>
</instanceState>
<dnsName>domU-13-35-33-00-00-5C.dc2.compute.amazonaws.com</dnsName>
</item>
<item>
<instanceId>i-2be64332</instanceId>
<imageId>ami-60a54009</imageId>
<instanceState>
<code>0</code>
<name>pending</name>
</instanceState>
<dnsName>domU-12-34-28-00-00-5C.dc2.compute.amazonaws.com</dnsName>
</item>
</instancesSet>
</RunInstancesResponse>
Amazon EC2
Developer Guide
50
Previous Page Next Page