wso2-am

WSO2 API Manager - Displaying Private IP in the store

旧街凉风 提交于 2019-12-05 20:50:54
I have installed the API manager 1.6.0 and got API Manager running as well. However the problem is IP address shown within store is the private IP of the server. Private IP is accessed via a VPN. Below is the URL which is shown in the store as Production and Sandbox URLs, http://192.168.6.162:8280/railway/2.0 For 192.168.6.162 I have assigned a public IP which is 103.11.35.xx and assigned a domain my-domain-name as well. What I would like to see is as below, http://my-domain-name/railway/2.0 How can I configure API Manager to show the domain name instead of an IP address with a port? You can

Adding custom handler to specific API wso2 API-Manager

旧时模样 提交于 2019-12-05 19:47:00
I need to add a custom handler and APIAuthenticationHandler to a specific API and it needs to be added below the handler class="org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler"/> (Note that APIAuthenticationHandler is called twice here, it's a custom requirement) How can I do this programmatically by editing the velocity_template.xml I'm using API-Manager 2.00 Thank you You can use API custom properties for this. Add a custom property (e.g. auth_mode=Inhouse ) to the API and then based on that, update the handler section in the velocity template like this. <Handlers>

WSO2 API Manager, invalid. unable to find valid certification path to requested target

我的梦境 提交于 2019-12-05 18:33:44
I have launched WSO2 API Manager locally. I'm trying to add API endpoint with https connecttion. It shows me that kind of error. It shows me Invalid. unable to find valid certification path to requested target error message. Then I have downloaded certificate, which is cer file from website and in carbon page I have imported certificate to wso2carbon keystore: After that I restart my WSO2 API Manager and try to test this endpoint and it still throws me that error. What did I miss? Console show that kind of error: [2017-06-12 21:12:18,362] ERROR - APIProviderHostObject Error occurred while

hostname in certificate didn't match:<>!=<> WSO2 APIM

孤者浪人 提交于 2019-12-05 18:02:35
I have a https endpoint and I need to access it from wso2 API manager. (uses 1.10).I already added the certificate files to "client-truststore.jks" file. But now it gives an error as follows. hostname in certificate didn't match:<ip>!=<entry name>. I have already updated the axis2.xml file as follows also. <parameter name="HostnameVerifier">AllowAll</parameter> How can I solve this issue with WSO2 APIManager to access this https backend service The CN of the certificate should match with the hostname of the URL. You get above error when they don't match. 来源: https://stackoverflow.com/questions

Programmatically add custom handler in WSO2 API Manager

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 17:59:25
I create and subscribe new APIs through an automated process that uses WSO2 API Manager's Publisher and Store HTTP APIs respectively. I have custom handlers that I then map to my APIs by editing the XML files in <APIM_HOME>/repository/deployment/server/synapse-configs/default/api . Is there a way to programmatically map the handlers to the newly created APIs so that I don't have to edit the XML manually? In other words, an API or other method to see the current handlers for an API, and add/remove? I assume you do not want to edit API XML manually for all the APIs to engage a custom handler.

WSO2 api manager stops after 1000 sync call with large payload

泪湿孤枕 提交于 2019-12-05 12:11:52
I have a server which can send response of any size. When I make calls of with response size 1MB the WSO2 api manger works fine. (1000 requests per minute) When we make same calls with response size of 10MB the WSO2 api manager initially cuts down the size of responnse and finally becomes 0 sized responses. With 1000 requests per minute only first 28 requests response back with 10MB others are lesser size. I have tried hitting the backend service directly with 10MB response sizes and all the responses are 10MB. Here is my server.js (written for nodejs) var http = require("http"); var url =

WSO2 API Manager 2.0 Log Error localhost:7712 (ssl thrift port)

笑着哭i 提交于 2019-12-05 07:45:28
问题 I have installed APIM and APIM Analytics in two different machines. I followed this guide to connect APIM to APIM Analytics. Analytics are working fine, I can see usage data in dashboards, but this error keeps showing once and again in log file ERROR {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} - Error while trying to connect to the endpoint. Cannot borrow client for ssl://localhost:7712 {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} org

How to set tenant to header in mediator with WSO2 API Manager

余生颓废 提交于 2019-12-05 05:13:29
I have an API that requires the tenant as a header. If I create a custom in-sequence: <sequence name="WSO2AM--Ext--In"> <header name="X-Tenant-Id" scope="transport" action="set" expression="???????????????????" /> </sequence> Is there an expression that I can use to achieve this? Or should I resort to creating a per-API mediator to set it? PS: Looking at WSO2 source code ( CarbonTenantInfoConfigurator.java ), I found this fragment that could be useful as a hint: PrivilegedCarbonContext cc = PrivilegedCarbonContext.getThreadLocalCarbonContext(); String tenantDomain = cc.getTenantDomain(); int

WSO2 API Manager - can it convert REST requests to SOAP requests on the backend?

不羁的心 提交于 2019-12-04 07:28:54
I'm exploring the use of the WSO2 API Manager for our legacy API, which is currently SOAP based. IDeally, I'd like to expose a RESTful interface to our customers and have API Manager convert that to a SOAP request that gets passed to our legacy system. Searching the WSO2 site, I see there's some way to do this using XSLT transformations, but only when using the WSo2 ESB product. Is there a way to handle this transformation in the API Manager? How? If not, could I somehow take advantage of the ESB product and combine it with the API Manager product? Or is that overkill? Thanks! REST to SOAP

WSO2 API Manager user authencation email

筅森魡賤 提交于 2019-12-04 06:13:56
问题 I have setup a WSO2 API Manager. When I create a user in WSO2 using web console/ using admin services, I want to send a user activation email with link to the user. Can someone point me to documentation OR steps to do this? I am using MySQL to store my users. EDIT: I am using WSO2 API Manager version 2 EDIT: When I try to access https://:9443/services/UserInformationRecoveryService?wsdl WSDL is not found. What are steps to install UserInformationRecoveryService in WSO2 API Manager? 回答1: You