Home » Author Archives: Gilbert Lopez

Author Archives: Gilbert Lopez

Gilbert Lopez
Gilbert Lopez is an application developer and systems integration developer with experience building business solutions for large and medium-sized companies. He has worked on many Java EE projects. His roles have included lead developer, systems analyst, business analyst and consultant. Gilbert graduated from from California State University in Los Angeles with a Bachelor of Science degree in Business.

Java 11 Standardized HTTP Client API Example

In this article, we will test a REST API application using the Java HTTP Client API. 1. Introduction There are many tools available to test your REST API applications.  There are command line tools, such as cURL, and there are GUI tools, such as Postman and SoapUI that can perform these tasks.  If you are using a Continuous Integration and ...

Read More »

Spring Boot JPA MySQL Example

In this example, we will demonstrate how to build a CRUD application using Spring Boot, JPA, and MySQL. 1. Introduction If you worked on enterprise applications in the past, you probably wrote SQL for querying a relational database.  If you are a Java developer, you also had to use JDBC for connecting to the database and executing queries.  (Java Database ...

Read More »

Spring Boot JAX-RS Example

In this example, we will demonstrate how to build a JAX-RS web service with Spring Boot. 1. Introduction REST (Representational State Transfer) is an architectural pattern for developing web services.  It is used in many web services development projects because it is lightweight, stateless, and is therefore easily scalable. Java API for RESTful Web Services (or JAX-RS) is a Java ...

Read More »

Spring Boot Application Properties Example

In this example, we will demonstrate how to configure a Spring Boot application using the application.properties file. 1. Introduction Spring Boot is an application development solution that will automatically configure your Spring application for you, helping you get your project up and running as quickly as possible.  It will consider the dependencies in your project and will use an opinionated ...

Read More »

Java 11 String Class New Methods Example

In this example, we will discuss the new methods of the String class introduced in Java version 11. 1. Introduction Every Java release comes with some new features.  Many of the features arise from inconsistencies of earlier releases.  Others are due to the ever-changing landscape of technology.  In this article, we will cover the new methods that were added to ...

Read More »

JAX-WS HTTPS Example

1. Introduction In this example, we will show how to configure HTTPS on a JAX-WS web service and client. Hypertext Transfer Protocol Secure (or HTTPS) is an enhanced version of the HTTP protocol.  It adds a layer of security to connections between a client (for example, a web browser or email client) and a server.  HTTPS uses encryption for protecting ...

Read More »

JAX-WS Client from WSDL Example

In this example, we demonstrate how to generate a JAX-WS client from a WSDL file. 1. Introduction Web services are software applications that exchange messages over the internet.  A web service client sends a request and the web service provider returns a response. In general, there are two types of web services, SOAP-based and RESTful-based. In Java, the specifications used ...

Read More »

JAX-WS Change Endpoint Example

In this example, we will demonstrate how to change the service endpoint in a Java web service client application. 1. Introduction A web service (which is described in a WSDL file) can have one or more endpoints.  A web service endpoint is a URL used to locate and access a web service.  The endpoint is derived from the port and ...

Read More »

JAX-WS Gradle Example

In this post, we will demonstrate how to build a JAX-WS web service using Gradle. 1. Introduction Java API for XML Web Services (JAX-WS) uses XML files for configuring services and for exchanging data. JAX-WS is commonly used for SOAP-based messaging. It uses Java API for XML Binding (JAXB) to marshal and unmarshal Java objects to XML and the reverse. Gradle ...

Read More »

JAX-WS Dependencies Example

In this post, we present a JAX-WS web services example using Maven dependency configuration. 1. Introduction Java API for XML Web Services (JAX-WS) uses XML files for configuring services and for exchanging data. JAX-WS is generally used for SOAP-based messaging. It relies on Java API for XML Binding (JAXB) to marshal and unmarshal Java objects to XML documents and the reverse. You ...

Read More »