Memorynotfound Java Programming Tutorials
Spring WS Consume Soap Service from WSDL
This tutorial Spring WS Consume Soap Service from WSDL shows you how to Consume a Soap Web Service from a WSDL (Web Service Description Language) file. Spring WS provides a simple client-side Web Service...
Produce Spring Ws Contract First Soap Service
This tutorial show you how to produce Spring Ws Contract First Soap services. Contract-First means starting with an XML Schema (XSD) or WSDL (Web Service Description Language) followed by the Java Code. In this...
Generate XSD from Java Classes
In this tutorial we show you how to generate XSD from Java Classes using java binding annotations. Java Classes can be converted into XSD schema and vice versa using the jaxb2-maven-plugin. We can specify...
Generate Java Classes From XSD
This example shows you how to generate Java Classes from XSD using jaxb2-maven-plugin. This plugin uses the XJC which is a JAXB Binding compiler tool that can generate Java Classes from XSD. Maven Project...
Test Jersey Rest Service with JUnit
In this example we show you how to test Jersey Rest Services with JUnit. JerseyTest is developed by Jersey themselves in order to facilitate the testing of their rest services. You can really easily...
Format a Decimal Number with DecimalFormat Example
When you need to format a decimal for example 2 decimals after the comma, grouping numbers, rounding decimals or adding a currency symbol. The java.text.DecimalFormat class is the way to go. The java.text.DecimalFormat allows...
How to convert a String to boolean in Java
We can convert a String to a primitive boolean using the Boolean.parseBoolean method or to a wrapped Boolean class using the Boolean.valueOf. Info: By default the converted String will only convert "true" and "false"...
How to convert a String to double in Java
We can convert a String to a primitive double using the Double.parseDouble method or to a wrapped Double class using the Double.valueOf. When both methods receive an invalid number as argument, a java.lang.NumberFormatException will...
How to convert a String to float in Java
We can convert a String to a primitive float using the Float.parseFloat method or to a wrapped Float class using the Float.valueOf. When both methods receive an invalid number as argument, a java.lang.NumberFormatException will...