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…

Posted in Spring SOAP

Spring SOAP WebService Producers using Gradle

This tutorial will show you how to generate Java classes from XSD file using JAXB API and Gradle. Generating JAXB classes from xsd using Gradle is not an easy task because Gradle does not have yet any ready-made plugin like Maven. So to generate Java classes from XSD schema using Gradle you have to write an…

Posted in Gradle Java

Generating jaxb classes from xsd using Gradle

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…

Posted in Spring Batch

Spring Batch – CSV to XML File

In this tutorial I am going to show you how we can use foreach loop in Mule ESB. We will use File Connector to take an XML file as input then we will iterate each entry of XML file content using foreach loop of JAXB object. You can see also Convert JAXB Object to XML…

Posted in Mule ESB

foreach loop example 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…

Posted in Mule ESB

Convert JAXB Object to XML 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…

Posted in Mule ESB

Convert XML to JAXB Object in Mule ESB

I am going to show you how to generate JAXB classes from XSD file using maven build tool. I am going to use JAXB-2 Maven Plugin to generate the Java classes from XSD file. Finally I am also going to show you how unmarshal XML file using JAXB 2 API. This will ensure the validity…

Posted in Java

JAXB – Java API for XML Binding

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…

Posted in REST

RESTful webservice using Jersey