我试图在Worklight HTTP适配器中实现NTLM身份验证,以便连接到M $后端服务器,如Sharepoint Web服务。 我用<ntlm>设置我的adapter.xml文件。worklight http适配器和NTLM身份验证
的adapter.xml结构第一个版本是:
<authentication>
<ntlm />
<serverIdentity>
<username>user</username>
<password>password</password>
</serverIdentity>
</authentication>
我的测试是在工作灯工作室在本地完成的,我得到了以下问题:
1)错误时invocating WL过程:
Procedure invocation failed:Could not resolve placeholder 'local.hostname'
我必须在哪里放置'local.hostname'设置?
2)我试图指定在文档(IBM信息中心)中给出的ntlm标签的主机名属性,WL Studio说xml格式不正确。
<authentication>
<ntlm hostname="myComputer.intranet.com"/>
<serverIdentity>
<username>user</username>
<password>password</password>
</serverIdentity>
</authentication>
“myComputer.intranet.com”是我公司网络中的计算机名称。从IBM服务请求
Attribute 'hostname' is not allowed to appear in element 'ntlm'