wso2-am

WSO2 API Manager - Displaying Private IP in the store

天大地大妈咪最大 提交于 2019-12-22 10:58:08
问题 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

Can't get past Call Mediator in custom mediation flow in WSO2 API Manager

纵然是瞬间 提交于 2019-12-22 10:38:36
问题 Created custom mediation flow in WSO2 AM 1.10 in order to achieve API chaining. As a first step i created this flow, as a test, which calls a REST service in order to generate a token and returns the response to the client. <?xml version="1.0" encoding="UTF-8"?> <sequence name="ppayload" trace="enable" xmlns="http://ws.apache.org/ns/synapse"> <property action="remove" name="REST_URL_POSTFIX" scope="axis2"/> <property name="uri.var.x" scope="default" type="STRING" value="5"/> <property name=

In wso2 API monetization why subscriber will fill details regarding plan

时光总嘲笑我的痴心妄想 提交于 2019-12-21 20:57:26
问题 In wso2 API manager why subscriber will fill details reagarding plan. As mentioned in the documntation, the user will login and fill the plan for consumption but why he'll decide the billing plan for the consumption. 回答1: Looks like a mistake in the docs. As per the screenshot, it's the admin user who's logging in at step 7, but not the newly created user. 来源: https://stackoverflow.com/questions/53121231/in-wso2-api-monetization-why-subscriber-will-fill-details-regarding-plan

WSO2 API Manager Gateway clustering. How to setup gateway endpoint in api-manager.xml

社会主义新天地 提交于 2019-12-21 20:54:09
问题 I have a plan to use WSO2 API manager for my company, so trying to make it work clustering. it consists of Keymanager, Gateway(manager, worker), Publisher, Store on 2 AWS instances. Host1 contains Keymanager, Gateway manager, Publisher, Store. Host2 contains Gateway worker. the point that I'm confusing is how to configure correct setting for in the /repository/conf/api-manager.xml file. Case 1) set gateway.manager.com in GatewayEndpoint <APIGateway> . . . <ServerURL>https://gateway.manager

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

醉酒当歌 提交于 2019-12-21 16:22:17
问题 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

wso2 am gateway forwarding of multipart/form-data post requests

霸气de小男生 提交于 2019-12-21 05:32:15
问题 I am using a demo API which receives a file and note as multipart/form-data input and displays the content of the file and the note. Here is a sample HTML which runs the API correctly: <html> <body> <FORM action="http://cgi-lib.berkeley.edu/ex/fup.cgi" method="post"> <P>Choose file: <INPUT type="file" name="upfile"> <p>Note: <INPUT type="text" name="note"> <p><INPUT type="submit" value="Send"> </FORM> </body> </html> Now I'm trying to created a managed API in the WSO2 APIM publisher. Below

wso2 API Manager | How to associate a client-certificate to backend / target endpoint

ぃ、小莉子 提交于 2019-12-20 07:14:19
问题 we have a backend of api which needs client-certificate to be presented when accessing api. we have added the client certificate to repository/resources/security/client-truststore.jks and along with all Root CA and Intermediate Certs. Restarted server. I believe Wso2 is now able to send call to backend API and returns with Status code 403. it is returning with 403 because the backend api did not receive the client certificate with request... { "timestamp": "2017-03-14T21:33:36.523Z", "status"

Error while trying to connect to the endpoint. Cannot borrow client for ssl

≯℡__Kan透↙ 提交于 2019-12-19 07:25:49
问题 This error is being printed in the WSO2 API Manager wso2carbon.log.. sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88) at org.wso2.carbon.databridge.agent.endpoint.binary.BinarySecureClientPoolFactory.createClient(BinarySecureClientPoolFactory.java:53) ... 9 more TID: [-1] [] [2016-12-28 22:16:04,043] ERROR {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} - Error while trying to connect to the endpoint. Cannot borrow client for ssl://192

Error while trying to connect to the endpoint. Cannot borrow client for ssl

孤街醉人 提交于 2019-12-19 07:24:48
问题 This error is being printed in the WSO2 API Manager wso2carbon.log.. sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88) at org.wso2.carbon.databridge.agent.endpoint.binary.BinarySecureClientPoolFactory.createClient(BinarySecureClientPoolFactory.java:53) ... 9 more TID: [-1] [] [2016-12-28 22:16:04,043] ERROR {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} - Error while trying to connect to the endpoint. Cannot borrow client for ssl://192

Add header with username into request to backend in wso2 apimanager

流过昼夜 提交于 2019-12-18 05:20:10
问题 I have apimanger v1.5.0. It authorize request by access_token and forward to backend. Backend need enduser name for processing request. I do not want add JWT-headers to request because that insecure. Apimanager can add optional headers to request, if add to file repository/deployment/server/synapse-configs/default/api/admin--common_v1.0.1.xml in section <outSequence><header> some data for example uri.var.accessToken . But I dont know name of variable with enduser name. Does somebody know? 回答1