Skip to content Skip to sidebar Skip to footer

Aws Iam Create New User Returning Html Instead Of Xml Response Android

I am creating a new user through android app programatically using amazon web-service. here is my code(asynctask): private class S3RegisterNewUser extends AsyncTask

Solution 1:

Update

The AWS SDK for Android seems to be a bit lacking on the getting started front indeed - it seems to be designed fairly similar to the AWS SDK for Java though (naturally):

There, every AWS service has its own service specific client, which would be AmazonIdentityManagementClient for your use case. Given it is absent, it seems the AWS SDK for Android doesn't support IAM directly, so you'd need to resort to the IAM Query API indeed (as mentioned on that page), i.e. you'll need to implement the Signing [of] AWS API Requests yourself, unfortunately.


Initial Answer

AWS services in general and Amazon IAM in particular require the Signing [of] AWS API Requests, i.e. you cannot simply call an API endpoint, rather you need your AWS Security Credentials to generate a Digital Signature for each request before submitting it to the API.

The request signing process is a bit complex though and also varies between AWS services, so I'd highly recommend to simply use the AWS SDK for Android instead, which does all the heavy lifting for you - this also applies for any other complexities in dealing with AWS btw., so even if you can conceptually, I'd actually never use AWS without a SDK if there isn't any specific reason to do so (e.g. being on a platform not supported by one of the many offical AWS SDKs yet).

Post a Comment for "Aws Iam Create New User Returning Html Instead Of Xml Response Android"