我有基于intranet的domino 9x (运行windows)服务器位于防火墙和代理后面。为了通过服务器端java发出http/s请求,我设置了http/s.proxyHost和其他jvm设置,以允许我的java.net调用。在通过java.net类进行简单获取时工作正常,但当我尝试使用ibmsbt ProfileService调用时(代码在我们的网络之外运行得很好)时会失败。有谁能告诉我,在哪里配置代理设置(主机、端口、用户名、密码)可能是一个显而易见的答案?我看到了一些对manaaged bean.xml文件的引用,但它似乎与某些调试代理相关,而且我所知道的用户名/密码没有任何设置。
faces中的SmartCloudFilesEndpoint配置- config:
<managed-bean>
<managed-bean-name>smartcloud</managed-bean-name>
<managed-bean-class>com.ibm.xsp.extlib.sbt.services.client.endpoints.SmartCloudFilesEndpoint
</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
<!-- Endpoint URL -->
<managed-property>
<property-name>url</property-name>
<value>https://apps.na.collabserv.com</value>
</managed-property>
<managed-property>
<property-name>serviceName</property-name>
<value>SmartCloud</value>
</managed-property>
<!-- OAuth parameters -->
<managed-property>
<property-name>appId</property-name>
<value>XPagesSBT</value>
</managed-property>
<managed-property>
<property-name>credentialStore</property-name>
<value>CredStore</value>
</managed-property>
<managed-property>
<property-name>requestTokenURL</property-name>
<value>https://apps.na.collabserv.com/manage/oauth/getRequestToken</value>
</managed-property>
<managed-property>
<property-name>authorizationURL</property-name>
<value>https://apps.na.collabserv.com/manage/oauth/authorizeToken</value>
</managed-property>
<managed-property>
<property-name>accessTokenURL</property-name>
<value>https://apps.na.collabserv.com/manage/oauth/getAccessToken</value>
</managed-property>
<managed-property>
<property-name>consumerKey</property-name>
<value>xxxxxxxxxx</value>
</managed-property>
<managed-property>
<property-name>consumerSecret</property-name>
<value>xxxxxxxxxx</value>
</managed-property>
发布于 2013-10-03 11:26:05
SBT目前为调试目的支持此功能。可以通过将下面的属性添加到终结点来启用此功能。
<managed-property>
<property-name>httpProxy</property-name>
<value>IpOfProxy:PortNumberOfProxy</value>
</managed-property>
如果您需要为所有端点启用此功能,只需将其添加到sbt.properties直接sbt.httpProxy=127.0.0.1:8888中即可。
我们目前不支持凭据,因为大多数用于调试的代理(如Fiddler或Wireshark )都不需要这一点。
您能给我提供您的环境的更多细节,我可以检查我们是否可以增强代码在您的环境中工作。
发布于 2013-10-01 19:15:57
在服务器文档中尝试端口->代理。
https://stackoverflow.com/questions/19123230
复制相似问题