webMethods 10.15 to Amazon S3 issue

Hi Team,
We are trying to connect from webMethods IS server 10.15 to Amazon S3 bucket. We need to get file but unable to do so as getting signature did not match error.

Product
wM10.15 with customer license

Error:
SignatureDoesNotMatchThe request signature we calculated does not match the signature you provided. Check your key and signing method

Note :
We have used the package provided in the article by
@ Ramakrishna Chandragiri
:Consuming AWS REST APIs from webMethods

Pls let us know if any solution for this .
Thanks
Sunil

Hi Sunil,
I have used sample packaged in my local and tried to put and get object from my AWS bucket and it is working as expected.

Please note that if you need to get object from bucket, then you need to pass same filename in “createCanonical” service and also you need to change “httpRequestMethod” to GET. Also in “pub.client:http” service you need to change method to GET. (both method needs to be same)

If it is having mismatch then you will get signature did not match error.

Thanks,
Yogesh

hi Yogesh,

Thanks for the response. Yes those were taken care , still facing the error.
1)Yes ,as the file name was having special characters hence encoded the same as per the documentation ( excluded “/” in the absolute path) and passed in the canonicalURI of the canonical request. But in the HTTP request , passed the actual file name as part of the URL.

2)The method is being passed as GET in both the places.

3)For the GET , do we need to pass hashed value for blank as ‘X-Amz-Content-Sha256’ in the canonical request?

Let me know if we can have a short call to discuss this ? can send the invite

Thanks
Sunil