use WSO2 esb with Rest web services running on Tomcat - rest

i'm very new to ESB.
i want to use WSO2 ESB with java rest web services which are running on tomcat application server. all the communications are done using JSON.
please help..

here is a good tutorial on RESTful integration with WSO2 ESB
http://wso2.com/library/articles/2013/12/restful-integration-with-wso2-esb/
and extra details on JSON support
https://docs.wso2.com/display/ESB480/JSON+Support

Related

How can I use wso2 to publish remote SOAP wsdl to REST APIs

I hava a romote soap webservices wsdl and I need to consume it to publish as a rest api (json). I am using ubuntu 18. what do I have to downlaod and How can I use wso2 to publish remote SOAP wsdl to REST APIs?
You could probably solve the problem with either API Manager or Enterprise Integrator. However if you are just exposing one API to your mobile app, both of these products would probably be serious overkill.

Domino client web services and SOAP 1.2

I create a client in Domino to consume a web service that works with SOAP 1.2 and has HTTPBinding.
The client generation tool for Domino Designer Web services an error is displayed when trying to generate reporting that the SOAP accepted version is 1.1.
I decided to create the client with CXF framework through tool wsdl2java. In an agent I used these classes to consume the web service, however the below error was displayed. I think it's because of the SOAP version, but I'm not sure.
com.sun.xml.internal.ws.protocol.soap.MUTube getMisUnderstoodHeaders
INFO: Element not understood={http://www.w3.org/2005/08/addressing}Action
Also generated a jar of classes generated by wsdltojava and imported to another agent, but the error below is displayed.
java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=, offset=6
The question is, no way consume a web service with SOAP 1.2 in Domino only supports up to version 1.1?
Thanks a lot!
I don't believe that Domino's web service consumer supports SOAP 1.2 at this time. You might be able to do what you need with an agent though - here's one way: How can I call a SOAP 1.2 Web service from a LotusScript agent?
In fact there is no way to natively consume a web service with soap version 1.2. There are already several requests from IBM to upgrade the SOAP version. What I did, was to develop a new layer through a new web service with the version SOAP 1.1, which internally calls the web service with the SOAP version 1.2;

Differences between connectors Mule ESB and WSO2 ESB

Using Mule ESB I noticed that you can connect (via anypoint connectors) applications, databases, web services etc.
Since I am making a comparison between different ESB (Enterprise Service Bus) I ran into WSO2 ESB and reading the documentation it seems that allows to interact only web services (through SOAP communications).
Someone confirms what I wrote? Or WSO2 ESB is flexible as Mule ESB and I'm wrong (if so what are the differences)?
WSO2 ESB also has the concept of connectors which you can use to connect to external applications, databases, file systems and web services hosted in cloud or in internal networks. Here is a webinar which you can follow to get more information.
http://wso2.com/library/webinars/2014/09/esb-connectors-for-on-premise-and-cloud-integration-solutions/
I can't help as my knowledge of WSO2 is limited. What I could do is to recommend you the book open source ESB in action, although outdated its data, the introduction is amazing and the comparison methodology is also good. You could follow the same approach with the state of the art today.
Most of the connectivity to applications, databases, different protocols are already available with wso2 ESB and wso2 product stack out of the box. However there are some connectors that will support integration with on-premises legacy systems and additional protocols. eg: ejb, is08583, kafka, etc.

WSO2 Decoupling Tomcat and ESB

i m working with WSO2 EBS 4.7.0.
I have some REST services i have to deploy on a tomcat server.
Is it possible to have this configuration?
WSO2 ESB CLUSTER ----> TOMCAT CLUSTER (separate server)---> REST WEBSERVICES
I mean, is it possibile to decouple the tomcat contained by the ESB and locate it on a separate server in clustered mode? How can this be done?
Thanks a lot.
AFAIK, this is not possible. I mean decoupling tomcat from wso2esb. ESB runs on top of tomcat.
Why do you prefer this setup?
You can host your services in WSO2AS.
ESB cluster-->AS clusters

Calling SOAP in Jersey

I have a requirement from a client which wants to write a wrapper REST web service around a SOAP web service.
I am new to both SOAP and REST. Can anyone please let me know
If we can call SOAP web service inside a REST web service?
If yes, then how to do it in Jersey 2.0?
Thanks in advance.
Yes
There is nothing special about calling a SOAP service from inside a JAX-RS Resouce. Just write a JAX-WS client as described in the Java EE 7 Tutorial.