Authentication example in JAX-WS webservice

Introduction Authentication example in JAX-WS webservice will show you how to authenticate a user before the user is able to see the response from the SOAP based JAX-WS webservice. You may also like to read JAX-WS webservice example. In this example I will show you basic authentication example because I am going to pass credentials (username/password) into the headers of…

Consume jax-ws webservice

Introduction In this tutorial I will show how to create the Webservice client for JAX-WS webservice. We will consume same webservice which we created in the example. We will use here gradle tool to generate client or stub from the SOAP webservice or JAX-WS webservice. A service has already been deployed into the server and we are given a wsdl…

SunCertPathBuilderException: unable to find valid certification path to requested target

Introduction This issue occurs while establishing a trusted connection over SSL (Secure Socket Layer) in Artifactory. The error message indicates that Artifactory could not establish a trusted connection over SSL. You may find this issue if you are using Self-Signed certificate or a certificate that is issued by an internal Certificate Authority or if your clients (e.g. browser, java) are…

Using SSL(Secure Socket Layer) in JAX-WS webservice

Introduction In this tutorial I will show how to use SSL/TSL or https in JAX-WS based SOAP webservice. For using SSL with JAX-WS webservice you need one keystore file. I will use here Java tool to generate the keystore file. I also need to configure SSL in Tomcat server because I am going to deploy our application into Tomcat server.

JAX-WS webservice deployment example in Tomcat Server

Introduction We will create a post on JAX-WS webservice deployment example in Tomcat server. We have seen that we have successfully created the jax-ws webservice example tutorial and also published and tested the service successfully. Now we will deploy the same webservice in Tomcat Server.

JAX-WS webservice example

Introduction I am going to give an example on how to create a SOAP based jax-ws webservice. I will show you how to publish the service in two approaches. First approach for publishing the service will be just using the java main method. Second approach will be by deploying the service in Tomcat Server 7 in another tutorial. We will…

java.security.cert.CertificateException: No name matching localhost found

Introduction Here I will show you how to fix the issue java.security.cert.CertificateException: No name matching localhost found. To fix it, add a javax.net.ssl.HostnameVerifier() method to override the existing hostname verifier.