简体   繁体   English

如何通过Datapower加载亚马逊网站

[英]How to load Amazon website through Datapower

iam trying to load amazon website in datapower using dynamic routing using a xslt stylesheet, the home page of the amazon wedsite is loaded with the datapower hostname but when iam trying to navigate to other category like Best Sellers iam getting an internal error.我正在尝试使用 xslt 样式表使用动态路由在 datapower 中加载亚马逊网站,亚马逊网站的主页加载了 datapower 主机名,但是当我尝试导航到其他类别(如畅销书)时,我遇到了内部错误。

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<env:Fault>
<faultcode>env:Client</faultcode>
<faultstring>URL Not Found (from client)</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>

First I'd like to point out that this use-case might not be the best to handle in XSLT and DataPower.首先,我想指出这个用例可能不是 XSLT 和 DataPower 中处理的最佳选择。 I'd recommend you to use GWS instead!我建议您改为使用 GWS!

My guess is that the URL is "mangled" by DataPower as you might lose query-string parameters so make sure you log out the actual URL used.我的猜测是该 URL 被 DataPower“破坏”了,因为您可能会丢失查询字符串参数,因此请确保注销实际使用的 URL。 Also note that DataPower does not handle redirects by default so if you are sent any 30x response DataPower won't like it.另请注意,默认情况下 DataPower 不处理重定向,因此如果您收到任何30x的响应,DataPower 不会喜欢它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM