Spring SOAP WebService Producers using Gradle

Introduction This tutorial will show you an example on Spring SOAP WebService producers using Gradle. In other words, how we can create and publish SOAP based webservice in Contract-first approach using Spring and Gradle. We will use here Spring Boot framework to create our SOAP based web service. There are mainly two approaches to create the Webservice – Contract-first & Contract-last. The Contract-first approach tells us to create first XSD/WSDL and then create end-point interface and implementation class. The Contract-last approach tells us to create first end-point interface and implementation…

Continue

Spring Batch – CSV to XML File

Introduction This tutorial will show you how to read a csv file data and write to xml file with some modification. We’ll build a service that imports data from a CSV file, transforms it with custom code, and stores the final results in XML file. You can read the tutorial Spring Batch to read what is Spring Batch and what are the usages of Spring Batch. Prerequisites Eclipse, Gradle 4.10.2, Spring Boot 2.1.4, Java 8 Spring Batch Example with Source Code Creating Project Create gradle based project in Eclipse IDE and…

Continue

Convert JAXB Object to XML in Mule ESB

In this tutorial I am going to show you how we can convert JAXB object into XML data in Mule ESB. We will use File Connector to take an XML file as input then we will map it to an appropriate JAXB object, then finally we will convert the JAXB object back into XML data. You can see also Convert XML to JAXB Object in Mule ESB The JAXB transformers allow objects to be serialized to XML and back again using the JAXB binding framework. Java Architecture for XML Binding (JAXB)…

Continue

Convert XML to JAXB Object in Mule ESB

In this tutorial I am going to show you how we can convert XML data into JAXB object in Mule ESB. We will use File Connector to take an XML file as input then we will map it to an appropriate JAXB object. You can see also Convert JAXB Object to XML in Mule ESB The JAXB transformers allow objects to be serialized to XML and back again using the JAXB binding framework. Java Architecture for XML Binding (JAXB) allows Java developers to map Java classes to XML representations. JAXB…

Continue

RESTful webservice using Jersey

Here I am going to give an example on how REST webservice works. The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the resource or collection of resources. A RESTful Web service is implemented using HTTP and the principles of REST. Typically, a RESTful Web service should define the following aspects: The base/root URI for the Web service such as http://<host>/<appcontext/contextpath>/<url pattern>/<resources>.The MIME type of the response data supported, which…

Continue