在mobilefirst适配器中动态提供主机url

时间:2016-01-27 07:26:54

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

大家好我需要从客户端动态传递适配器的主机名或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>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

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

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