在 mobilefirst 适配器中动态地给主机 url

giving the host url dynamically in mobilefirst adapter

你好,我需要从客户端动态地为适配器传递主机名或 url side.i。e 当用户登录时,他需要键入 url,这将需要提前pls.Thnks设置adapter.xmlfile.help中的${域名}

<?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 Worklight - How to change dynamically domain/hostname to which the adapter connects from the client at launch or runtime?