修复 CRM On Demand 错误 SBL-ODU-01006

发布于 2024-11-17 16:11:01 字数 1267 浏览 3 评论 0原文

我正在尝试通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

演出会有结束 2024-11-24 16:11:01

看来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) and soapUI will generate a correct security header for you.

It may be clearer if you look at the annotated screenshot below:
annotated screenshot
(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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文