Blog Archives

Create a Java web service using top down approch


In the bottom up approach, we will write the java class and generates the WSDL file and other dependent components. The same will be deployed into the web containers. In Top down approach, Architects will write the WSDL file based on the requirements. Developer

Tagged with: , , , , , , , , , , , , , , , ,
Posted in Web Services

Write a Client for web service


Below steps explains how to write a web service client in java using STS IDE. Step 1: Create a Java project using the steps mentioned here. Step 2: Generate the stubs for the Java web service using below steps Mouse

Tagged with: , , , , , , , , , , , , , , ,
Posted in Web Services

Create a java webservice using STS


Below steps explains the how to create a web-service in java in bottom-up approach using the STS(Spring tool suite) IDE. In the bottom-up approach, first we will create a template class, using the template class we will generate the WSDL and deploy the service in servers. Follow the below steps

Tagged with: , , , , , , , , ,
Posted in Web Services

Create a Dynamic web project using STS


Below steps explain the creating a dynamic web project using STS. Step 1 : Select File -> New -> Other. Step 2:  Select the Dynamic web project from the menu and click on Next button.   Step 3: Give a name to

Tagged with: , , , , ,
Posted in JAVA

What are the differences between SOAP WS and RESTful WS?


SOAP Web Services RESTfull Web Services The SOAP WS supports both remote procedure call (i.e. RPC) and message oriented middle-ware (MOM) integration styles. The Restful Web Service supports only RPC integration style. The SOAP WS is transport protocol neutral. Supports

Tagged with: , , , , , , , , , , , , , , ,
Posted in Web Services

What are the differences between DispatchAction and LookupDispatchAction in Struts Framework?


Dispatch Action LookupDispatchAction   It’s a parent class of  LookupDispatchAction Subclass of Dispatch Action DispatchAction provides a mechanism for grouping a set of related functions into asingle action, thus eliminating the need to create separate actions for each function. An abstract Action that dispatches to

Tagged with: , , , ,
Posted in Struts 1.x

Replace special characters in a String using java


package in.javatutorials; /** * @author javatutorials * @since version 1.0 * * Below class replaces the special characters in a string with empty value * */ public class ReplaceSpecialCharacters { public static final String REG_EXPR = “[!\”#$%&'()*+-./:;<=>?@\\^_{|}~`,.\\[\\]]*”; /** * @param

Tagged with: , , , , , , , , ,
Posted in JAVA

Singleton Design pattern in JAVA


Below class depicts the Singleton design pattern. SingletonDesignPattern.java package in.javatutorials; /** * @author JavaTutorials * @version 1.0 * */ public final class SingletonDesignPattern { /** * make the class object as private as it is * not used directly out

Tagged with: , , , , , , , , ,
Posted in JAVA

How to convert an array to comma separated string in java


package com.test; public class ArrayTest { public static void main(String[] args) {ArrayTest arrayTest = new ArrayTest();arrayTest.arrayJoin();} public void arrayJoin() { String[] arrayToJoin = { “John”, “Peter”, “Tom”, “Scott” }; StringBuilder joinedString = new StringBuilder();String seperator = “,”;//System.out.println(“Converting to String “+arrayToJoin.toString());;for

Tagged with: , , ,
Posted in Others

How to Copy an Array into Another Array in Java


The contents of one array can be copied into another array by using the arraycopy() method of the System class in Java. The arraycopy() method accepts source array, source length, destination array and destination length. The following program shows the

Tagged with: , , , , ,
Posted in JAVA, SCJP

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 677 other followers

Calendar
April 2019
M T W T F S S
« Jan    
1234567
891011121314
15161718192021
22232425262728
2930  
Mallikarjun Gunda

This is Mallikarjun Gunda, I am working as a software professional. Blogging is my Passion. This blog contains the posts on Java related technologies and programming languages. I am happy to share my knowledge through the blogs.

Blog Stats
  • 302,782 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100