WSO2 enable transport from Carbon Application - wso2

To use some transports in WSO2 esb you have to edit the ESB_HOME/conf/axis2.xml
Like in this tutorial you have to uncomment the email transport.
Is there a way to configure a transport in Carbon application developed in WSO2 Developer Studio, without editting the axis2.xml?

When a request comes to ESB it first hits to axis2 level. Then the transport is selected from axis2 and then request goes to synapse level.So any way we need to edit the axis2.xml to enable any transport for that request.

Related

I need to add/update only claim under serviceprovider in wso2 (version 5.7) using soap request

I need to add/update claims under service provider that is already created in wso2. Currently, I am using version 5.7 of wso2. So, I need a soap request to add this using soap web service.
You can use IdentityApplicationManagementService SOAP Admin service to update Service Provider. Sample SOAP request information can be found here.
You can find the soap requests here
https://docs.wso2.com/display/IS570/Managing+Claims+with+APIs

WSO2 API Manager : API Creation Issue

I installed the APIM and started the APIM and created a new API. The ApI which i created comprises of a URL which points at our company production server. I gave the URL in the api creation mode to the production endpoint and sandbox Endpoint boxes. Then i set the required parameters under the GET method. Then i try it out at the store but the request does not hit the production server. I want to see the URL output from your api manager which passes to our production server. Because i want to see what is whether there is an error on that as it it doesnot hit our production server.
Can you help me with the issue?
Thanks in advance.
You can enable wire log to see the what are the requests which came to APIM and what are the requests APIM made for backend. Follow the steps in How to get wire logs from WSO2 ESB blog post to enable wire log. Those instructions are given for ESB, but they are valid for APIM as well.

WSO2 ESB API payload Security

I developed some API in WSO2 ESB server.I need to pass encrypted data to my resource server through the ESB. But i need to update data (payload) while request reach in ESB apart of my business.Is there any solution .any help please ?
According to the requirement you have mentioned here you can update data in the payload inside the ESB with the help of a Payload Factory mediator.
As an example, please refer documentation [1] Section of “Using WSO2 ESB to modify messages with text content".
Encrypting the data/payload inside the WSO2 ESB, does not support Out Of the Box.
As a suggestion, I would suggest to implement the scenario with the help of the transport layer by Enabling SSL profiling feature with WSO2 ESB which will communicate with a resource server in a safe manner.
For more information on SSL profiles in WSO2 ESB, please visit documentation [2].
[1] https://nadeesha678.wordpress.com/tag/wso2-esb/
[2] http://pathberiya.blogspot.com/2010/07/ssl-profiles-in-wso2-esb.html

Use ActiveMQ as Event Broker in WSO2 ESB

In my wso2 esb 4.5.0-environment I want to send messages to ActiveMQ via the event mediator.
By default, the event mediator is connected to an internal, memorybased eventbroker in wso2 esb.
There is a possibility to change the event broker to WSO2 Message broker. This change is achieved by editing the file $wso2esb_home/repository/conf/event-broker.xml.
In the file there is an example config for WSO2 MB, but not for ActiveMQ.
What are the configuration settings for ActiveMQ as eventbroker?
We ended up solving this issue by developing a custom mediatior that communicates with ActiveMQ using JMS.

turning wso2 into a pep with identity server acting as the pdp

I am trying to use wso2 ESB server as a PEP, I already have wso2 identity server acting as the PDP and an application hosted on wso2 Application server. I have uploaded policies into identity server and I was wondering if there any tutorials out there that both show and explain how to make this happen. I have tried the blog http://wso2.org/library/articles/2011/08/finegrained-authorization-restful-services-xacml but it has not worked. any direction on how to turn esb into a pep would be appreciated
You can use wso2 esb Entitlement mediator. Have a look at following guide which explains how we can add fine grained authorization to proxy services.
http://docs.wso2.org/wiki/display/IS400/Adding+Fine-grained+Authorization+for+Proxy+Services+in+ESB