我使用静态IP地址将WSO2 API管理器托管到我的虚拟机中。WSO2 API管理器,新的网关端点不在使用
我可以通过输入这些地址打开我的碳,出版商和商店页面:
https://my.ip.address:9443/publisher
https://my.ip.address:9443/store
https://my.ip.address:9443/carbon
当我加入我的API在我的出版商页面,它172.x.x.x.x
地址是仅供内部使用创建端点。
所以为了有机会获得我的终点之外我在写这几行我\wso2\wso2am-2.1.0\repository\conf\api-manager.xml
到APIGateway
:
<APIGateway>
<Environments>
<Environment type="hybrid" api-console="true">
<Name>Production and Sandbox</Name>
<Description>This is a hybrid gateway that handles both production and sandbox token traffic.</Description>
<!-- Server URL of the API gateway -->
<ServerURL>https://localhost:${mgt.transport.https.port}${carbon.context}services/</ServerURL>
<!-- Admin username for the API gateway. -->
<Username>${admin.username}</Username>
<!-- Admin password for the API gateway.-->
<Password>${admin.password}</Password>
<!-- Endpoint URLs for the APIs hosted in this API gateway.-->
<GatewayEndpoint>http://${carbon.local.ip}:${http.nio.port},https://${carbon.local.ip}:${https.nio.port},http//my.ip.address:${http.nio.port},https://my.ip.address:${https.nio.port}</GatewayEndpoint>
</Environment>
</Environments>
</APIGateway>
现在,当我发表我的API生产和沙盒网址是:
http://my.ip.address:8280/path/to/my/api
https://my.ip.address:8243/path/to/my/api
但是,当我尝试向我的API网址发出请求时,出现超时错误。
为什么会发生这种情况?
请启用连线日志并使用日志更新问题。 http://lakshanigamage.blogspot.com/2015/03/how-to-enable-wire-logs-in-wso2-esbapim.html – Bee
@Bhathiya然后我可以得到这些日志? –
in repository/logs/wso2carbon.log – Bee