WSO2 SOAP 添加新租户
WSO2 SOAP add new tenant
我在 WSO2 IS 5.9.0 中使用 services/TenantMgtAdminService.TenantMgtAdminServiceHttpsSoap12Endpoint/
端点,我可以使用 addTenant
方法成功创建租户。
如果我从 <xsd:tenantId>1</xsd:tenantId>
中的信封发送特定 ID,return id 是什么意思
我的回复
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:addTenantResponse xmlns:ns="http://services.mgt.tenant.carbon.wso2.org">
<ns:return>9ab460b9-1176-4d97-ad84-e6fbbd31a1fb</ns:return>
</ns:addTenantResponse>
</soapenv:Body>
</soapenv:Envelope>
首先,我们不能在创建租户时设置tenantId。请求中传入的 tenantId 将被忽略,并根据内部实现创建一个租户 id。
addTenant方法返回的id只是UID。
<ns:return>9ab460b9-1176-4d97-ad84-e6fbbd31a1fb</ns:return>
这里没有功能用例。用于获取管理控制台的租户主题。
如果你想获取新创建的租户的id,你可以使用getTenant SOAP方法。
我在 WSO2 IS 5.9.0 中使用 services/TenantMgtAdminService.TenantMgtAdminServiceHttpsSoap12Endpoint/
端点,我可以使用 addTenant
方法成功创建租户。
如果我从 <xsd:tenantId>1</xsd:tenantId>
我的回复
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:addTenantResponse xmlns:ns="http://services.mgt.tenant.carbon.wso2.org">
<ns:return>9ab460b9-1176-4d97-ad84-e6fbbd31a1fb</ns:return>
</ns:addTenantResponse>
</soapenv:Body>
</soapenv:Envelope>
首先,我们不能在创建租户时设置tenantId。请求中传入的 tenantId 将被忽略,并根据内部实现创建一个租户 id。
addTenant方法返回的id只是UID。
<ns:return>9ab460b9-1176-4d97-ad84-e6fbbd31a1fb</ns:return>
这里没有功能用例。用于获取管理控制台的租户主题。
如果你想获取新创建的租户的id,你可以使用getTenant SOAP方法。