gpt4 book ai didi

java - 移动第一 8.0 : Adapter cannot get data after upgrade MFP 7. 1 至 8.0

转载 作者:行者123 更新时间:2023-12-01 09:30:35 27 4
gpt4 key购买 nike

我有一个使用 https://randomuser.me/ 的配置文件适配器API

适配器.xml

<wl:adapter name="comradeAdapter"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wl="http://www.ibm.com/mfp/integration"
xmlns:http="http://www.ibm.com/mfp/integration/http">

<displayName>comradeAdapter</displayName>
<description>comradeAdapter</description>
<connectivity>
<connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
<protocol>https</protocol>
<domain>api.randomuser.me</domain>
<port>443</port>
<connectionTimeoutInMilliseconds>30000</connectionTimeoutInMilliseconds>
<socketTimeoutInMilliseconds>30000</socketTimeoutInMilliseconds>
<maxConcurrentConnectionsPerNode>50</maxConcurrentConnectionsPerNode>
<!-- Following properties used by adapter's key manager for choosing specific certificate from key store
<sslCertificateAlias></sslCertificateAlias>
<sslCertificatePassword></sslCertificatePassword>
-->
</connectionPolicy>
</connectivity>

<procedure name="getFeed"/>
</wl:adapter>

comradeAdapter.js

function getFeed() {
path = '?results=20';

var input = {
method : 'get',
returnedContentType : 'json',
path : path
};


return WL.Server.invokeHttp(input);
}

在我的本地,我可以成功调用数据。但是当我部署到 ibm bluemix 提供的 mobilefirst 控制台服务器 8.0 时,我无法获取 Swagger 上的数据:

请求网址

https://mydemo-tac-ha-server.mybluemix.net/mfp/api/adapters/comradeAdapter/getFeed

Response Body

no content

Response Code

401

Response Headers

{
"x-backside-transport": "FAIL FAIL",
"connection": "Keep-Alive",
"transfer-encoding": "chunked",
"date": "Mon, 12 Sep 2016 10:15:57 GMT",
"www-authenticate": "Bearer",
"x-powered-by": "Servlet/3.1",
"x-global-transaction-id": "3044026435",
"content-type": null
}

请帮我回顾一下并告诉我您对如何从服务器 mfp 8.0 获取数据的想法

最佳答案

要将现有适配器和应用程序迁移到 MobileFirst Foundation 8.0,需要以下 Material :

关于java - 移动第一 8.0 : Adapter cannot get data after upgrade MFP 7. 1 至 8.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39448108/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com