2014-02-14 69 views
2

我想知道是否可以通過UserAdmin SOAP接口檢索用戶聲明?我發現添加用戶時可以指定用戶聲明。另外我注意到通過索賠獲得用戶列表是可能的,但我還沒有找到如何檢索用戶的所有索賠。WSO2 Identity Server UserAdmin SOAP接口

任何提示?

在此先感謝。

回答

1

您可以嘗試「RemoteUserStoreManagerService」用於您的目的。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.ws.um.carbon.wso2.org"> 
    <soapenv:Header/> 
    <soapenv:Body> 
     <ser:getUserClaimValues> 
     <ser:userName>admin</ser:userName> 
     </ser:getUserClaimValues> 
    </soapenv:Body> 
</soapenv:Envelope> 

以上要求將返回您的管理員用戶的默認配置文件的聲明。


編輯

按照你需要新的管理服務的WSDL的註釋。

默認情況下管理服務的WSDL是隱藏的。要更改該行爲,請打開<IS_HOME>/repository/conf/carbon.xml,然後找到HideAdminServiceWSDLs標記並將其設置爲false

然後你可以從網址

https://localhost:9443/services/<SERVICE_NAME>?wsdl 

查看任何管理服務的WSDL在這種情況下

https://localhost:9443/services/RemoteUserStoreManagerService?wsdl 

HTH,

DarRay,

+0

你有一個WSDL這個?它不是UserAdmin WSDL的一部分?謝謝 – yannb

+0

這是一個單獨的管理服務。根據您的評論我已更新了答案 – DarRay

相關問題