如何为物理设备配置http适配器

how to configure http adapter for physic device

美好的日子 请在一个需要 http 适配器的项目中使用 mobilefirst。 我的适配器在 运行 进入 mobilefirst 服务器时给出了一个很好的答案,但是当我创建一个 android 环境并在我的物理 android 设备中保留 运行 同一个项目时(我的androidphone),这个return错误。 我尝试在没有回复的情况下获得解决方案,请帮助我谢谢。

这是适配器 xml 文件:

<wl:adapter name="RSSFeed"
 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>RSSFeed</displayName>
 <description>RSSFeed</description>
 <connectivity>
  <connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
   <protocol>http</protocol>
   <domain>www.ibm.com</domain>
   <port>80</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="getFeeds"/>
<procedure name="getFeedsFiltered"/>
</wl:adapter>

这是错误信息:

enter image description here

这是完整的错误消息: enter image description here

如果您提供以下基本信息会更容易:

  1. 错误信息...
  2. 适配器XML文件

由于您没有提供任何信息,这里有一些您应该检查的基本调试项目:

  1. 确保在适配器 XML 中,您在 host 属性 中指向适配器应连接到的服务器的实际 IP 地址。即 不是 localhost
  2. 确保设备和 MobileFirst Server 连接到同一网络
  3. 一旦适配器请求失败,打印您在客户端收到的错误,并采取行动:http://www.ibm.com/developerworks/websphere/techjournal/1212_paris/1212_paris.html