401未经授权在WSO2 SERRVICE提供商Initialisation中

发布于 2025-01-21 05:31:05 字数 901 浏览 3 评论 0原文

我正在尝试使用请求主体来击中Initiliase服务提供商API /Services /IdentityApplicationManagementservice:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://org.apache.axis2/xsd" xmlns:xsd1="http://model.common.application.identity.carbon.wso2.org/xsd">
                        <soapenv:Header/>
                        <soapenv:Body>
                            <xsd:createApplication>
                                <xsd:serviceProvider>
                                    <xsd1:applicationName>$1</xsd1:applicationName>
                                </xsd:serviceProvider>
                            </xsd:createApplication>
                        </soapenv:Body>`enter code here`
                    </soapenv:Envelope>

但它给出了401个未经授权的错误。我在WSO2 Integration Studio中这样做。

I am trying to hit the initiliase service provider api /services/IdentityApplicationManagementService using request body:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://org.apache.axis2/xsd" xmlns:xsd1="http://model.common.application.identity.carbon.wso2.org/xsd">
                        <soapenv:Header/>
                        <soapenv:Body>
                            <xsd:createApplication>
                                <xsd:serviceProvider>
                                    <xsd1:applicationName>$1</xsd1:applicationName>
                                </xsd:serviceProvider>
                            </xsd:createApplication>
                        </soapenv:Body>`enter code here`
                    </soapenv:Envelope>

But its giving 401 Unauthorized error. I am doing this in wso2 integration studio .

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

老街孤人 2025-01-28 05:31:05

该请求失败,因为它是未经授权的请求。您需要向请求添加基本授权。请参阅有关调用管理员服务的博客文章[1]。

[1] -https://medium.com/@naduni_pamudika/calling-wso2-admin-services-78afa7ddd4c44

This request fails since it is an unauthorised request. You need to add basic authorisation to the request. Refer to the blog post [1] on invoking admin services.

[1]-https://medium.com/@naduni_pamudika/calling-wso2-admin-services-78afa7dd4c44

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