Compress and decompress files in WSO2 ESB - wso2

I want to compress and decompress files in WSO2 ESB. Is it is possible, if yes please help me to do it.
Thanks.

You can transfer very large ad hoc files with VFS by enabling binary relay in WSO2 ESB. Check this doc on how to enable binary relay builder and expanding formatter. VFS transport documentation and this article will be helpful for your use case.

You can always write a class mediator to decompress the file and read the content.
https://docs.wso2.com/display/ESB481/Writing+a+WSO2+ESB+Mediator

Related

How to download file from ADLS in WSO2

I have a scenario to download a file from ADLS Gen2 and then process the data using wso2
I see there is a connector in wso2 but it has only listing, uploading, creating, and deleting options.
Nothing to download files.
Can someone help.
If the Download operation is not available you can consider writing your own Class Mediator to implement the functionality.

WSO2 APIM storing files in gov registry

I have another question on WSO2 APIM 2.6.0
I am working in one scenario where I have to store one file which is in json in gov registry. I can do that manually from the dashboard but I am looking for a way to perform that using API or in automated way.
Research done till now
1) Checking on the link which ideally enable WSO2 ESB to maintain a remote registry. But I am unable to get how the registry DB will be shared between the applications (APIM and ESB).
Like, ESB has property where we can store the data in registry directly from proxy or an API and also enables us to retrieve them accordingly.
But how do we do in APIM to store the file with json content.
Any suggestions here.
Thanks

Mock ups in Mule Esb web services

I have some web service (CXF) on Mule Esb (3.4). At the current moment I try to find the simple way to set up web service response that I need for UAT. I read a lot of information in the internet and as I understood there is a special framework Munit for all types of testing. But, it seems, this framework is used for more complex things than I need. So, could anybody recommend me a simple way to force Mule Esb return predefined xml response. It will be fine if I create an xml response as xml document, upload it in any folder and Mule will send it as response when I call a web service. Thank you for any info for solving my task.
You could probably upload the example responses to the classpath and then, in your flows just load that file and set it as payload.
See this other stackoverflow question around how to accomplish this.
You could use 2 flows.
1 flow for production with the Webservice implementation and 1 flow for UAT testing which returns you just a predefined XML (for example via the http endpoint).
Put both files in a seperate file and make a mule-deploy.properties file for both UAT and Production where you include the corect flows respectivly.

WSO2 GovernanceServer and Google Protocol buffers

We are starting to look at WSO2 Governance Registry software for our SOA Governance(so I'm just beginning to dig into this product). I see that you can auto-build governance data by pointing to a WSDL if you use web services.
Does anyone know if there is any way to do this auto-build by pointing to a Google Protocol Buffer .proto file?
This has our Message formats, and our Service details, so it would be very nice to be able to do that.
IF there isn't anything like that, COULD something be developed to do that (and if so, and pointers to the documentation I would need would be great!).
We are NOT using WebServices, so no WSDL's.....
Thanks!
This capability of pointing to a proto file and crating a service is not possible with WSO2 Governance Registry now.
However it is possible to add this as a new feature, and should be a simple implementation. AFAIK, this will be as simple as creating a handler to deal with proto file as a media type, and do the same stuff we do for a WSDL in that handler, and create a service out of that.
Having a WSDL is not a must to create a service. We can represent non-SOAP services too, in WSO2 Governance Registry.

WSO2 ESB 4.0.3 and RSS/Atom and Velocity?

I would like to find out if/how it is possible to access/read RSS and Atom feeds from WSO2 ESB. I also would like to know if/how Velocity templating engine is supported by ESO2 ESB.
Thanks.
For reading and creating RSS or Atom feeds, you can use Feed Host Object in WSO2 Mashup Server. You can find more information in this documentation. If you explain more about your requirement of using Velocity in the ESB, you'll be able to get help I think.