我无法在应用程序预览模式下从 cordova MFP 应用程序调用适配器。如果我在 Swagger 中调用它可以正常工作,但不能使用 App。用于调用适配器的 Cordova 代码。
var resourceRequest = new WLResourceRequest(
"/adapters/Example/unprotected",
WLResourceRequest.GET
);
resourceRequest.send().then(app.onSuccess,app.onFailure);
it's always calling the failure method.
Adapter code.
<displayName>Example</displayName>
<description>Example</description>
<connectivity>
<connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
<protocol>https</protocol>
<domain>mobilefirstplatform.ibmcloud.com</domain>
<port>443</port>
<connectionTimeoutInMilliseconds>30000</connectionTimeoutInMilliseconds>
<socketTimeoutInMilliseconds>30000</socketTimeoutInMilliseconds>
<maxConcurrentConnectionsPerNode>50</maxConcurrentConnectionsPerNode>
</connectionPolicy>
</connectivity>
<procedure name="getFeed"/>
<procedure name="unprotected" secured="false"/>