修复 CRM On Demand 错误 SBL-ODU-01006
我正在尝试通过 SOAPUI 客户端访问 CRM On Demand WebService
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="urn:crmondemand/ws/account/10/2004" xmlns:acc="urn:/crmondemand/xml/account">
<soapenv:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
soapenv:mustUnderstand="1">
<wsse:UsernameToken
xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'>
<wsse:Username>compID/username</wsse:Username>
<wsse:Password
Type='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText'>mypassword</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<!-- some query parameters -->
</soapenv:Body>
并且服务器的响应为
<ErrorCode>SBL-ODU-01006</ErrorCode>
<ErrorMessage>Unknown user sign in ID or password. Make sure your CapsLock key is off, and try again.</ErrorMessage>
您能指出我做错了什么吗?非常感谢。
I am trying to access the CRM On Demand WebService through SOAPUI Client
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="urn:crmondemand/ws/account/10/2004" xmlns:acc="urn:/crmondemand/xml/account">
<soapenv:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
soapenv:mustUnderstand="1">
<wsse:UsernameToken
xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'>
<wsse:Username>compID/username</wsse:Username>
<wsse:Password
Type='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText'>mypassword</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<!-- some query parameters -->
</soapenv:Body>
And the server is responding with
<ErrorCode>SBL-ODU-01006</ErrorCode>
<ErrorMessage>Unknown user sign in ID or password. Make sure your CapsLock key is off, and try again.</ErrorMessage>
Could you please point out what I am doing wrong ? Many thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来
Header
标签的内容是你自己写的。在
soapUI
中,您不必这样做。相反,对于您设置的每个请求(以及其他选项),您的凭据和授权方法(
WSS-Password Type
)和soapUI
将为您生成正确的安全标头。如果您查看下面带注释的屏幕截图,可能会更清楚:
(您可能需要稍微缩放(或在新选项卡中打开)才能看到注释)。
这是一个准备执行的请求。
希望这有帮助。
It seems that you wrote the contents of the
Header
tag yourself.In
soapUI
you don't have to do so.Instead, for each request you set (among other options) your credentials and authorization method (
WSS-Password Type
) andsoapUI
will generate a correct security header for you.It may be clearer if you look at the annotated screenshot below:
(You may need to zoom (or open it in a new tab) a little to see annotations).
This is a ready to be executed request.
Hope this helps.