Pre-compiled client library for the Metro web service framework

Sample Code & Libraries>Java>Pre compiled client library for the Metro web service framework
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

This library packages pre-generated web service client API for Amazon EC2 web services for the Metro web-service framework, built by Maven.

Details

Submitted By: kohsukekawaguchiatsun
AWS Products Used: Amazon EC2
Language(s): Java
License: Common Development and Distribution License
Source Control Access: https://jax-ws-commons.dev.java.net/svn/jax-ws-commons/trunk/ec2/
Created On: November 3, 2008 6:01 PM GMT
Last Updated: November 4, 2008 5:12 PM GMT
Download

This library packages pre-generated web service client API for Amazon EC2 web services for Metro .

EC2 SOAP API requires a signed SOAP message, but their WSDL doesn't say it in an machine readable fashion (that is, by using WS-Policy.) Therefore, to talk to this web service with Metro, the onus is on the developer to configure Metro correctly, which is possible but tedious.

This module is developed to hide this manual Metro configuration. This module is also compiled with the fluent API JAXB plugin , to improve the usability.

The API is generated from their 2008-08-08 version of WSDL. See the following example for the feel of this library. For more information about this library, see the project website at https://jax-ws-commons.dev.java.net/ec2/

// create a proxy that talks to the server. This requiers your AWS private key and X509 certificate.
// the resulting port object is multi-thread safe
File privateKey = ...;
File certificate = ...;
AmazonEC2PortType p = EC2.connect(privateKey,certificate);

// at this point you can make any API call
p.describeImages(new DescribeImagesType().withOwnersSet(
                    new DescribeImagesOwnersType().withItem(
                        new DescribeImagesOwnerType().withOwner("amazon")
                    )));
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.