AWS GenericHandler implementation for Java SOAP

Sample Code & Libraries>Amazon SQS>AWS GenericHandler implementation for Java SOAP
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.

A Handler implementation to provide AWS authentication in SOAP response headers.


Submitted By: Scott Dixon
AWS Products Used: Amazon SQS
Language(s): Java
License: Apache License 2.0
Created On: May 9, 2008 6:07 AM GMT
Last Updated: September 21, 2008 8:16 PM GMT
If you plan on using the java xml-rpc API's and SOAP to access AWS this implementation of the javax.xml.rpc.handler.GenericHandler abstract class will be a requirement especially if you plan on using code generators like AXIS wsdl2Java. After you've generated your javax.xml.rpc code you'll need to add an instance of this handler class to the handler chain of each AWS port you plan on calling. For example:
AWSSecurityHandler.setKeys(aMyKey,aMySecret); QName aQueueServicePortName = new QName("","QueueServiceHttpsPort"); List aHandlerChain = aRegistry.getHandlerChain(aQueueServicePortName); HandlerInfo aHandlerInfo = new HandlerInfo(); aHandlerInfo.setHandlerClass(AWSSecurityHandler.class); aHandlerChain.add(aHandlerInfo);
©2017, Amazon Web Services, Inc. or its affiliates. All rights reserved.