Good day!
I was asked to publish an rtsp stream on wso2 api manager 3.2, for example this: rtsp: //wowzaec2demo.streamlock.net/vod/mp4: BigBuckBunny_115k.mov. Naturally - this does not work, I do not receive rtsp data proxied through wso2 api manager 3.2. Am I getting it right, this shouldn't work? I want to know if it is possible to receive multimedia data through wso2 api manager 3.2?
And also I want to know if it is possible to receive any other streaming data through wso2 api manager 3.2, for example, stock quotes? Or is this only possible in version 4.0?
Currently, WSO2 API Manager or WSO2 Streaming Integrator products (even the latest versions) are not supporting such RTSP streams.
It is possible to create WebSocket APIs using WSO2 APIM 3.2.0, where streams will use ws (or wss) protocols. If your stock quote data are coming from a server via a WebSocket channel, you can create a WebSocket API in WSO2 API Manager 3.2 and consume them.
WSO2 API Manager's latest version 4.0 has support for proxying WebSocket and SSE (Server-Sent Events) streams as managed APIs by default. Unlike in API Manager 3.2, resources are supported for these types of APIs as well. So in this case, if your stock quote data are coming from the server in the form of WebSocket or Server-Sent Events, you can directly proxy your server via WSO2 API Manager 4.0.
If you are getting stock quote data from your server via other protocols such as Kafka, MQTT, HTTP, JMS and etc, you can use WSO2 Streaming Integrator (which is an integration component of API Manager 4.0) to switch from those protocols - to WebSocket or SSE; and then you can proxy the switched stream. Here is an example of switching Kafka to WebSocket, and exposing it as a WebSocket API.
You can find more information from here.
Related
I have following requirement, is this possible to achieve in WSo2 API Manager. Please advise. I got few article/pages with information on how to post request to message queue but none for how to consume message.
UI client calls a REST API exposed on the API gateway.
The backend service actually providing the implementation is a module
This module reads from a MQSeries queue an XML message, processes it and responds back to an outgoing queue.
So API gateway must be able to transform the REST/JSON payload to an XML payload and put it on the MQ Series queue
Wait synchronously and pick up response from another MQSeries queue.
APIM does not support consuming JMS messages OOTB. But WSO2 ESB. See https://docs.wso2.com/display/ESB500/ESB+as+a+JMS+Consumer
However, since APIM has ESB features installed by default, you should be able to deploy such a JMS consuming proxy in APIM too.
Have a try and post if you face any issues.
I am using WSO2 EI 6.1.1. I am trying to consume Active MQ queue from inside the WSO2 REST API, but unable to achieve it. I don't want to use the proxy service of WSO2. Please provide some input.
WSO2 provides the JMS connector. Can you try with this?
I'm not receiving any input on the Transport Statistics metrics page on the API Manager web page. Is this supposed to work out of the box? Please help me with how to setup this up so I receive data. I'm looking to identify how much data (size) is being transferred during API calls. Is there a different way?
API Manager is not provided Transport Statistics by default. We can configure Wso2 API Manger 1.9 with WSO2 BAM (Business Activity Monitor) or Google Analytics to achieve your requirement.
You can follow the steps mentioned in the document [1] to configure API manager with BAM or Google Analytics.
[1]- https://docs.wso2.com/display/AM190/Working+with+Statistics
What are the alternatives available while using WSO2 Identity server as PDP?
If we use WSO2 ESB, its creating one extra layer..
So what benefits we will get by using it? If we use Sun's XACML API to send and receive request and response in some class which act as PEP then would it be bad design?
It is not needed to use the WSO2 ESB as a PEP. You can write you own PEP to integrate with your application. As an example, if your application is an java web application, you can write your own PEP client to call the EntitlementService.
Advantage of using WSO2 ESB is that, It can act as Security Gateway for you all type of requests. It can do authentication/security protocol switching and more.. It has an extensible architecture.. If your all idea is to only to use WSO2ESB as PEP, I do not think it is worth. ESB is also calling EntitlementService of the WSO2IS. Therefore you can directly call it from your application. You can write simple PEP client using java. You can find java client from here and you can integrate it with your application as PEP. There are some place that have been done it. Please find one from here. In his sample, command line client calling the EntitlementService
From what I've read and experienced, the API Manager 1.3.1 only generates proxies. However, I would like to proxy a back-end SOAP service with a SOAP service proxy and have the proxy implement a WS-Policy with a WS-SecurityPolicy.
Is there built-in support for this in API Manager 1.3.1?
Will there be support for this in the next version of API Manager?
If no, then what steps would I take to have the API Publisher and Store apps recognize SOAP proxies?
I hope that API Manager is not the ideal way to start to implement your use case. You should use Enterprise Serivce bus which provides the UI and necessary other tools to implement the scenario.
You can install the required features (Which is pre installed in ESB) to API manager and use those features. But you can just go ahead with WSO2 ESB as it is.
http://docs.wso2.org/wiki/display/ESB402/Secure+Proxy+Template
in wso2esb, itself contains throttling [1]/analytics[2] support.You can check the documentation on how to enable the throttling for proxies. If you like to use APIManager, define a proxy in another instance(like ESB) and provide that as endpoint when you create an API. But that proxy has to handle REST calls..
But from my understanding, you can simply use wso2esb.
[1]http://docs.wso2.org/wiki/pages/viewpage.action?pageId=15471353
[2]http://docs.wso2.org/wiki/display/ESB451/Statistics