【问题标题】:giving the host url dynamically in mobilefirst adapter在 mobilefirst 适配器中动态提供主机 url
【发布时间】:2016-01-27 07:26:53
【问题描述】:

您好,我需要从客户端动态传递适配器的主机名或 url。即,当用户登录时,他需要键入将在 adapter.xml 文件中设置为 ${domainname} 的 url .help 需要 pls.Thnks 提前

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wl:adapter xmlns:wl="http://www.ibm.com/mfp/integration" xmlns:http="http://www.ibm.com/mfp/integration/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="SoapAdapter1">
    <displayName>SoapAdapter1</displayName>
    <description></description>
    <connectivity>
        <connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
            <protocol>http</protocol>
            <domain>${domain}</domain>
            <port>8001</port>
			<connectionTimeoutInMilliseconds>30000</connectionTimeoutInMilliseconds>
			<socketTimeoutInMilliseconds>30000</socketTimeoutInMilliseconds>
			<maxConcurrentConnectionsPerNode>2</maxConcurrentConnectionsPerNode>
        </connectionPolicy>
    </connectivity>

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

【问题讨论】:

    标签: ibm-mobilefirst worklight-adapters mobilefirst-adapters


    【解决方案1】:

    这些值在运行时是不可更改的。您无法动态决定适配器在构建和部署之后连接到哪里。

    您可以在这里尝试 Andrew 的建议:IBM Worklight - How to change dynamically domain/hostname to which the adapter connects from the client at launch or runtime?

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多