401未经授权在WSO2 SERRVICE提供商Initialisation中
我正在尝试使用请求主体来击中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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该请求失败,因为它是未经授权的请求。您需要向请求添加基本授权。请参阅有关调用管理员服务的博客文章[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