Amazon web services Mule https调用,带查询字符串和HTTP POST方法的字符串负载

Amazon web services Mule https调用,带查询字符串和HTTP POST方法的字符串负载,amazon-web-services,mule,esb,middleware,Amazon Web Services,Mule,Esb,Middleware,我是新来的。我尝试使用ESB mule访问https url 对于我的请求,我必须构建URL和发布内容 构建URL- 我已经准备好了值并在java字符串中设置它。这是使用-setInvocationProperty在配置文件中映射的 帖子内容: Post内容是字符串消息 当我运行程序时,我收到错误消息 我们计算的请求签名与您提供的签名不匹配 在我的java文件中,我有几行代码来打印控制台中的查询字符串值和有效负载。 当我在控制台中使用postman chrome扩展名点击包含帖子内容的url时,

我是新来的。我尝试使用ESB mule访问https url

对于我的请求,我必须构建URL和发布内容

构建URL- 我已经准备好了值并在java字符串中设置它。这是使用-setInvocationProperty在配置文件中映射的

帖子内容: Post内容是字符串消息

当我运行程序时,我收到错误消息

我们计算的请求签名与您提供的签名不匹配

在我的java文件中,我有几行代码来打印控制台中的查询字符串值和有效负载。 当我在控制台中使用postman chrome扩展名点击包含帖子内容的url时,我得到了成功的响应

但是使用ESB mule,我无法获得成功的响应。 你能给我点提示来解决这个问题吗

在这里,我粘贴了ESB mule配置文件内容

    <?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:wmq="http://www.mulesoft.org/schema/mule/ee/wmq" xmlns:metadata="http://www.mulesoft.org/schema/mule/metadata" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/ee/wmq http://www.mulesoft.org/schema/mule/ee/wmq/current/mule-wmq-ee.xsd">

<http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8084" basePath="/mule" doc:name="HTTP Listener Configuration"/>
<http:request-config name="HTTP_Request_Configuration" host="mws.amazonservices.com" port="443" doc:name="HTTP Request Configuration" protocol="HTTPS" >
        <http:proxy host="proxy.aaa.com" port="8080" username="John" password="pass"/>
    </http:request-config>
<flow name="secondflowFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/>
        <custom-transformer class="com.mule.URLBuilding.BuildURL" doc:name="Java"/>
        <set-payload value="#[message.payloadAs(java.lang.String)]" doc:name="Set Payload"/>
<http:request config-ref="HTTP_Request_Configuration" method="POST" path="/Products/2011-10-01" doc:name="Amazon_Call_HTTPS">
<http:request-builder>
                <http:query-param paramName="MarketplaceId" value="#[flowVars.strMarketplaceId]"/>
                <http:query-param paramName="ASINList.ASIN.1" value="#[flowVars.strASINListASIN1]"/>
                <http:query-param paramName="AWSAccessKeyId" value="#[flowVars.strAWSAccessKeyId]"/>
                <http:query-param paramName="Action" value="#[flowVars.strAction]"/>
                <http:query-param paramName="SellerId" value="#[flowVars.strSellerId]"/>
                <http:query-param paramName="MWSAuthToken" value="#[flowVars.strMWSAuthToken]"/>
                <http:query-param paramName="SignatureVersion" value="2"/>
                <http:query-param paramName="Timestamp" value="#[flowVars.strtimestamp]"/>
                <http:query-param paramName="Version" value="#[flowVars.strVersion]"/>
                <http:query-param paramName="Signature" value="#[flowVars.strsignature]"/>
                <http:query-param paramName="SignatureMethod" value="#[flowVars.strSignatureMethod]"/>
</http:request-builder>
<http:success-status-code-validator values="0..599"/>
</http:request>
</flow>
</mule>


Hi。你能和邮递员分享你使用的请求以及你在mule上看到的整个错误信息吗?谢谢。我在amazon上点击的url和有效负载是动态构建的。我在postman中用来触发消息的url是[将此消息发送到mule flow后,在Post man中发布消息-
虚拟输入消息
。flow将生成实际有效负载和amazon url。然后它将命中它。这里我得到错误消息,如下所示。
我们计算的请求签名与您提供的签名不匹配。请检查您的AWS秘密访问Key和签名方法。有关详细信息,请参阅服务文档。
点击mule esb URL后,在我的控制台中,我看到了下面的URL和用于点击amazon的POST字符串。[Post字符串是`Post mws.amazonservices.com/Products/2011-10-01 ASINList.ASIN.1=B002GKGL8M&AWSAccessKeyId=xxxx&Action=GetCompetitivePricingForASIN&MWSAuthToken=amzn.mws.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&MarketplaceId=XXXXXXXXXXXXXXXX&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2015-10-30T15%3A19Z&Version=2011-10-01