Building a rest service that returns a byte array image
This tutorial will not delve into angular nor will we discuss what a directive is. We will not try to explain what a rest web service is. In...
If you like what I do, you can support this blog by 💰 becoming my sponsor. I would be grateful for your contribution!
This tutorial will not delve into angular nor will we discuss what a directive is. We will not try to explain what a rest web service is. In...
First we define the interface like this: @WebMethod ActionStatus downloadFile(@WebParam(name = "file") String file); Implement...
Normally I create an interface when defining a REST api, this is useful when testing using Arquillian. To define a download file api we must...
This is how I define the method: @POST @Path("/upload") @Consumes(MediaType.MULTIPART_FORM_DATA) ActionStatus uploadFile(@Multi...
There are times when we have to zipped a file or directory recursively in Java. This is how we do it: public static void zipFile(File file...
There are times when we need either HttpServletRequest or HttpServletResponse in our REST or SOAP api. These objects are readily available i...
To generate the jax-rs documentation automatically using maven, we need to add some plugins in the build section of the project's pom fi...
The code below is an example of how you can throw a soapFault exception when an error is encountered in your web service call. There are ...
I don't really remember when I coded it, nor where I got it but I'm writing it here for future use :-) Below is the code I use to t...
In this tutorial I'll not teach how to create jax-rs nor jax-ws web service but rather will show how we can get the client's or the ...
The following code is an explanation of how you can call a rest web service in java. Below you can find the actual java code and soapUI con...
This tutorial will summarize how the author was able to call a secured rest webservice using resteasy. We will not go into detail on how we ...
On normal cases we really have a lot of ways in doing so, we can use jaxb, jackson and more. But in some cases we really need to improvise...
If you like what I do, you can support this channel by buying me a coffee. I would be grateful for your contribution! Your donations will help me create more FREE online courses and learning materials for programmers and remote workers.
Hello!
I am very excited to hear from you.
Whether you’re working on a new startup or an existing project, feel free to drop a line and let’s start the conversation.
Cheers,
Ed
eplegaspi2@alum.up.edu.ph