简体   繁体   English

401 Unauthorized in wso2 服务提供商初始化

[英]401 Unauthorised in wso2 serrvice provider inittialisation

I am trying to hit the initiliase service provider api /services/IdentityApplicationManagementService using request body:我正在尝试使用请求正文访问 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>

But its giving 401 Unauthorized error.但它给出了 401 Unauthorized 错误。 I am doing this in wso2 integration studio.我在 wso2 集成工作室中执行此操作。

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]。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM