wso2

wso2 api manager map publisher URL parameters to values

随声附和 提交于 2019-12-24 09:17:55
问题 There is article from wso2 Map the Parameters of your Backend URLs with the API Publisher URLs. Within it we have how the complete publisher URL looks like: http://<hostname>:8280/<context>/<version>/<API resource> And the whole use case is: You can define variables as part of the URI template of your API's resources. For example, in the URI template /business/{businessId}/address/, businessId is a variable. The variables in the resources are read during mediation runtime using property

No Extension Exists for pmml:predict WSO2 Stream Processor

一世执手 提交于 2019-12-24 09:08:36
问题 I am following the WSO2 Stream Processor Studio tutorials to practice Siddhi. So far I've managed to troubleshoot all the bugs incorporated in the tutorials; however, I'm stuck on the 12th tutorial, "Making Real-Time Predictions." The Siddhi application is @App:name("SugarSyrupPredictionApp") @app:description("Making real-time predictions tutorial 12") @source(type='http', receiver.url='http://localhost:5006/SugarSyrupEP', @map(type = 'json')) define stream SugarSyrupDataStream (temperature

WSO2 ESB proxy backend with mutual authentication

我与影子孤独终老i 提交于 2019-12-24 08:22:04
问题 Is it possible to use mutual authentication (client SSL certificates) with WSO2 ESB? (I'm not talking about WS-Security.) I see that it is possible to add custom keystores to the ESB but I could not find any information on how to specify what client key to use when connecting to a specific backend. 回答1: Yes. You can enable mutual authentication for ESB proxy service. Here you want to do small configuration to enable mutual authentication for all proxy service . You can edit axis2.xml file and

WSO2 AM 1.10.0 Swagger json export

旧街凉风 提交于 2019-12-24 07:59:50
问题 I added swagger API doc into Restful services and can be invoked as below, I created new APIs of the services in AM and they are working well, However, I do not know how to use WSO2 AM to export the swagger file as users ask the APIs definition file. Thanks, Sean 回答1: You can export swagger file in APIM. In publisher go to edit API. Then, in Design tab, click Edit Source link. Then Swagger editor will open. Then you can Download swagger file by File > Download... 来源: https://stackoverflow.com

CORS is not working on oAuth2 UserInfo endpoint in WSO2 API Manager

我的未来我决定 提交于 2019-12-24 07:37:10
问题 I am having trouble making CORS work at oAuth2's UserInfo endpoint. I want to retrieve claims (UserInfo) by calling the oAuth2 UserInfo resource. As I understood from stackoverflow post "WSO2 API Manager CORS" ... enabling CORS for oAuth2 resources should be done in the Synapse configuration by adding the CORSRequest handler as described in above stackoverflow link. I added this CORSRequest handler for Token en Revoke resources ( _TokenAPI_.xml en _RevokeAPI_xml ) as described in the above

Difference between Data Mapper Mediator and Payload Factory Mediator

限于喜欢 提交于 2019-12-24 07:27:43
问题 Besides the syntax what is the core difference between a data mapper and payload factory? They both can convert/transform data from one format to another. 回答1: I have used the data mapper only a few times (you stick with what you know). In my opinion both mediators provide mostly the same functionality (as does the xslt mediator) but the underlying technology and mainly the development method is radically different. datamapper provides a graphical way of transforming messages. It uses

how to catch an array of nodes to a property

爱⌒轻易说出口 提交于 2019-12-24 07:17:21
问题 Can any one please let me know how can I access an array of elements to a property. For example: I have an XML as said below <a> <x>1</x> <x>2</x> <x>3</x> <x>4</x> </a> I want my property to be set as shown below: <x>1</x> <x>2</x> <x>3</x> <x>4</x> when I try to access using //x with property type set to OM element or String I don't see the result as expected in my property. Can any one please direct me with the right xpath to be used to see the desired outcome ? 回答1: You should be able to

WSO2 Log4J RollingFileAppendeder does not work in wso2esb-4.8.1

拈花ヽ惹草 提交于 2019-12-24 07:17:01
问题 We are using WSO2esb-4.8.1. By default the log4j properties uses log4j.appender.CARBON_LOGFILE=org.wso2.carbon.logging.appenders.CarbonDailyRollingFileAppender I want this to be Size based rolling file. As per documentation at https://docs.wso2.com/display/Carbon420/Managing+Logs, the following should do the trick. ##comment the following ###log4j.appender.CARBON_LOGFILE=org.wso2.carbon.logging.appenders.CarbonDailyRollingFileAppender ##Add the followng log4j.appender.CARBON_LOGFILE=org

WSO2 EI and WSO2 Developer - Setup an ESB Proxy with http basic authentication

安稳与你 提交于 2019-12-24 07:16:57
问题 I'm using WSO2 EI 6.3.0 and WSO2 Developer Studio 3.8.0. I'm working with an ESB Project and a Proxy Service inside it. The Proxy service is a simple pass through service; it receives a request from a webapp and forward it to a Soap Web Service, gets the response from the WS and gives it back to the web app. I realized this configuration following this tutorial: https://youtu.be/3OsuGhEMQgc The setup is very simple, everything worked fine until I found a web service whose endpoint has http

how to add users to roles using SCIM in WSO2

夙愿已清 提交于 2019-12-24 07:12:03
问题 I want to add roles to users programatically in WSO2 Identity server. I am able to create users by SCIM API's.But cant find an API to add a user to a role. I tried giving the user name as "userName":"role/myusername" in the wso2/scim/Users POST API. But its not working ; not sure if its the correct approach. Can someone tell me how to add a role to an existing user and also add a role to a new user? Thanks 回答1: The answer here shows how to do that with SCIM PUT command. Also From IS 5.1.0