Day: 31 July 2017

Returning XML Response in Servlet In this sample application, We will show you how to return XML response in Servlet application. This example application has been tested and shared in the same post. Project Structure Servlet Class (ProductService.java) package com.dineshkrish.service; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.dineshkrish.pojo.Product; import […]
Creating SOAP authentication service using Java In this example, We will show you how to create SOAP authentication service using Java programming language. This example has been tested and shared in the same post. Interface (AuthenticationService.java) package com.dineshkrish.soap; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; import javax.jws.soap.SOAPBinding.Style; /** * * @author Dinesh Krishnan * */ @WebService @SOAPBinding(style = […]