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…
ContinueTag: jaxb
Generating jaxb classes from xsd 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 an Ant Task. The below example will show you how to do it.
ContinueSpring 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…
Continueforeach loop example in Mule ESB
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 in Mule ESB and Convert XML to JAXB Object in Mule ESB
ContinueConvert 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)…
ContinueConvert 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…
ContinueJAXB – Java API for XML Binding
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 of your XSD file.
ContinueRESTful 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