无法调用 WSO2 API Manager 1.10 管理服务
Unable to invoke WSO2 API Manager 1.10 admin services
我已经从 carbon.xml
为 API 管理器启用了管理服务并成功提取了 wsdl。现在我正在尝试使用 SOAP UI 调用服务 RemoteTenantManagerService
。我已经在 SOAP UI 中加载了 wsdl,并且还提供了基本身份验证 Username/Password 作为 admin/admin
。但是我收到了以下消息。 API 管理器的端口偏移 1
要求:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.ws.um.carbon.wso2.org">
<soapenv:Header/>
<soapenv:Body>
<ser:getAllTenants/>
</soapenv:Body>
</soapenv:Envelope>
回复:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>The service cannot be found for the endpoint reference (EPR) /services/RemoteTenantManagerService.RemoteTenantManagerServiceHttpsSoap11Endpoint</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
有两种类型的传输,PassThrough 和 servlet。管理服务通过 servlet 传输公开。因此,必须使用 servlet 传输端口调用它们。
例如:- https://{host}:9443/services/RemoteTenantManagerService
在您的情况下,您已将偏移量设置为“1”,因此请使用 URL https://{host}:9444/services/RemoteTenantManagerService
调用该服务
生成的 WSDL 包含带有直通端口的端点,因此 soapUI 将其显示为默认端点。请将端口更改为 servlet 端口(您的情况应该是 9444)并再次 运行。
我已经从 carbon.xml
为 API 管理器启用了管理服务并成功提取了 wsdl。现在我正在尝试使用 SOAP UI 调用服务 RemoteTenantManagerService
。我已经在 SOAP UI 中加载了 wsdl,并且还提供了基本身份验证 Username/Password 作为 admin/admin
。但是我收到了以下消息。 API 管理器的端口偏移 1
要求:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.ws.um.carbon.wso2.org">
<soapenv:Header/>
<soapenv:Body>
<ser:getAllTenants/>
</soapenv:Body>
</soapenv:Envelope>
回复:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>The service cannot be found for the endpoint reference (EPR) /services/RemoteTenantManagerService.RemoteTenantManagerServiceHttpsSoap11Endpoint</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
有两种类型的传输,PassThrough 和 servlet。管理服务通过 servlet 传输公开。因此,必须使用 servlet 传输端口调用它们。
例如:- https://{host}:9443/services/RemoteTenantManagerService
在您的情况下,您已将偏移量设置为“1”,因此请使用 URL https://{host}:9444/services/RemoteTenantManagerService
生成的 WSDL 包含带有直通端口的端点,因此 soapUI 将其显示为默认端点。请将端口更改为 servlet 端口(您的情况应该是 9444)并再次 运行。